Fail gracefully if a user tries converting a unique index with old format keys to a non-unique index.

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2022-03-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      If a unique index was built before 4.2 and then upgraded to a later major version, it can have mixed format keys. We have no way of ensuring that these indexes only contain new format keys so we should fail the collMod conversion if we detect this scenario.

      We can probably check for the internal data format introduced in SERVER-63578 and fail collMod if not.

            Assignee:
            Benety Goh
            Reporter:
            Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: