-
Type: Task
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sharding
-
Sharding 2021-06-14
-
1
We changed the document deletion to use a manual WriteUnitOfWork, since we needed to leverage the onCommit handler to fulfill the completion promise. This was a temporary solution to SERVER-54460. However, SERVER-54460 has been solved by instead adding setAlwaysInterruptAtStepDownOrUp to relevant opCtxs. We no longer need to onCommit handler.
As code cleanup we can convert resharding document deletion back to using the PersistentTaskStore, which uses fewer lines of code.
- is related to
-
SERVER-54460 Resharding may delete the state document before fully completing
- Closed
-
SERVER-54610 Resharding writes to donor documents should take exclusive locks
- Closed
-
SERVER-51606 Handle recovery from resharding donors
- Closed
-
SERVER-55511 Handle recovery for resharding recipients
- Closed