-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
Fully Compatible
-
CAR Team 2023-12-11, CAR Team 2023-12-25
The current commit function of the create collection is shared between the legacy coordinator and the new coordinator. With the new phases and logic (transactional commit), there is redundant logic that could be simplified only for the new coordinator.
The goal of this ticket is to separate the legacy commit from the new one, and simplify its logic taking advantage of recent changes and phases.
Some examples of the work that we can do on the new commit:
- Remove the fire and forget.
- Remove try and catch from the transactional commit.
- Try to force a refresh, if not, clear the filtering metadata without throwing.
- Investigate the need to throw on the catch clause.
- is depended on by
-
SERVER-83637 Ensure that create collection coordinator does not create a collection in non involved shards
- Closed
-
SERVER-80135 Allow ShardCollection to work correctly when an unsharded collection is not located on the DBPrimary
- Closed
- related to
-
SERVER-78918 Make `shardCollection` command shard authoritative
- Closed