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

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

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

      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@mongodb.com Gregory Wlodarek
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: