[SERVER-35870] Temporarily release locks on replica set stepdown Created: 28/Jun/18  Updated: 29/Oct/23  Resolved: 28/Sep/18

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

Type: Task Priority: Major - P3
Reporter: Gregory McKeon (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Fixed Votes: 0
Labels: prepare_durability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-37329 Allow ShardRemote to be interrupted w... Closed
depends on SERVER-36913 Add functionality to LockManager to r... Closed
is depended on by SERVER-37381 Allow prepared transactions to surviv... Closed
Problem/Incident
Related
related to SERVER-37594 Dump all checked out sessions in the ... Closed
related to SERVER-37711 Revert the `ReplicationStateTransitio... Closed
is related to SERVER-37355 Make ShardRemote::_runExhaustiveCurso... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2018-08-27, Repl 2018-09-10, Repl 2018-09-24, Repl 2018-10-08
Participants:
Linked BF Score: 14

 Description   

To allow stepdown to complete when there are prepared transactions holding on to locks



 Comments   
Comment by Githook User [ 25/Oct/18 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-37711 Revert commits related to lock yielding for prepared transactions on step down

This change reverts the following commits:

Comment by Githook User [ 28/Sep/18 ]

Author:

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

Message: SERVER-35870 Allow stepdown to work with prepared transactions
Branch: master
https://github.com/mongodb/mongo/commit/f96903979ac329a760e7b6f1bb5d8695d3daf2a7

Comment by Githook User [ 28/Sep/18 ]

Author:

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

Message: SERVER-35870 Allow more than one thread to block Session checkout at a time
Branch: master
https://github.com/mongodb/mongo/commit/9406af079a894bae80fbbec4703b04974bf84476

Comment by Githook User [ 26/Sep/18 ]

Author:

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

Message: SERVER-35870 Ensure mutex is held during WaiterGuard destructor
Branch: master
https://github.com/mongodb/mongo/commit/dc66c2049ab31b927970e48b6adcc24c2724bfe7

Comment by Githook User [ 24/Sep/18 ]

Author:

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

Message: SERVER-35870 Add RAII object for handling lock acquisitions during stepdown.
Branch: master
https://github.com/mongodb/mongo/commit/cd533253819148e71a5e7c772ea484aafcbbf2e2

Comment by Githook User [ 24/Sep/18 ]

Author:

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

Message: SERVER-35870 Make ReplicationCoordinator::stepDown report errors via exceptions
Branch: master
https://github.com/mongodb/mongo/commit/0658c2badc16b8f372c7531a563ac7c6f4518a2e

Comment by Githook User [ 17/Sep/18 ]

Author:

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

Message: SERVER-35870 Add functionality to prevent Session checkouts & wait for all Sessions to be checked in
Branch: master
https://github.com/mongodb/mongo/commit/c6d90316d6b694e12426274c713a4a078e004fc5

Comment by Githook User [ 17/Sep/18 ]

Author:

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

Message: SERVER-35870 Rename SessionCatalog::_txnTable to _sessions
Branch: master
https://github.com/mongodb/mongo/commit/9cb3cdea9cd05686abc2300e7f18bd2a51437240

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