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

Add checks to shard version constructor to ensure chunk version and index version belong to same collection

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

      The constructor of the ShardVersion takes in a ChunkVersion and a CollectionIndexes. We should either pass in a ChunkManager and a CollectionIndexes or additionally pass in the UUID with the chunk version so that we can add in a check in the constructor that the UUID from the chunk version and index version match.

      Note that we won't be able to check this if the index version is boost::none, but we should add the checks for all initialized chunk versions.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: