[SERVER-29016] Config primary may hang in shutdown waiting for Balancer Created: 28/Apr/17  Updated: 30/Oct/23  Resolved: 28/Apr/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.4.5, 3.5.7

Type: Bug Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Misha Tyulenev
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:
v3.4
Sprint: Sharding 2017-05-08
Participants:
Linked BF Score: 0

 Description   

This issue may happen if the
1) config shard is being shut down - the secondaries are successfully shut down, the primary Balancer is in the main loop and waits for ShardRegistry::reload

2) ShardRegistry::reload is already dispatched to the internalReload

3) As its a config shard the reload is using LocalShard to do exhaustiveFindOnConfig

4) the exhaustiveFindOnConfig calls for the ReplicationCoordinator::waitUntilOpTimeForRead

5) the last call never returns as the secondaries have stepped down already



 Comments   
Comment by Githook User [ 05/May/17 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-29016: make ShardRegistry::reload interruptible

(cherry picked from commit 17807063eab1387023719e818c266dd31d16a0d0)
Branch: v3.4
https://github.com/mongodb/mongo/commit/ffeca900972e305396f537c5b3b27e126e6746f9

Comment by Githook User [ 28/Apr/17 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-29016: make ShardRegistry::reload interruptible
Branch: master
https://github.com/mongodb/mongo/commit/17807063eab1387023719e818c266dd31d16a0d0

Generated at Thu Feb 08 04:19:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.