[SERVER-77196] NoPrefetch test in TaskExecutorCursorTest can deadlock Created: 16/May/23  Updated: 29/Oct/23  Resolved: 17/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 6.0.7, 5.0.19, 7.0.0-rc3

Type: Bug Priority: Major - P3
Reporter: Ben Shteinfeld Assignee: Ben Shteinfeld
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:
v7.0, v6.0, v5.0, v4.4
Sprint: QO 2023-05-29
Participants:
Linked BF Score: 23

 Description   

In the NoPrefetchGetMore test, it is currently possible for the main thread to enter the network interface when it is already acting as the network. This causes a deadlock in the test. This occurs when we run hasReadyRequests before the destruction of the NetworkGuard in this lambda, which exits the network.



 Comments   
Comment by Githook User [ 31/May/23 ]

Author:

{'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}

Message: SERVER-77196 Prevent potential deadlock in TaskExecutorCursorTest
Branch: v7.0
https://github.com/mongodb/mongo/commit/f769da4ae5df1a0b64fa2cd8aa52cfe022418246

Comment by Githook User [ 31/May/23 ]

Author:

{'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}

Message: SERVER-77196 Prevent potential deadlock in TaskExecutorCursorTest
Branch: v6.0
https://github.com/mongodb/mongo/commit/597e4c7f2a2a00e103c7582c65462637de322bd7

Comment by Githook User [ 17/May/23 ]

Author:

{'name': 'Ben Shteinfeld', 'email': 'ben.shteinfeld@mongodb.com', 'username': 'bshteinfeld'}

Message: SERVER-77196 Prevent potential deadlock in TaskExecutorCursorTest
Branch: master
https://github.com/mongodb/mongo/commit/b4b4b310cd5fe22d33a749eca4e43c42c2adf76c

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