[SERVER-56557] Simplify create collection coordinator check phase Created: 01/May/21  Updated: 29/Oct/23  Resolved: 25/May/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: Backlog
Fix Version/s: 5.0.0-rc1, 5.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Tommaso Tocci
Resolution: Fixed Votes: 0
Labels: PM-1965-Cleanup
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-56390 Failed to construct ShardingDDLCoordi... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Sharding EMEA 2021-05-31
Participants:

 Description   

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.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 26/May/21 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-56557 Simplify create collection coordinator check phase

(cherry picked from commit 264077557c0addf6a8871e14df16b84635c3dbeb)
Branch: v5.0
https://github.com/mongodb/mongo/commit/08b66be81feb863c24ae43e897c84ab3a77e63d3

Comment by Githook User [ 25/May/21 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-56557 Simplify create collection coordinator check phase
Branch: master
https://github.com/mongodb/mongo/commit/264077557c0addf6a8871e14df16b84635c3dbeb

Generated at Thu Feb 08 05:39:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.