Database Manual / Sharding / Reference

Inconsistency Types不一致类型

New in version 7.0.在版本7.0中新增。

The checkMetadataConsistency command performs a series of consistency checks on sharding metadata and indexes and returns an array of inconsistency documents.checkMetadataConsistency命令对分片元数据和索引执行一系列一致性检查,并返回一组不一致文档。

Inconsistency Type不一致类型Description描述
CollectionAuxiliaryMetadataMismatch

A collection contains mismatching auxiliary metadata across different shards.一个集合包含不同分片之间不匹配的辅助元数据。

New in version 8.1.在版本8.1中新增。

CollectionOptionsMismatch

A collection contains mismatching options across different shards.一个集合包含不同分片之间的不匹配选项。

New in version 8.0.在版本8.0中新增。 (Also available starting in 7.0.23)

CollectionUUIDMismatch

A collection exists on a shard with a locally registered UUID that differs from the one registered in the config.collections cluster catalog.分片上存在一个集合,其本地注册的UUID与config.collections集群目录中注册的UUID不同。

New in version 7.0.在版本7.0中新增。

CorruptedChunkShardKey

The routing table contains a chunk with a min key or max key that doesn't correspond to the collection shard key.路由表包含一个块,其最小键或最大键与集合分片键不对应。

New in version 7.0.在版本7.0中新增。

CorruptedZoneShardKey

The routing table contains a zone with a min key or max key that doesn't correspond to the collection shard key.路由表包含一个区域,其最小键或最大键与集合分片键不对应。

New in version 7.0.在版本7.0中新增。

HiddenShardedCollection

A collection is registered in the config.collections cluster catalog under a non-existent database.config.collections群集目录中不存在的数据库下注册了一个集合。

New in version 7.0.在版本7.0中新增。

InconsistentIndex

An index exists on two different shards that contains differing metadata or a specific index is missing on some shards.索引存在于包含不同元数据的两个不同分片上,或者某些分片上缺少特定索引。

New in version 7.0.在版本7.0中新增。

MisplacedCollection

Indicates that an unsharded collection exists on the incorrect shard and was not moved with moveCollection.表示不正确的分片上存在未分片的集合,并且该集合未使用moveCollection移动。

New in version 7.0.在版本7.0中新增。

Changed in version 8.0.在版本8.0中的更改。

MissingLocalCollection

A collection is registered on the sharding catalog but does not exist on the corresponding shard.一个集合在分片目录上注册,但在相应的分片上不存在。

New in version 8.0.在版本8.0中新增。

MissingRoutingTable

A sharded collection exists without a routing table.存在没有路由表的分片集合。

New in version 7.0.在版本7.0中新增。

MissingShardKeyIndex

A sharded collection exists that doesn't have an index compatible with the collection shard key.存在一个分片集合,其索引与集合分片键不兼容。

New in version 7.0.在版本7.0中新增。

RangeDeletionMissingShardKeyIndex

A sharded collection exists that doesn't have an index compatible with the collection shard key and there is at least one remaining range deletion task to complete.存在一个分片集合,其索引与集合分片键不兼容,并且至少还有一个剩余的范围删除任务需要完成。

New in version 8.2.在版本8.2中新增。

RoutingTableMissingMaxKey

A range gap exists in the routing table. The last chunk boundary in the routing table does not reach the maximum key value.路由表中存在范围间隙。路由表中的最后一个块边界未达到最大键值。

New in version 7.0.在版本7.0中新增。

RoutingTableMissingMinKey

A range gap exists in the routing table. The first chunk does not start from the minimum key value.路由表中存在范围间隙。第一个块不是从最小键值开始的。

New in version 7.0.在版本7.0中新增。

RoutingTableRangeGap

A range gap exists in the routing table between two consecutive chunks for the same collection.同一集合的两个连续块之间的路由表中存在范围间隙。

New in version 7.0.在版本7.0中新增。

RoutingTableRangeOverlap

The routing table of a collection contains two chunks with overlapping shard key ranges.集合的路由表包含两个具有重叠分片键范围的块。

New in version 7.0.在版本7.0中新增。

ShardCatalogCacheCollectionMetadataMismatch

A shard is missing metadata or routing information for a collection.分片缺少集合的元数据或路由信息。

New in version 8.2.在版本8.2中新增。

TrackedUnshardedCollectionHasInvalidKey

An unsharded collection has an invalid shard key.未分片的集合具有无效的分片键。

New in version 8.0.在版本8.0中新增。

TrackedUnshardedCollectionHasMultipleChunks

An unsharded collection contains multiple chunks.一个未分片的集合包含多个块。

New in version 8.0.在版本8.0中新增。

ZonesRangeOverlap

Overlapping zones exist for the same collection.同一集合存在重叠区域。

New in version 7.0.在版本7.0中新增。