Convert CommitType enum in TransactionRouter to generic State enum

XMLWordPrintableJSON

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

      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:
            Alexander Taskov (Inactive)
            Reporter:
            Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: