[SERVER-70250] Race between resharding coordinator and state transition guard [resharding_coordinator_service_test] Created: 05/Oct/22  Updated: 29/Oct/23  Resolved: 11/Oct/22

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

Type: Bug Priority: Major - P3
Reporter: Abdul Qadeer Assignee: Abdul Qadeer
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
Steps To Reproduce:

Add a sleep of 5 seconds here.

Sprint: Sharding 2022-10-17
Participants:
Linked BF Score: 45
Story Points: 2

 Description   

In MultipleReshardingOperationsFail unit test, the ReshardingCoordinator is being initialized before the PauseBeforeStateTransitioned guard is defined in runReshardingToCompletion(). It is possible for the coordinator to transition to "preparingToDonate" before the guard that will wait for “preparing-to-donate” state in the future is notified. This causes the guard to wait indefinitely and timeout. 



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

Author:

{'name': 'Abdul Qadeer', 'email': 'abdul.qadeer@mongodb.com', 'username': 'zorro786'}

Message: SERVER-70250 Prevent race between pauseBeforeStateTransition and initializeCoordinator()
Branch: master
https://github.com/mongodb/mongo/commit/6c6b3b1cde99ccb35eef4dd7aab64d6a6d0d2043

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