Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5687 Add CSOT support to sessions and transactions
  3. NODE-6335

refactor abort/commit/withTransaction to make error handling simpler

    • Type: Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.9.0
    • Affects Version/s: None
    • Component/s: None
    • 0
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Use Case

      Currently, the transaction APIs have recursion and shared logic that makes changing the error handling difficult. We want to change to using a loop and unconsolidated error handling that diverges for either API.

      User Experience

      • None

      Dependencies

      • None

      Risks/Unknowns

      • None

      Acceptance Criteria

      Implementation Requirements

      • Remove recursion
      • Diverge abort and commit logic to prepare for CSOT error conditions that are different for either operation

      Testing Requirements

      • Existing tests

      Documentation Requirements

      • None

      Follow Up Requirements

      • None

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Warren James
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: