[SERVER-56367] Tenant migration recipient unit test blocked due to a race when setting the failpoint Created: 26/Apr/21  Updated: 29/Oct/23  Resolved: 27/Apr/21

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.9.0-rc1, 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Wenbin Zhu Assignee: Wenbin Zhu
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:
v4.9
Sprint: Repl 2021-05-03
Participants:
Linked BF Score: 32

 Description   

Some unit tests in tenant_migration_recipient_service_test.cpp enables a failpoint after creating the tenant migration recipient instance. However since the instance is running in a separate thread, it is possible that by the time the failpoint is enabled, the instance code already ran past the failpoint, causing the test to block indefinitely while waiting on the failpoint to be entered.



 Comments   
Comment by Githook User [ 28/Apr/21 ]

Author:

{'name': 'Wenbin Zhu', 'email': 'wenbin.zhu@mongodb.com', 'username': 'WenbinZhu'}

Message: SERVER-56367 Fix race when enabling failpoint in tenant migration recipient test.

(cherry picked from commit cc723f54691062eae59a067a8549849fb585d843)
Branch: v4.9
https://github.com/mongodb/mongo/commit/9d463d0283018bd0c07604b3f74ad6830f0e513b

Comment by Githook User [ 27/Apr/21 ]

Author:

{'name': 'Wenbin Zhu', 'email': 'wenbin.zhu@mongodb.com', 'username': 'WenbinZhu'}

Message: SERVER-56367 Fix race when enabling failpoint in tenant migration recipient test.
Branch: master
https://github.com/mongodb/mongo/commit/cc723f54691062eae59a067a8549849fb585d843

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