[SERVER-59177] Remove deprecated ComparableDatabaseVersion::_uuidDisambiguatingSequenceNum Created: 07/Aug/21  Updated: 29/Oct/23  Resolved: 19/Aug/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Allison Easton
Resolution: Fixed Votes: 0
Labels: 5.0-cleanup, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-58989 Make timestamp required in DatabaseVe... Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2021-08-23
Participants:
Linked BF Score: 127

 Description   

In 5.0 we added a timestamp to each database version so the _uuidDisambiguatingSequenceNum can be now removed. In fact it was used to make UUID comparable locally on every shard, now we can simply use the timestamp associated to the database in order to understand which is the newer one.

As part of this ticket we should:

  • Remove the ComparableDatabaseVersion::_uuidDisambiguatingSequenceNum class property
  • Implement comparison operators for DatabaseVersion class based on timestamp.
  • Replace usages of ComparableDatabaseVersion outside of the CatalogCache with the new DatabaseVersion comparision operator.
  • Move the ComparableDatabaseVersion class inside the catalog cache since it will be the only place in which we will needed (for forcing catalog cache incremental refreshes).


 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 18/Aug/21 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-59177 Remove deprecated ComparableDatabaseVersion::_uuidDisambiguatingSequenceNum
Branch: master
https://github.com/mongodb/mongo/commit/0a7641e69031fcfdf25a1780a3b62bca5f59d68f

Generated at Thu Feb 08 05:46:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.