The dropIndexes command should not hold the global lock throughout the duration of the command

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2020-02-24
    • 37
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      This is problematic when other threads need to take a stronger RSTL lock (MODE_S/MODE_X) for other server operations while the dropIndexes command is waiting for index builds to abort. Instead of holding the global lock throughout the duration of the dropIndexes command, we can check the replica set state when reacquiring the locks.

            Assignee:
            Gregory Wlodarek
            Reporter:
            Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: