Docs Menu
Docs Home
/
MongoDB Manual
/ / /

ShardMissingCollectionRoutingInfo

On this page

  • Description
  • Format
  • Example
ShardMissingCollectionRoutingInfo

A shard is missing routing information for a collection.

New in version 8.0.

{
type: "ShardMissingCollectionRoutingInfo",
description: "<string>",
details: {
namespace: "<string>",
collectionUUID: UUID("<uuid>"),
shard: "<string>"
}
}

ShardMissingCollectionRoutingInfo inconsistency documents contain these fields:

Field
Type
Description
type
string

Type of inconsistency document. Returns a value of ShardMissingCollectionRoutingInfo for this inconsistency type.

description
string

Describes the inconsistency found in the metadata.

details
document

Document with additional information on where the inconsistency exists in the database and sharded cluster.

details.namespace
string

Indicates the database and collection where the inconsistency exists.

details.collectionUUID
UUID

UUID of the collection.

details.shard
string

The shard where the inconsistency exists.

Use the db.adminCommand() method to call the checkMetadataConsistency command:

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 ShardMissingCollectionRoutingInfo inconsistency document:

{
cursor: {
id: Long("0"),
ns: "test.$cmd.aggregate",
firstBatch: [
{
type: "ShardMissingCollectionRoutingInfo",
description: "Shard is missing routing information for the collection",
details: {
namespace: "test.authors",
collectionUUID: new UUID("62ebdb7e-a7bb-4151-a620-49d44cef097f"),
shard: "shard02"
}
}
],
},
ok: 1
}

Back

RoutingTableRangeOverlap