-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.6.4
-
Component/s: Sharding
-
None
-
ALL
-
The mergeChunk command fails if the sharded collection does not have an index that exactly matches the shard key, but has one or more indexes that have the shard key as its prefix.
The error message is something like this:
{ "ok" : 0, "errmsg" : "could not merge chunks, could not count docs in database.collection :: caused by :: 13106 nextSafe(): { $err: \"Unable to execute query: error processing query: ns=database.collection limit=1 skip=0\nTree: $and\nSort: {}\nProj: {}\n planner returned error: unable to fin...\", code: 17007 }" }
Apparently, the query planner is unable to find a relevant index in this situation.
- duplicates
-
SERVER-13385 relax merge chunk constraints
- Closed