AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
See how MongoDB 9.0 delivers up to 2x higher throughput.
MongoDB Branding Shape
Register now >
Docs Menu

InconsistentShardCatalogCollectionMetadata

InconsistentShardCatalogCollectionMetadata

シャーディングされたコレクションのコレクションメタデータは、コンフィギュレーションサーバーとシャード カタログで異なります。

バージョン9.0の新機能。

{
type: "InconsistentShardCatalogCollectionMetadata",
description: "<string>",
details: {
namespace: "<string>",
collectionUUID: <UUID>,
details: <document>
}
}

ZonesRangeOverlap 不整合ドキュメントには、次のフィールドが含まれています。

フィールド
タイプ
説明

type

string

不整合ドキュメントのタイプ。 この不整合タイプのInconsistentShardCatalogCollectionMetadataの値を返します。

description

string

メタデータで見つかった不整合について説明します。

details

ドキュメント

データベースとシャーディングされたクラスターのどの不整合が存在するかに関する追加情報を含むドキュメント。

details.namespace

string

不整合が存在するデータベースとコレクションを示します。

details.collectionUUID

UUID

コレクションの UUID 。

details.details

ドキュメント

コンフィギュレーションサーバーとシャードカタログで異なるフィールドを説明するドキュメント。

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
}
このページを評価

項目一覧