[SERVER-70787] Fix race condition in ticketholder_test Created: 24/Oct/22  Updated: 29/Oct/23  Resolved: 24/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-10-31
Participants:
Linked BF Score: 43

 Description   

During tests we check that only one thread holds the ticket but then proceed to release all tickets held by threads. This means that after the check if we release the ticket and another thread acquires it immediately afterwards, then we will also release it.



 Comments   
Comment by Githook User [ 24/Oct/22 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-70787 Fix race condition in ticketholder_test
Branch: master
https://github.com/mongodb/mongo/commit/66a9a0f2371f136651446a2f34998a062d9c91c2

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