Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-80887

Create a utility for transactions on the sharding catalog

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • 2

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: