[SERVER-34435] DatabaseVersion idl type should not use lexicographic comparison Created: 12/Apr/18  Updated: 29/Oct/23  Resolved: 13/Apr/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.7.3
Fix Version/s: 3.7.4

Type: Bug Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: Esha Maharishi (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2018-04-23
Participants:

 Description   

This is because the DatabaseVersion is a (UUID, int) pair.

We want "<" to check if the UUIDs are the same, and the int is less than the other int. But today, it will do a lexicographic comparison of the UUIDs, which leads to unpredictable behavior.



 Comments   
Comment by Githook User [ 13/Apr/18 ]

Author:

{'email': 'esha.maharishi@mongodb.com', 'name': 'Esha Maharishi', 'username': 'EshaMaharishi'}

Message: SERVER-34435 rename versioning.

{h,cpp} to database_version_helpers.{h,cpp}

Branch: master
https://github.com/mongodb/mongo/commit/8cca1f4c2b19c5f430ed3cb330fd2ef7a925b12f

Comment by Githook User [ 13/Apr/18 ]

Author:

{'email': 'esha.maharishi@mongodb.com', 'name': 'Esha Maharishi', 'username': 'EshaMaharishi'}

Message: SERVER-34435 DatabaseVersion idl type should not use lexicographic comparison
Branch: master
https://github.com/mongodb/mongo/commit/ae329950ae47013397202e48f27b0e318ac6bc10

Comment by Githook User [ 13/Apr/18 ]

Author:

{'email': 'esha.maharishi@mongodb.com', 'name': 'Esha Maharishi', 'username': 'EshaMaharishi'}

Message: SERVER-34435 Change Versioning class to databaseVersion namespace and related cleanup
Branch: master
https://github.com/mongodb/mongo/commit/ee9604ce891c21740cb70fa6124b3e566528dae4

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