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

Reduce the number of parsing/serialisation methods in ChunkVersion

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding EMEA 2022-02-07

      Currently, there are 7 parsing and 6 serialisation method each with a subtle difference and check from the previous. However, fundamentally, there are only two types of chunk version BSONs that can possibly be generated:

      The "legacy" format, which persists the version as fields within a BSON object (with the epoch being optional for chunk values, which have come from an upgrade that started at 2.2).

      The "new" format, which is a BSONArray.

      Under this ticket, we should ensure that there are only two variants of parse/serialise methods

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: