-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: Backlog
-
Component/s: None
-
Fully Compatible
-
v5.0
-
Sharding EMEA 2021-05-31
The initial checks for the create collection are performed in the check phase of the coordinator. The phase is executed through the _executePhase helper that persist the state document on disk even though this is not necessary.
In fact this phase doesn't perform any persisted action and if it fail we can just release the coordinator.
The proposed improvement is to execute these checks outside of a persisted phase, this would save one majority committed write on the create collection coordinator.
- depends on
-
SERVER-56390 Failed to construct ShardingDDLCoordinators do not get released
- Closed