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

Docs for SERVER-34243: listCollections should not require a MODE_S database lock

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.7.6, 3.6.21
    • None
    • None

    Description

      Description:

      listCollections only requires intent locks (MODE_IS).

      Scope of changes:

      • 4.0.txt
      • db.CollectionInfos + db.collectionNames (double check how we phrase nameOnly – IS lock)
      • command/listCollections.txt

      Impact to other docs outside of this product:

      MVP:

      Resources:

      Engineering Ticket Description:

      Currently the listCollections command requires a MODE_S lock on the database it's run on. When any transaction is active on that database, it will generally have a MODE_IX lock on a collection. This will conflict with the MODE_S lock on the database, causing listCollections to block until the transaction is finished or aborted.

      It should be sufficient to have the MODE_IS lock on the database, as long as each collection is locked as its details are gathered.

      Attachments

        Issue Links

          Activity

            People

              kay.kim@mongodb.com Kay Kim (Inactive)
              kay.kim@mongodb.com Kay Kim (Inactive)
              Jess Mokrzecki Jess Mokrzecki
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 15 weeks, 5 days ago