[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: |
|
||||||||||||||||
| 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: 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: |