InconsistentIndex
์ค๋ช
ํ์
{ type: "InconsistentIndex", description: "<string>", details: { namespace: "<string>", info: <document> } }
InconsistentIndex
๋ถ์ผ์น ๋ฌธ์์๋ ๋ค์ ํ๋๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
ํ๋ | ์ ํ | ์ค๋ช
|
---|---|---|
| ๋ฌธ์์ด | ๋ถ์ผ์น ๋ฌธ์์ ์ ํ์
๋๋ค. ์ด ๋ถ์ผ์น ์ ํ์ ๋ํด |
| ๋ฌธ์์ด | ๋ฉํ๋ฐ์ดํฐ ์์ ๋ฐ๊ฒฌ๋ ๋ถ์ผ์น๋ฅผ ์ค๋ช ํฉ๋๋ค. |
| ๋ฌธ์ | ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ค๋ cluster์์ ๋ถ์ผ์น๊ฐ ์กด์ฌํ๋ ์์น์ ๋ํ ์ถ๊ฐ ์ ๋ณด๊ฐ ํฌํจ๋ ๋ฌธ์์ ๋๋ค. |
| ๋ฌธ์์ด | ๋ถ์ผ์น๊ฐ ์กด์ฌํ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋ฐ collection์ ๋ํ๋ ๋๋ค. |
| ๋ฌธ์ | ์ผ๊ด์ฑ ์๋ ์ธ๋ฑ์ค์ ๋ํ ์ ๋ณด์ ๋๋ค. |
์์
db.adminCommand()
๋ฉ์๋๋ฅผ ์ฌ์ฉํ์ฌ checkMetadataConsistency
๋ช
๋ น์ ํธ์ถํฉ๋๋ค.
db.adminCommand( { checkMetadataConsistency: 1, checkIndexes: true } )
์ด ๋ฉ์๋๋ ์ค๋ฉ ๋ฉํ๋ฐ์ดํฐ์์ ๋ฐ๊ฒฌ๋ ๋ถ์ผ์น๋ฅผ ๋ณด์ฌ์ฃผ๋ ๋ฌธ์ ๋ฐฐ์น์ ํจ๊ป ์ปค์๋ฅผ ๋ฐํํฉ๋๋ค. ์๋ ์๋ InconsistentIndex
๋ถ์ผ์น ๋ฌธ์๊ฐ ์๋ ์ปค์๋ฅผ ๋ณด์ฌ์ค๋๋ค.
{ cursor: { id: Long("0"), ns: "test.$cmd.aggregate", firstBatch: [ { type: "InconsistentIndex", description: "Found an index of a sharded collection that is inconsistent between different shards", details: { namespace: "test.authors", info: { missingFromShards: [ "shard-rs1" ], inconsistentProperties: [ ], indexName: "index1" } } } ], }, ok: 1 }