[SERVER-75616] Fix Unsynchronized createInstance Calls in MovePrimaryDonorServiceTest Created: 03/Apr/23  Updated: 29/Oct/23  Resolved: 04/Apr/23

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

Type: Bug Priority: Major - P3
Reporter: Brett Nawrocki Assignee: Brett Nawrocki
Resolution: Fixed Votes: 0
Labels: sharding-nyc-subteam1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Evergreen 2023-04-03
Participants:
Linked BF Score: 45

 Description   

There have been a number of build failures due to races between calling createInstance() and then doing some other work in the unit tests. Add a sleep between creating the instance and returning it to the caller to ensure that all tests properly synchronize with the instance state if necessary.



 Comments   
Comment by Githook User [ 03/Apr/23 ]

Author:

{'name': 'Brett Nawrocki', 'email': 'brett.nawrocki@mongodb.com', 'username': 'brettnawrocki'}

Message: SERVER-75616 Fix race in MovePrimaryDonor unit tests
Branch: master
https://github.com/mongodb/mongo/commit/008e7656b9bfdc9a6546bd404972031d69d82cba

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