[SERVER-64983] Release Client lock before rolling back WT transaction in TransactionParticipant::_resetTransactionState Created: 28/Mar/22  Updated: 29/Oct/23  Resolved: 08/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.2, 4.4.14, 5.0.8, 6.0.0-rc0, 4.2.20

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

Issue Links:
Backports
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.3, v5.0, v4.4, v4.2
Sprint: Execution Team 2022-04-18
Participants:
Case:

 Description   

Holding the Client lock in TransactionParticipant::_resetTransactionState can cause a deadlock when the commit/abort is assigned eviction duty by WT, as described in this comment..

We need to rollback the WT transaction without holding the Client lock.



 Comments   
Comment by Githook User [ 14/Apr/22 ]

Author:

{'name': 'Daniel Gómez Ferro', 'email': 'daniel.gomezferro@mongodb.com', 'username': 'dgomezferro'}

Message: SERVER-64983 Abort transaction after releasing Client lock
Branch: v5.0
https://github.com/mongodb/mongo/commit/08576d121b6770d13a50580d574042baccbcce8c

Comment by Githook User [ 14/Apr/22 ]

Author:

{'name': 'Daniel Gómez Ferro', 'email': 'daniel.gomezferro@mongodb.com', 'username': 'dgomezferro'}

Message: SERVER-64983 Abort transaction after releasing Client lock
Branch: v5.3
https://github.com/mongodb/mongo/commit/8051a9e387702e20256b2f53e3c27af6ef67d820

Comment by Githook User [ 11/Apr/22 ]

Author:

{'name': 'Daniel Gómez Ferro', 'email': 'daniel.gomezferro@mongodb.com', 'username': 'dgomezferro'}

Message: SERVER-64983 Abort transaction after releasing Client lock
Branch: v4.4
https://github.com/mongodb/mongo/commit/eed8dfd2aa9e9b92db72736f7753f4a088c58ca8

Comment by Githook User [ 11/Apr/22 ]

Author:

{'name': 'Daniel Gómez Ferro', 'email': 'daniel.gomezferro@mongodb.com', 'username': 'dgomezferro'}

Message: SERVER-64983 Abort transaction after releasing Client lock
Branch: v4.2
https://github.com/mongodb/mongo/commit/634c01cb8a360fd816ae61d3892bc28e580dc81b

Comment by Githook User [ 07/Apr/22 ]

Author:

{'name': 'Daniel Gómez Ferro', 'email': 'daniel.gomezferro@mongodb.com', 'username': 'dgomezferro'}

Message: SERVER-64983 Abort transaction after releasing Client lock
Branch: master
https://github.com/mongodb/mongo/commit/0da15dffeaae2959448e0dad5ec003986e65cad2

Generated at Thu Feb 08 06:01:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.