[SERVER-55641] Reorganize the FCV upgrade/downgrade configsvr metadata patch-up around the 2-phase setFCV Created: 30/Mar/21  Updated: 29/Oct/23  Resolved: 15/Apr/21

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

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Jordi Serra Torrens
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-0-Metadata-Format
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-55636 Add the parameter to the setFCV comma... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Reorganize the FCV upgrade/downgrade configsvr metadata patch-up around the 2-phase setFCV.

On upgrade:

  1. Configsvr finishes invoking setFCV(phase-1) to all shards.
  2. Configsvr performs a first metadata patch-up pass to:
    • $set 'timestamp' and 'collectionUUID' to all config.chunks documents
    • create the uuid_* indexes on config.chunks
    • $set timestamp for all config.collections documents
    • Drop ns_* indexes on config.chunks
  3. Configsvr invokes setFCV(phase-2) to all shards
  4. Configsvr performs a second metadata patch-up pass to:
    • $unset 'ns' from all documents in config.chunks


 Comments   
Comment by Githook User [ 15/Apr/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-55641: Reorganize the FCV upgrade/downgrade configsvr metadata patch-up around the 2-phase setFCV
Branch: master
https://github.com/mongodb/mongo/commit/dbadbc031fccc8908e28df83c0e4e1d44cbcb5fc

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