説明
形式
{ type: "InconsistentShardCatalogCollectionMetadata", description: "<string>", details: { namespace: "<string>", collectionUUID: <UUID>, details: <document> } }
ZonesRangeOverlap 不整合ドキュメントには、次のフィールドが含まれています。
フィールド | タイプ | 説明 |
|---|---|---|
| string | 不整合ドキュメントのタイプ。 この不整合タイプの |
| string | メタデータで見つかった不整合について説明します。 |
| ドキュメント | データベースとシャーディングされたクラスターのどの不整合が存在するかに関する追加情報を含むドキュメント。 |
| string | 不整合が存在するデータベースとコレクションを示します。 |
| UUID | コレクションの UUID 。 |
| ドキュメント | コンフィギュレーションサーバーとシャードカタログで異なるフィールドを説明するドキュメント。 |
例
db.adminCommand()コマンドを呼び出すには、checkMetadataConsistency メソッドを使用します。
db.adminCommand( { checkMetadataConsistency: 1 } )
メソッドは、シャーディング メタデータにある不整合を示すドキュメントのバッチを含むカーソルを返します。 以下の例では、 ZonesRangeOverlap不整合ドキュメントを持つカーソルを示しています。
{ cursor: { id: Long("0"), ns: "admin.$cmd.aggregate", firstBatch: [ { type: "InconsistentShardCatalogCollectionMetadata", description: "Found inconsistencies between collection metadata in the global catalog and the shard catalog", details: { namespace: "test.authors", collectionUUID: UUID("2153613e-f166-437b-99b1-b8711d1cc4ac"), details: { field: "shardCatalogEntry", source: "inMemoryShardCatalog", shardCatalog: { _id: "test.authors", lastmodEpoch: ObjectId("6a5a079ca93d70776b2e715c"), timestamp: Timestamp({ t: 1784285084, i: 36 }), uuid: UUID("baeb3cb1-d16f-4b8f-8342-544e52e56d9c"), key: { author: 1 }, unique: false, lastmod: ISODate("2026-07-17T10:44:52.275Z") }, globalCatalog: { _id: "test.authors", lastmodEpoch: ObjectId("6a5a079ca93d70776b2e715c"), timestamp: Timestamp({ t: 1784285084, i: 36 }), uuid: UUID("2153613e-f166-437b-99b1-b8711d1cc4ac"), key: { author: 1 }, unique: false, lastmod: ISODate("2026-07-17T10:44:44.396Z") } } } } ], }, ok: 1 }