[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: |
|
||||
| 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: |