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

Investigate short-term improvements to TransactionCoordinator to reduce the number of threads it spawns

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Replication
    • Repl 2024-06-24

      One idea would be to defer the construction of the TransactionCoordinator object until the coordinateCommitTransaction command is received. This way for a single-transaction or other transaction commit types which don't require two-phase commit the system wouldn't need to run TransactionCoordinator::_done() as a task on the fixed executor to simply destroy the TransactionCoordinator object and decrement counters.

            Assignee:
            Unassigned Unassigned
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: