-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
ALL
-
v5.0
-
Sharding 2021-07-12, Sharding 2021-07-26
-
35
-
1
ReshardingSplitPolicy::_appendSplitPointsFromSample() hashes the already-hashed shard key value for a second time by calling shardKey.extractShardKeyFromDoc(*nextKey). A solution is probably to use dotted_path_support::extractElementsBasedOnTemplate(*nextKey, shardKey.toBSON()) instead, which is how the shard key is extracted for oplog entries.
(This bug was found via code inspection while tracking down SERVER-58047.)
- is caused by
-
SERVER-49526 configsvrReshardCollection should calculate new initial split points
- Closed
- is related to
-
SERVER-58047 $toHashedIndexKey expression doesn't add any dependencies
- Closed