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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.15, 4.2.21
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v4.2
    • Execution Team 2022-05-30

      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.

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

              Created:
              Updated:
              Resolved: