Docs Menu
Docs Home
/ /

CORptedChunkShardKey

CorruptedChunkShardKey

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

バージョン 7.0 で追加

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

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

フィールド
タイプ
説明

type

string

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

description

string

メタデータに見つかった不整合の内容を説明します。

details

ドキュメント

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

details.namespace

string

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

details.collectionUUID

UUID

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

details.chunk

ドキュメント

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

details.shardKeyPattern

ドキュメント

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

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

db.adminCommand( { checkMetadataConsistency: 1 } )

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

{
cursor: {
id: Long("0"),
ns: "test.$cmd.aggregate",
firstBatch: [
{
type: "CorruptedChunkShardKey",
description: "Found chunk with a shard key pattern violation",
details: {
namespace: "test.authors",
collectionUUID : new UUID("1ad56770-61e2-48e9-83c6-8ecefe73cfc4"),
chunk: {
_id: ObjectId("64ddd81656be208c6685da1b"),
uuid: new UUID("de934e0a-74d2-412b-9bb8-409abe9754e3"),
min: {
y: 0
},
max: {
x: MaxKey
},
shard: "shard0000",
lastmod: Timestamp(1, 0),
onCurrentShardSince: Timestamp(1, 0),
history: [
{
validAfter: Timestamp(1, 0),
shard: "shard0000"
}
]
},
shardKeyPattern: {
x: 1
}
}
}
],
},
ok: 1
}

戻る

CollectionUDUImmatch

項目一覧