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

Make dropIndexes abort in-progress index builds

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • Execution Team 2020-02-10, Execution Team 2020-02-24
    • 11

      dropIndexes should abort in-progress index builds. This should be done after SERVER-37763 makes it possible to abort an index build.

      SERVER-37727 will enhance dropIndexes to receive an array of indexes as arguments. This task will only abort in-progress index builds if the user specifies all of the indexes that a single builder is building together. A createIndexes command can start multiple indexes building together on one builder and we currently only have the granularity to abort all or none of the indexes on a builder.

      Lastly, dropIndexes will not write a dropIndexes oplog entry if aborting in-progress builds. Aborting the index will produce an abortIndexBuilds oplog entry, which suffices. This allows rollback via refetch to know that an index was fully built prior to a dropIndexes oplog entry.

            gregory.wlodarek@mongodb.com Gregory Wlodarek
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            0 Vote for this issue
            6 Start watching this issue