[SERVER-79682] ShardsvrReshardCollection Can Hang If Stepdown Occurs Shortly After Stepping Up Created: 03/Aug/23 Updated: 29/Oct/23 Resolved: 18/Sep/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 6.0.0 |
| Fix Version/s: | 7.2.0-rc0, 7.0.2, 5.0.22, 6.0.11, 7.1.0-rc3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Brett Nawrocki | Assignee: | Nandini Bhartiya |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | sharding-nyc-subteam1 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Sharding NYC
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v7.1, v7.0, v6.0, v5.0
|
||||||||
| Sprint: | Sharding NYC 2023-09-18, Sharding NYC 2023-10-02 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 12 | ||||||||
| Story Points: | 3 | ||||||||
| Description |
|
The ShardsvrReshardCollection command does not flag the operation context to be interrupted during a stepdown, which is commonly done by other commands. This means that when calling getOrCreateInstance, it's possible to hang in the call to _waitForRecoveryCompletion when waiting for the state to reach kRecovered. After a stepdown, the state will be set to kPaused, so it's necessary that the operation context be interrupted at stepdown to avoid the hang. See this and this comment on BF-29457 for more information and an example of this happening. |
| Comments |
| Comment by Githook User [ 18/Sep/23 ] |
|
Author: {'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}Message: (cherry picked from commit 90680ac48281685551dad1253986be0c50de84bc) |
| Comment by Githook User [ 18/Sep/23 ] |
|
Author: {'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}Message: (cherry picked from commit 90680ac48281685551dad1253986be0c50de84bc) |
| Comment by Githook User [ 18/Sep/23 ] |
|
Author: {'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}Message: (cherry picked from commit 90680ac48281685551dad1253986be0c50de84bc) |
| Comment by Githook User [ 18/Sep/23 ] |
|
Author: {'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}Message: (cherry picked from commit 90680ac48281685551dad1253986be0c50de84bc) |
| Comment by Githook User [ 15/Sep/23 ] |
|
Author: {'name': 'Nandini Bhartiya', 'email': 'nandini.bhartiya@mongodb.com', 'username': 'nandinibhartiyaMDB'}Message: |