[SERVER-36913] Add functionality to LockManager to restore locks for prepared transactions during replset state transitions Created: 28/Aug/18  Updated: 29/Oct/23  Resolved: 18/Sep/18

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

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

Issue Links:
Depends
is depended on by SERVER-35870 Temporarily release locks on replica ... Closed
Related
related to SERVER-37711 Revert the `ReplicationStateTransitio... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2018-09-10, Repl 2018-09-24
Participants:

 Description   

Replication state transitions take the global X lock.  For state transitions in the presence of prepared transactions we will need a way to temporarily yield the locks held by prepared transactions while we do the state transition, and then atomically restore the lock state for each prepared transaction and drop the global X lock held by the thread driving the replset state transition.



 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 [ 18/Sep/18 ]

Author:

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

Message: SERVER-36913 Add functionality to LockManager for repl state transitions with prepared transactions.
Branch: master
https://github.com/mongodb/mongo/commit/e65ff57e108ed69c46cc0b0ccbdd675663de2469

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