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

Two phase drops: drop indexes before renaming collections if the rename will make the index name too long

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.11
    • None
    • Replication
    • None
    • Fully Compatible
    • Repl 2017-07-31

    Description

      renameCollection will fail if it would cause an index name to be too long. To avoid this, we will drop any problematic indexes and log an oplog entry for their drops before renaming the collection and logging the collection drop to the oplog. This will only apply to mmap as we will relax this constraint for wiredTiger and mmap rollback will seamlessly succeed since we already know how to rollback index drops.

      Attachments

        Activity

          People

            william.schultz@mongodb.com William Schultz (Inactive)
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: