[SERVER-66489] Fix race condition in FifoBasicMetrics test Created: 16/May/22  Updated: 29/Oct/23  Resolved: 18/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc8, 6.1.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:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Execution Team 2022-05-30
Participants:
Linked BF Score: 45

 Description   

As part of the test we first wait until there's an item enqueued in the ticketholder. The problem is that optimistically the wait acquires a ticket then releases it if it shouldn't have done that.

This leads to a small window where the metrics indicate 2 tickets are in use when in reality only 1 is in use.



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

Author:

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

Message: SERVER-66489 Fix race condition in ticketholder test

(cherry picked from commit c9c71fa2a7c872a2c146b62cb9e94e93e7e8bed9)
Branch: v6.0
https://github.com/mongodb/mongo/commit/97ce6056dfab8b48139d6e7918e6ea66178da879

Comment by Githook User [ 18/May/22 ]

Author:

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

Message: SERVER-66489 Fix race condition in ticketholder test
Branch: master
https://github.com/mongodb/mongo/commit/c9c71fa2a7c872a2c146b62cb9e94e93e7e8bed9

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