[SERVER-85708] Check only if the collection is registered on the config server during retry of the create collection commit phase Created: 25/Jan/24  Updated: 25/Jan/24

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Pol Pinol Assignee: Backlog - Catalog and Routing
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Catalog and Routing
Participants:
Story Points: 1

 Description   

If there is an error during the commit phase of the create collection, we are going to check if the collection is already committed to the config server to advance to the following phase, i.e. being idempotent.

Today, to check if the collection is already committed we use checkIfCollectionAlreadyTrackedWithOptions. It is correct, but also unnecessary.

With the create collection coordinator, we have the guarantees to not register another collection with different options working on the same namespace. With that, it is only necessary to check if the collection exists in the sharding catalog to advance to the following phase of the coordinator.

The goal of this ticket is to improve that part of the code, by changing the call checkIfCollectionAlreadyTrackedWithOptions to only check if the collection already exists in the sharding catalog of the config server.


Generated at Thu Feb 08 06:58:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.