[SERVER-36685] Reverse order of TransactionParticipant (Session in 4.0) and Client locks Created: 15/Aug/18  Updated: 29/Oct/23  Resolved: 22/Aug/18

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.0.2, 4.1.3

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Matthew Russotto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-39610 Reformat TransactionParticipant comme... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0
Sprint: Repl 2018-08-27
Participants:
Linked BF Score: 46

 Description   

The Client lock is a spin lock which should be acquired last and held for as short a duration as practical. We should therefore acquire it after acquiring the TransactionParticipant mutex when changing the locker on the OperationContext.



 Comments   
Comment by Githook User [ 23/Aug/18 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@10gen.com', 'username': 'mtrussotto'}

Message: SERVER-36685 Reverse order of Session and Client locks
Branch: v4.0
https://github.com/mongodb/mongo/commit/a17bfb8c3f1c549b6b75930bff82ec821dfa7ea0

Comment by Githook User [ 23/Aug/18 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@10gen.com', 'username': 'mtrussotto'}

Message: SERVER-36685 Make transaction statistics accessible without Session mutex

(cherry picked from commit 67c1d8cc0f4108954c4e7f7a96194dcd10ebab6b)
Branch: v4.0
https://github.com/mongodb/mongo/commit/1b6516bcb6a6a5899e1bc1928f55c6b290556ce2

Comment by Githook User [ 22/Aug/18 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@10gen.com', 'username': 'mtrussotto'}

Message: SERVER-36685 Reverse order of TransactionParticipant and Client locks
Branch: master
https://github.com/mongodb/mongo/commit/d351e1d89fe4c26d70ff890444f1b7e5554a0876

Comment by Githook User [ 22/Aug/18 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@10gen.com', 'username': 'mtrussotto'}

Message: SERVER-36685 Make transaction statistics accessible without TransactionParticipant mutex.
Branch: master
https://github.com/mongodb/mongo/commit/fbcb6c09487177db3c121abf9755e08037205734

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