-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
-
ALL
-
🟥 DDL
-
None
-
None
-
None
-
None
-
None
-
None
CollMod today undergoes the following steps in order to convert an index to unique: true:
- It first sends a dryRun request to all owning participant shards
- Then it sends a collMod request to all participant shards (owning and not owning)
This operation will fail if there is a duplicate value on a currently non-owning shard since the dry-run will succeed on the first stage but fail on the second, leading to potentially inconsistent collection options across shards.