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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.11
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      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

          Issue Links

            Activity

              People

              Assignee:
              william.schultz William Schultz (Inactive)
              Reporter:
              judah.schvimer Judah Schvimer
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: