-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
-
ALL
-
-
CAR Team 2026-03-30
-
None
-
None
-
None
-
None
-
None
-
None
-
None
If a chunk migration uses an index that is longer than the shard key pattern, documents with fields MaxKey() value may not be moved.
For example:
- Sharded collection with shard key pattern {x:1}
- It has the document: {x: MaxKey(), y: 10}
- A chunk migration uses index {x: 1, y: 1}
- The chunk migration with a range where max is {x: MaxKey()} will miss that document.
The upper bound of the range is extended to include all index fields, resulting in {x: MaxKey(), y: MinKey()}. The field y is set to MinKey() because the upper bound is non-inclusive.