-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: Backlog
-
Component/s: None
-
Fully Compatible
-
ALL
-
Sharding 2021-04-05, Sharding EMEA 2021-05-03
-
138
Currently there is no guarantee that the ShardingDDLCoordinator will emplace their completion promises before their destruction. In fact it is possible that we loose all the references to a coordinator, in fact if a stepdown/shutdown happens between:
- By removing its stored document (the POS will remove its reference from the active instance map)
- By interrupting the command from which the coordinator was originated.
We will loose all the reference to the coordinator that will be destructed without having the chance to set its completion promise.
The proposed solution here is to move the removal of the coordinator document to the onCompletion task of the ShardingDDLCoordinator, so that ti will be done in the same future chain task.
- depends on
-
SERVER-55662 Retry NotPrimaryError and ShutdownError categories when commiting in the new create collection path
- Closed
- is depended on by
-
SERVER-54696 Serialize DDL operations on step-up
- Closed