-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
v5.0, v4.4, v4.2
-
Sharding NYC 2022-03-21, Sharding NYC 2022-04-04
(Analogous to SERVER-63732 but for the refineCollectionShardKey command. An implicitlyCreateIndex parameter isn't relevant for refineCollectionShardKey because the command won't attempt to create an index even when the collection is empty.)
enforceUniqueness defaults to true and when set to false, ignores uniqueness property when validating indexes for refineCollectionShardKey.
Regardless of both settings, refineCollectionShardKey should still return an error if there are no index that is compatible with the new shard key pattern.
- is related to
-
SERVER-63732 Add new implicitlyCreateIndex and enforceUniquenessCheck to shardCollection command
- Closed