설명
형식
{ type: "InconsistentShardCatalogCollectionMetadata", description: "<string>", details: { namespace: "<string>", collectionUUID: <UUID>, details: <document> } }
ZonesRangeOverlap 불일치 문서에는 다음과 같은 필드가 포함되어 있습니다.
필드 | 유형 | 설명 |
|---|---|---|
| 문자열 | 불일치 문서의 유형입니다. 이 불일치 유형에 대해 |
| 문자열 | 메타데이터 에서 발견된 불일치를 설명합니다. |
| 문서 | 데이터베이스와 샤드 cluster에서 불일치가 존재하는 위치에 대한 추가 정보가 포함된 문서입니다. |
| 문자열 | 불일치가 존재하는 데이터베이스 및 collection을 나타냅니다. |
| UUID | collection의 UUID입니다. |
| 문서 | config 서버 와 샤드 카탈로그 간의 차이점을 설명하는 문서입니다. |
예시
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 }