[SERVER-42338] transaction_coordinator_test can self deadlock Created: 22/Jul/19  Updated: 29/Oct/23  Resolved: 31/Jul/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.2.1, 4.3.1

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Sharding 2019-08-12
Participants:
Linked BF Score: 16

 Description   

when hang failpoint is enabled and when promiseFuture decides to run the future callback inline (which include the hang failpont) inside runCommit



 Comments   
Comment by Githook User [ 14/Aug/19 ]

Author:

{'username': 'renctan', 'email': 'randolph@10gen.com', 'name': 'Randolph Tan'}

Message: SERVER-42338 Make the hang failpoint callback always ran on the executor thread

(cherry picked from commit f083be87fa096353b004e3f4ddd0503b77f7ef06)
Branch: v4.2
https://github.com/mongodb/mongo/commit/5706e608e514786deaae3f4fa7916fc7e6371dfe

Comment by Githook User [ 31/Jul/19 ]

Author:

{'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}

Message: SERVER-42338 Make the hang failpoint callback always ran on the executor thread
Branch: master
https://github.com/mongodb/mongo/commit/f083be87fa096353b004e3f4ddd0503b77f7ef06

Comment by Randolph Tan [ 22/Jul/19 ]

I think we might be able to fix this by calling thenRunOn instead of then here so it will not be executed inline.

Generated at Thu Feb 08 05:00:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.