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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: