[SERVER-79086] Deletion of ReshardingCoordinatorService state document is not idempotent Created: 18/Jul/23 Updated: 29/Oct/23 Resolved: 08/Sep/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 5.0.0, 6.0.0, 7.0.0-rc8 |
| Fix Version/s: | 7.0.2, 7.1.0-rc2, 5.0.22, 6.0.11 |
| 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: |
|
||||||||
| 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-04, Sharding NYC 2023-09-18 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 15 | ||||||||
| Story Points: | 4 | ||||||||
| Description |
|
It is possible for a ReshardingCoordinatorService to retry deletion of state document as part of this retry loop due to a transient error. The retry doesn't check if it had already deleted the state document previously and can fail here. This causes the resharding operation to fail with a fatal error and halt the config server node. We should make the deletion idempotent to avoid this scenario from happening. |
| Comments |
| Comment by Githook User [ 08/Sep/23 ] |
|
Author: {'name': 'Abdul Qadeer', 'email': 'abdul.qadeer@mongodb.com', 'username': 'zorro786'}Message: (cherry picked wth changes from commit 428f3b258390e33348454162ebfaf9488ac6ff73) |
| Comment by Githook User [ 08/Sep/23 ] |
|
Author: {'name': 'Abdul Qadeer', 'email': 'abdul.qadeer@mongodb.com', 'username': 'zorro786'}Message: (cherry picked with changes from commit 6a5dad6cf278d789b4c46e569cca04b3c3f4a08e) |
| Comment by Githook User [ 08/Sep/23 ] |
|
Author: {'name': 'Abdul Qadeer', 'email': 'abdul.qadeer@mongodb.com', 'username': 'zorro786'}Message: (cherry picked from commit c73f43f7297d6da88163b64860f8912c471d8586) |
| Comment by Githook User [ 08/Sep/23 ] |
|
Author: {'name': 'Abdul Qadeer', 'email': 'abdul.qadeer@mongodb.com', 'username': 'zorro786'}Message: (cherry picked from commit c73f43f7297d6da88163b64860f8912c471d8586 with |
| Comment by Githook User [ 08/Sep/23 ] |
|
Author: {'name': 'Abdul Qadeer', 'email': 'abdul.qadeer@mongodb.com', 'username': 'zorro786'}Message: |