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

Reduce the number of parsing/serialisation methods in ChunkVersion

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.3.0
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding EMEA 2022-02-07

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: