[SERVER-66541] Clear the Collection Sharding State map during the setFCV command Created: 18/May/22  Updated: 29/Oct/23  Resolved: 20/Jun/22

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

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

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0
Sprint: Sharding EMEA 2022-05-30, Sharding EMEA 2022-06-13, Sharding EMEA 2022-06-27
Participants:

 Description   

The goal of this task is to clear the Collection Sharding State map (i.e. all collections) during the setFCV upgrade to 6.0.

The reason to do that is to define a barrier from which all shards must know what they own at all moment. We can do this because since 5.3 we introduced a new migration protocol that guarantees that both donor and recipient update their filtering information as part of the commit phase. Before that, we had a weaker guarantee: the donor for sure knew about the migration but for the recipient we just triggered a best-effort refresh.

This change should land on 6.0.



 Comments   
Comment by Githook User [ 20/Jun/22 ]

Author:

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

Message: SERVER-66541 Rely on a refresh to define the metadata barrier
Branch: v6.0
https://github.com/mongodb/mongo/commit/f9c9120058d3d5597a282bc72e6bc4ced2517212

Comment by Githook User [ 20/Jun/22 ]

Author:

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

Message: Revert "SERVER-66541 Clear the filtering metadata on setFCV"

This reverts commit 7bc0a21e572227371d79553a3263a142752fae56.
Branch: v6.0
https://github.com/mongodb/mongo/commit/dd97dc5f81ddce5415fedf539b11246910f8f676

Comment by Githook User [ 14/Jun/22 ]

Author:

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

Message: SERVER-66541 Clear the filtering metadata on setFCV

Relying on config.cache.collections to signal secondary nodes
Branch: v6.0
https://github.com/mongodb/mongo/commit/7bc0a21e572227371d79553a3263a142752fae56

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