[SERVER-57523] Do not persist epochs and timestamps on config.chunks Created: 08/Jun/21  Updated: 29/Oct/23  Resolved: 15/Jun/21

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

Type: Task Priority: Major - P3
Reporter: Sergi Mateo Bellido Assignee: Sergi Mateo Bellido
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-57060 Rename of a sharded collection must b... Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Sharding EMEA 2021-06-14, Sharding EMEA 2021-06-28
Participants:
Linked BF Score: 149

 Description   

The goal of this ticket is to change the ChunkType::fromConfigBSON and ChunkType::toConfigBSON implementations so we don't read/write epochs if they are not needed.

We may need to do this ticket together with SERVER-57522 , otherwise setFCV + DDL tests won't work.



 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 [ 15/Jun/21 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-57523 Do not persist epochs and timestamps on config.chunks

  • Do not persist on config.chunks the epoch and timestamp if we are in
    5.0 (i.e. the chunk has UUID and doesn't have NS).
  • Changing the setFCV command.

cherry-pick from fac5a9d7dd3465746e8e0294e73dec18310ffbe9 + minor test fix
Branch: v5.0
https://github.com/mongodb/mongo/commit/3e8e96a016711f0ba8d1730ef2d67085f9c86af7

Comment by Githook User [ 15/Jun/21 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-57523 Do not persist epochs and timestamps on config.chunks

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