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

Enable lock free reads for aggregation

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Execution Team 2020-11-02

      This requires some additional ViewCatalog utilities to support lock free reads.

      The aggregation code independently of the AutoGetCollectionForRead* helper fetches the ViewCatalog and does lookup() and resolveView() several times. For example.

      We need to verify that the ViewCatalog is safe to access multiple times. Perhaps the AutoGetCollectionForRead* helper should save a shared_ptr<ViewCatalog> instance. Accessing the ViewCatalog multiple times across time may not be an inconsistency issue of concern (needs investigation). Alternatively again, maybe a new function on ViewCatalog, like ViewCatalog::getLockFreeState() that will fetch both ViewDefinition and ResolvedView all at once. May need new DatabaseHolder passthrough functions that take dbName and fetch a corresponding Database instance and access the ViewCatalog under an internal mutex's protection.

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: