Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /

ArwriteZoneShardKey

CorruptedZoneShardKey

ルーティング テーブルには、コレクション シャードキーに対応していない最小キーまたは最大キーを持つゾーンが含まれています。

バージョン 7.0 で追加

{
type: "CorruptedZoneShardKey",
description: "<string>",
details: {
namespace: "<string>",
collectionUUID: UUID("<uuid>"),
zone: <zone>,
shardKeyPattern: <pattern>
}
}

CorruptedZoneShardKey 不整合ドキュメントには、次のフィールドが含まれています。

フィールド
タイプ
説明

type

string

不整合ドキュメントのタイプ。 この不整合タイプのCorruptedZoneShardKeyの値を返します。

description

string

メタデータで見つかった不整合について説明します。

details

ドキュメント

データベースとシャーディングされたクラスターのどの不整合が存在するかに関する追加情報を含むドキュメント。

details.namespace

string

不整合が存在するデータベースとコレクションを示します。

details.collectionUUID

UUID

破損したゾーン シャードキーを持つコレクションの UUID 。

details.zone

ドキュメント

破損したシャードキーを持つゾーン。

details.shardKeyPattern

ドキュメント

コレクションのシャードキー パターン。

db.adminCommand()checkMetadataConsistencyコマンドを呼び出すには、次のように メソッドを使用します。

db.adminCommand( { checkMetadataConsistency: 1 } )

メソッドは、シャーディング メタデータにある不整合を示すドキュメントのバッチを含むカーソルを返します。 以下の例では、 CorruptedZoneShardKey不整合ドキュメントを持つカーソルを示しています。

{
cursor: {
id: Long("0"),
ns: "test.$cmd.aggregate",
firstBatch: [
{
type: "CorruptedZoneShardKey",
description: "Found zone with a shard key pattern violation",
details: {
namespace: "test.authors",
collection: {
collectionUUID : new UUID("1ad56770-61e2-48e9-83c6-8ecefe73cfc4"),
zone : {
ns : "test.authors",
tag: "64ddd81656be208c6685da21",
min: {
y: 0
},
max: {
x: MaxKey
}
},
shardKeyPattern: {
x: 1
}
}
}
}
],
},
ok: 1
}

戻る

CORptedChunkShardKey

項目一覧