[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:
Backports
Depends
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: SERVER-79086 Make Deletion of Resharding State Document Idempotent

(cherry picked wth changes from commit 428f3b258390e33348454162ebfaf9488ac6ff73)
Branch: v6.0
https://github.com/mongodb/mongo/commit/8bb4d42159eea17e58024dc443e40c8e73dfa780

Comment by Githook User [ 08/Sep/23 ]

Author:

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

Message: SERVER-79086 Make Deletion of Resharding State Document Idempotent

(cherry picked with changes from commit 6a5dad6cf278d789b4c46e569cca04b3c3f4a08e)
Branch: v5.0
https://github.com/mongodb/mongo/commit/baab5cd200aa85b529f56bfc52c9b877e97a66df

Comment by Githook User [ 08/Sep/23 ]

Author:

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

Message: SERVER-79086 Make Deletion of Resharding State Document Idempotent

(cherry picked from commit c73f43f7297d6da88163b64860f8912c471d8586)
Branch: v7.1
https://github.com/mongodb/mongo/commit/6c9f527aa8ce7abb3bccbab2a0f0d85fadb76d72

Comment by Githook User [ 08/Sep/23 ]

Author:

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

Message: SERVER-79086 Make Deletion of Resharding State Document Idempotent

(cherry picked from commit c73f43f7297d6da88163b64860f8912c471d8586 with
changes)
Branch: v7.0
https://github.com/mongodb/mongo/commit/64712ec407aa32919c3ae6d6936d8282c15d780b

Comment by Githook User [ 08/Sep/23 ]

Author:

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

Message: SERVER-79086 Make Deletion of Resharding State Document Idempotent
Branch: master
https://github.com/mongodb/mongo/commit/c73f43f7297d6da88163b64860f8912c471d8586

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