[SERVER-63088] Change Chunk version persisted format Created: 28/Jan/22  Updated: 29/Oct/23  Resolved: 18/Feb/22

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

Type: Task Priority: Major - P3
Reporter: Marcos José Grillo Ramirez Assignee: Marcos José Grillo Ramirez
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-63403 Remove old chunk version parsing format Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-02-07, Sharding EMEA 2022-02-21
Participants:

 Description   

Currently, when persisted, we have a positional like format for the chunk version, but eventually, we want to manage an object like format everywhere:

{
  t: <Collection timestamp>,
  e: <Collection epoch OID>,
  i: <Index timestamp>,
  v: <Collection major|minor version encoded as uint64_t>,
}

After the completion of this ticket, any cluster being upgraded to the next LTS version, will ensure, through the FCV upgrade code, all persisted ChunkVersions (like for example, the migration coordinator document) will have the format described above. In a similar manner, when downgrading to a continuous or latest stable version, the object format will be changed to the current positional format.



 Comments   
Comment by Githook User [ 21/Feb/22 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-63088 Enable chunk version persisted format change by default and ensure draining of migrations on FCV change only when necessary
Branch: master
https://github.com/mongodb/mongo/commit/b80fabd0dfc93d154eb427f46c73b1acea857cbf

Comment by Githook User [ 18/Feb/22 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-63088 Change chunk version persistance format
Branch: master
https://github.com/mongodb/mongo/commit/e788711e98e6d4f6cbc8a97611109f9c5a86546c

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