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.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Execution Team 2022-03-21

    Description

      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.

      Attachments

        Activity

          People

            benety.goh@mongodb.com Benety Goh
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: