Description描述
ZonesRangeOverlapOverlapping zones exist for the same collection.同一集合存在重叠区域。New in version 7.0.在版本7.0中新增。
Format格式
{
type: "ZonesRangeOverlap",
description: "<string>",
details: {
namespace: "<string>",
collectionUUID: <string>,
zoneA: {<document>},
zoneB: {<document>}
}
}
ZonesRangeOverlap inconsistency documents contain the following fields:不一致文档包含以下字段:
type | ZonesRangeOverlap for this inconsistency type.ZonesRangeOverlap值。 | |
description | ||
details | ||
details.namespace | ||
details.collectionUUID | UUID | |
details.zoneA | ||
details.zoneB |
Example示例
Use the 使用db.adminCommand() method to call the checkMetadataConsistency command:db.adminCommand()方法调用checkMetadataConsistency命令:
db.adminCommand( { checkMetadataConsistency: 1 } )
The method returns a cursor with a batch of documents showing the inconsistencies found in the sharding metadata. The example below shows a cursor with a 该方法返回一个游标,其中包含一批文档,显示分片元数据中发现的不一致。下面的示例显示了带有ZonesRangeOverlap inconsistency document:ZonesRangeOverlap不一致文档的游标:
{
cursor: {
id: Long("0"),
ns: "test.$cmd.aggregate",
firstBatch: [
{
type: "ZonesRangeOverlap",
description: "Found two overlapping zones",
details: {
namespace: "test.authors",
collectionUUID: new UUID("62ebdb7e-a7bb-4151-a620-49d44cef097f"),
zoneA: {
ns: "test.authors",
tag: "64ddec77e0d32b766bb8d5fe",
min: { x: MinKey },
max: { x: 0 }
},
zoneB: {
ns: "test.authors",
tag: "64ddec77e0d32b766bb8d5ff",
min: { x: -10 },
max: { x: MaxKey }
}
}
}
],
},
ok: 1
}