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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Henrik Edin
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: