Collmod Coordinator can lead to inconsistent unique indexes across shards

    • 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:

      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.

            Assignee:
            Unassigned
            Reporter:
            Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: