[SERVER-47710] Make onConfirmedSet update config.shards serially Created: 22/Apr/20  Updated: 29/Oct/23  Resolved: 06/May/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc6, 4.7.0

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Service arch 2020-05-04, Service arch 2020-05-18
Participants:
Linked BF Score: 21

 Description   

While onConfirmedSet is called synchronously, it schedules ShardRegistry::updateReplicaSetOnConfigServer through a thread pool task executor. 

A single node may call onConfirmedSet serially several times at almost the same time - it's possible for the scheduled threads to pause and ordering to not be upheld. 



 Comments   
Comment by Githook User [ 13/May/20 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-47710 Make onConfirmedSet update config.shards serially

(cherry picked from commit 71a01bc43a26ec328657d7d9768ce11cad6f89a7)
Branch: v4.4
https://github.com/mongodb/mongo/commit/c97f0868afcd8d8ce72a14f09283c827b33d44e9

Comment by Githook User [ 06/May/20 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-47710 Make onConfirmedSet update config.shards serially
Branch: master
https://github.com/mongodb/mongo/commit/71a01bc43a26ec328657d7d9768ce11cad6f89a7

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