-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
ALL
-
-
Cluster Scalability 2024-2-19, Cluster Scalability 2024-3-4
-
3
Unsplittable collections by definition are tracked collections with only one chunk. The internal representation in config.collections requires a 'shard key', however, considering that in order to shard it the shardCollection command must be called, they can be treated as collections with all the data on the same shard, so, any unique index created for the collection, can be preserved even if the collection is moved. This means that the uniqueness constraint validation executed by resharding (which is the machinery used by moveCollection) it should not apply for unsplittable collections.