Join us Sept 17 at .local NYC! Use code WEB50 to save 50% on tickets. Learn more >
MongoDB Event
Docs Menu
Docs Home
/
データベース マニュアル
/ / /

CollectionOptionsMismatch

CollectionOptionsMismatch

コレクションには、異なるシャード間で一致しないオプションが含まれています。

バージョン の新機能8.0 以降でも利用可能7.0.23

{
type: "CollectionOptionsMismatch",
description: "<string>",
details: {
namespace: "<string>",
options: <array>
}
}

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

フィールド
タイプ
説明

type

string

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

description

string

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

details

ドキュメント

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

details.namespace

string

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

details.options

配列

シャードまたはコンフィギュレーションサーバーごとに見つかった一致しないオプションを一覧表示します。

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

db.adminCommand( { checkMetadataConsistency: 1 } )

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

{
cursor: {
id: Long("0"),
ns: "test.$cmd.aggregate",
firstBatch: [
{
type: "CollectionOptionsMismatch",
description: "Found collection with mismatching options across shards and/or config server",
details: {
namespace: "test.authors",
options: [
{ "options": { "capped": true }, "shards": [ "shard0" ] },
{ "options": { "capped": false }, "shards": [ "shard1", "config" ] }
]
}
}
],
},
ok: 1
}

戻る

CollectionAxiaryMetadataMismatch

項目一覧