Pull the epoch/timestamp parts of ChunkVersion into a CollectionGeneration class

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding EMEA 2022-05-16, Sharding EMEA 2022-05-30
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The ChunkVersion consists of a "most-significant" epoch/timestamp part which represents the generation of the collection and a subordinate major/minor parts. There are a lot of places in the code which either use epoch/timestamp separately or a half-initialised ChunkVersion in order to ensure that two collections are the same. This logic should be extracted into a separate class called CollectionGeneration instead.

            Assignee:
            Kaloian Manassiev
            Reporter:
            Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: