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

The dbstats command should lock the database in MODE_IS instead of MODE_S

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.12, 4.0.5, 4.1.6
    • Component/s: Concurrency
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.0, v3.6, v3.4
    • Sprint:
      Storage NYC 2018-12-03
    • Case:

      Description

      Currently the dbstats command locks the database in MODE_S, which causes issues with transactions that may hold MODE_IX locks for extended periods of time. Similar to the changes we made for listCollections, we should instead lock the database in MODE_IS and then lock each collection in turn to get stats.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: