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

ShardingCatalogClient::getShardsThatOwnData...AtClusterTime() methods need a richer data structure to describe the returned Placement Metadata

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Sharding EMEA
    • Fully Compatible
    • Sharding EMEA 2023-02-06

      As per today, the getShardsThatOwnData...AtClusterTime() API methods of the ShardingCatalogClient return a set of ShardingIDs indicating which shards were serving data for the targeted namespace/cluster at a specific point in time.

      Nevertheless, it such point in time is prior to the creation of the initial data stored in config.placementHistory, it is impossible to retrieve an accurate set of shard IDs.

      As a fallback, the API methods will have to access the current content of config.shards, to compose an approximated value for the set of Sharding IDs. The returned placement metadata will then have to include an indication on whether they represent and exact or approximate description.

            Assignee:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: