説明
形式
{ type: "LegacyShardCacheCollectionsPresent", description: "<string>", details: { namespace: "<string>", shard: "<string>" } }
LegacyShardCacheCollectionsPresent 不整合ドキュメントには、次のフィールドが含まれています。
フィールド | タイプ | 説明 |
|---|---|---|
| string | 不整合ドキュメントのタイプ。 この不整合タイプの |
| string | メタデータで見つかった不整合について説明します。 |
| ドキュメント | データベースとシャーディングされたクラスターのどの不整合が存在するかに関する追加情報を含むドキュメント。 |
| string | 不整合が存在するデータベースとコレクションを示します。 |
| string | 不整合が存在するシャード。 |
例
db.adminCommand()コマンドを呼び出すには、checkMetadataConsistency メソッドを使用します。
db.adminCommand( { checkMetadataConsistency: 1 } )
メソッドは、シャーディング メタデータにある不整合を示すドキュメントのバッチを含むカーソルを返します。 以下の例では、 LegacyShardCacheCollectionsPresent不整合ドキュメントを持つカーソルを示しています。
{ cursor: { id: Long("0"), ns: "test.$cmd.aggregate", firstBatch: [ { type: "LegacyShardCacheCollectionsPresent", description: "Found legacy non-authoritative shard catalog cache collections on a shard that is fully upgraded", details: { namespace: "config.cache.collections", shard: "shard-rs0" } } ], }, ok: 1 }