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

Introduce FilteringMetadataCache class for shard_filtering_metadata_refresh.cpp

    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2024-10-14

      (Subtask to achieve SERVER-84243 - Dedicate a catalog cache and loader to the shard role. For more information refer to this document)

       

      We are introducing a new class called FilteringMetadataCache. This class will handle the refreshing of filtering metadata for collections and databases in a shard.

      To achieve this, we will move all the free functions from the shard_filtering_metadata_refresh.cpp file into the new FilteringMetadataCache class. This will provide a more structured and centralized way to manage and refresh sharding metadata, and will also expose a public API that is easy to use and maintain.

      The technical steps for this implementation are as follows:

      1. Create a new decoration of the service context called FilteringMetadataCache.
      2. Include the free functions from shard_filtering_metadata_refresh.cpp file in the new FilteringMetadataCache class.
      3. Update all existing usages of the previous free functions to now use the new API.

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: