[SERVER-63891] Fix synchronization issues around using `blockBatonASIOBeforePoll` in `transport_test` Created: 22/Feb/22  Updated: 29/Oct/23  Resolved: 07/Mar/22

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Amirsaman Memaripour Assignee: Amirsaman Memaripour
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: Service Arch 2022-03-07, Service Arch 2022-03-21
Participants:
Linked BF Score: 44
Story Points: 1

 Description   

This should address the following:

  • Tests that rely on blockBatonASIOBeforePoll should query FailPointEnableBlock ::initialTimesEntered() before blocking on the fail-point.
  • The main test thread should ensure the fail-point is enabled before running any blocking code that would trigger poll().

This should ensure the following sequence:
The fail-point is enabled.
The main thread then enters blocking code, internally running poll().
The thread setting the fail-point can then use FailPoint::waitForTimesEntered() to wait for the main test thread to block on the fail-point.



 Comments   
Comment by Githook User [ 07/Mar/22 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-63891 Fix synchronization issues around using `blockBatonASIOBeforePoll` in `transport_test`
Branch: master
https://github.com/mongodb/mongo/commit/983314baa3385b27a0cbfbc7d6c7f1b78db7ba56

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