[SERVER-62424] _configsvrRemoveShard must wait for majority before returning Created: 07/Jan/22  Updated: 29/Oct/23  Resolved: 11/Jan/22

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

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2022-01-10, Sharding EMEA 2022-01-24
Participants:
Linked BF Score: 138

 Description   

The _configsvrRemoveShard command must wait for majority before returning in order to ensure causal consistency.

It should be enough to add the following code at the end of the command:

repl::ReplClientInfo::forClient(opCtx->getClient()).setLastOpToSystemLastOpTime(opCtx);



 Comments   
Comment by Githook User [ 11/Jan/22 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-62424 _configsvrRemoveShard must wait for majority before returning
Branch: master
https://github.com/mongodb/mongo/commit/e9eb68e62f9e9006f770c7cf37c933727063d450

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