Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14925

Investigate changes in SERVER-59399: Allow dropping an index during separate index build on the same collection

    XMLWordPrintableJSON

Details

    Description

      Downstream Change Summary

      The dropIndexes command can now drop ready indexes while there are any in-progress index builds for the same collection.

      Description of Linked Ticket

      According to my understanding, it's currently not possible to drop an index on a collection at the same time that a separate index is in the process of being built on the same collection. As of SERVER-32033 you can call dropIndex on the in-progress index and the build will be cancelled, but if you try to drop a different already built index you'll get a BackgroundOperationInProgressForNamespace error. I'm guessing this comes from this check here.

      I think this behavior is confusing (why should building index A interfere with dropping index B?) and makes it more difficult to manage indexes.

      Attachments

        Activity

          People

            joseph.dougherty@mongodb.com Joseph Dougherty
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 12 weeks, 6 days ago