-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Minor Change
-
v4.4
-
Sharding 2020-05-04
If zones ranges are created on a hashed shard key before sharding the collection, shardCollection command will fail if the zones range are not of type NumberLong. But updateZoneKeyRange command doesn't fail if zone ranges are updated after sharding the collection and the hashed field values are not NumberLong.
This is bit inconsistent and error prone since users could potentially create zones ranges which cannot receive any data.
This line in the test should fail when the shard key is hashed.
- is documented by
-
DOCS-13608 Investigate changes in SERVER-44865: updateZoneKeyRange command doesn't restrict hashed field values to NumberLong, if zone ranges are updated after sharding the collection
- Closed
- is related to
-
SERVER-43914 Permit sharding commands to accept compound hashed shard key specs
- Closed