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

Convert CommitType enum in TransactionRouter to generic State enum

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Sharding 2019-06-03

      TransactionRouter uses a CommitType enum to track if a commit has been started and which commit path was taken (e.g. twoPhase vs. singleShard). This enum could be extended to track when a transaction has initiated abort as well, which would simplify some of its logic, especially around retries of commit/abort and handling statements after receiving a commit/abort. This could also replace the TerminationCause enum used for logging slow transactions on mongos.

            Assignee:
            alex.taskov@mongodb.com Alexander Taskov (Inactive)
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: