AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。

MissingLocalCollection (欠落しているローカル コレクション)

MissingLocalCollection

コレクションはシャーディングカタログに登録されていますが、対応するシャードには存在しません。

バージョン8.0の新機能。

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

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

フィールド
タイプ
説明

type

string

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

description

string

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

details

ドキュメント

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

details.namespace

string

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

details.uuid

UUID

シャーディングカタログに登録されているコレクションのUUID 。

details.shard

string

不整合が存在するシャード。

db.adminCommand()コマンドを呼び出すには、checkMetadataConsistency メソッドを使用します。

db.adminCommand( { checkMetadataConsistency: 1 } )

メソッドは、シャーディング メタデータにある不整合を示すドキュメントのバッチを含むカーソルを返します。 以下の例では、 MissingLocalCollection不整合ドキュメントを持つカーソルを示しています。

{ cursor: { id: Long("0"), ns: "test.$cmd.aggregate", firstBatch: [ { type: "MissingLocalCollection", description: "Collection registered on the sharding catalog not found on the given shards", details: { namespace: "test.authors", uuid: UUID("1ad56770-61e2-48e9-83c6-8ecefe73cfc4"), shard: "shard02" } } ], }, ok: 1}
このページを評価

項目一覧