Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63582

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

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

      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@mongodb.com Benety Goh
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: