[SERVER-28544] Stepdown command must take global lock in exclusive mode Created: 29/Mar/17  Updated: 10/May/18  Resolved: 25/Sep/17

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-27892 Clarify locking rules for _canAcceptN... Closed
Documented
is documented by DOCS-10844 Stepdown command must take global loc... Closed
Related
related to SERVER-31223 fix race in StepDownTest::OnlyOneStep... Closed
related to SERVER-30719 Fix dbCheck behavior during stepdown Closed
is related to SERVER-28702 Race condition of stepdown command an... Closed
is related to SERVER-30852 Force reconfig that makes current pri... Closed
Backwards Compatibility: Minor Change
Operating System: ALL
Sprint: Repl 2017-04-17, Repl 2017-05-08, Repl 2017-05-29, Repl 2017-06-19, Repl 2017-07-31, Repl 2017-08-21, Repl 2017-09-11, Repl 2017-10-02
Participants:
Linked BF Score: 0

 Description   

Currently the stepdown command runs with the global lock in shared mode, which violates the concurrency rules for the _canAcceptNonLocalWrites variable.



 Comments   
Comment by Githook User [ 25/Sep/17 ]

Author:

{'email': 'spencer@mongodb.com', 'name': 'Spencer T Brody', 'username': 'stbrody'}

Message: SERVER-28544 Change stepdown command to take global lock in exclusive mode
Branch: master
https://github.com/mongodb/mongo/commit/44d011a20109ef8769d881306e33bc92a2b44f4d

Comment by Ramon Fernandez Marina [ 15/Sep/17 ]

Author:

{'username': u'stbrody', 'name': u'Spencer T Brody', 'email': u'spencer@mongodb.com'}

Message:SERVER-28544 Push logic from ReplicationCoordinatorImpl::_tryToStepDown into TopologyCoordinator
Branch:master
https://github.com/mongodb/mongo/commit/267a4d08d5d9fb0e56ac27aac7666ab3487fd222

Comment by Ramon Fernandez Marina [ 13/Sep/17 ]

Author:

{'username': u'stbrody', 'name': u'Spencer T Brody', 'email': u'spencer@mongodb.com'}

Message:SERVER-28544 Only allow one stepdown command to be processed at a time
Branch:master
https://github.com/mongodb/mongo/commit/d0fe72bb292faa5c00424713d3a535974ce85d75

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