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

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.3.0-rc0
    • None
    • None
    • Sharding EMEA
    • Fully Compatible
    • Sharding EMEA 2023-02-06

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: