Implement a DatabaseVersion class and add it to the DatabaseType

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.7.2
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2018-01-29, Sharding 2018-02-12
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Should ideally be implemented using IDL for parsing and serialization. For the value-add functionality such as incrementing the version, it is alright to create a class which inherits the generated IDL parser class.

      The DatabaseVersion should have 2 fields:

      1. uuid - UUID, indicating the incarnation of the database
      2. version - Int32 which gets bumped whenever movePrimary is called

      The DatabaseVersion class should be made to accept the UUID and version as part of the constructor and should only expose an increment method.

      This ticket should also include work to assign the DatabaseVersion whenever a new DatabaseType entry is created.

            Assignee:
            Kaitlin Mahar
            Reporter:
            Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: