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

[v4.4/v4.2] Minimize work under CollectionCatalog mutex

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.4.15, 4.2.21
    • None
    • None
    • None
    • Fully Compatible
    • v4.2
    • Execution Team 2022-05-30

    Description

      The CollectionCatalog mutex can be a source of contention. There are some minor improvements that can be done without changing how the system works at a high level.

      1. Hash namespace/uuid without holding the lock
      2. Add interface to match call patterns. RequiresCollectionStage::doRestoreState makes two calls (requiring taking and releasing the mutex twice) for something that can be implemented as a single call.

      Attachments

        Activity

          People

            henrik.edin@mongodb.com Henrik Edin
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: