[SERVER-59771] Rely on the timestamp to implement the ComparableChunkVersion class Created: 03/Sep/21  Updated: 23/Sep/21  Resolved: 23/Sep/21

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

Type: Task Priority: Major - P3
Reporter: Sergi Mateo Bellido Assignee: Allison Easton
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-59770 Use the timestamp to implement the co... Closed
Sprint: Sharding EMEA 2021-09-06, Sharding EMEA 2021-09-20, Sharding EMEA 2021-10-04
Participants:

 Description   

Rely on the comparison operator based on the timestamp introduced in SERVER-59770  to implement the comparison methods of the ComparableChunkVersion class.



 Comments   
Comment by Tommaso Tocci [ 23/Sep/21 ]

Due to the fact that all ChunkVersion::UNSHARDED() doesn't have a real timestamp we couldn't implement the standard comparison operator in SERVER-59770 thus we still can't really simplify the logic in the ComparableChunkVersion class to order two versions.

This will be possible only once we will assign a proper timestamp to all unsharded collection (PM-1623)

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