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

Provide a list of all direct CatalogCache accesses in the query layer

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, query code still accesses the CatalogCache directly to obtain routing table information for its required namespaces (example). We should get a definitive list of all routing operations that rely on the CatalogCache and tag them for replacement by the RoutingContext. There is a running list here - we should ensure it is complete or fill any gaps as needed.

      // Catalog cache access
      Grid::get(opCtx)->catalogCache();
      
      // Routing table acquisition
      catalogCache->getCollectionRoutingInfo(opCtx, nss);
      

      Query code refers to files assigned to @10gen/query or subteams in the CODEOWNERS file. Helpers directly called by query code that perform direct CatalogCache accesses should also be considered for replacement.

            Assignee:
            samuel.mercier@mongodb.com Sam Mercier
            Reporter:
            lynne.wang@mongodb.com Lynne Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: