[SERVER-80887] Create a utility for transactions on the sharding catalog Created: 08/Sep/23  Updated: 26/Oct/23

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

Type: Task Priority: Minor - P4
Reporter: Enrico Golfieri Assignee: Backlog - Catalog and Routing
Resolution: Unresolved Votes: 0
Labels: oldshardingemea, shardingemea-qw
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

Recently in sharding we started using more and more the internal transactions, especially for committing on the sharding catalog in ddl coordinators. This ticket propose to introduce a utility

 sharding_catalog_txn_utils::

 (or any other name) to simplify the readability of the internal transactions code as done for the rename collection coordinator.

The library for now would expose utility methods such as https://github.com/10gen/mongo/blob/63199295a3152a8dbde645ca95f69d92aa3f30f6/src/mongo/db/s/rename_collection_coordinator.cpp#L229C1-L413C2 

and the runTransactionOnShardingCatalog

Which can be already re-used by the createCollectionCoordinator


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