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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • None
    • 3
    • 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:
            Sam Mercier
            Reporter:
            Lynne Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: