[SERVER-32607] Implement a DatabaseVersion class and add it to the DatabaseType Created: 09/Jan/18  Updated: 30/Oct/23  Resolved: 29/Jan/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.7.2

Type: Task Priority: Major - P3
Reporter: Randolph Tan Assignee: Kaitlin Mahar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-32610 Include databaseVersion when targetin... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2018-01-29, Sharding 2018-02-12
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 29/Jan/18 ]

Author:

{'email': 'kaitlin.mahar@mongodb.com', 'name': 'Kaitlin Mahar', 'username': 'kmahar'}

Message: SERVER-32607 Implement a DatabaseVersion type class and add it to the DatabaseType
Branch: master
https://github.com/mongodb/mongo/commit/9a235bd7703b6c5c0b194c8456e192bf4734a8d0

Generated at Thu Feb 08 04:30:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.