Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5687

Add CSOT support to sessions and transactions

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • csot-1.0
    • Affects Version/s: None
    • Component/s: None
    • 5
    • 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

      As a... driver engineer
      I want... sessions and transactions to support CSOT
      So that... the driver can have full CSOT support

      User Impact

      • N/A; new feature

      Dependencies

      • Required to release CSOT

      Unknowns

      • questions that need to be answered to determine implementation

      Acceptance Criteria

      Implementation Requirements

      • Add defaultTimeoutMS option to ClientSession and support timeoutMS for:
        • commitTransaction
        • abortTransaction
        • withTransaction
        • endSession
      • Ensure that if defaultTimeoutMS option is not specified, it inherits from parent MongoClient
      • Ensure that if timeoutMS is set when calling session.withTransaction that the timeoutMS value is applied to the entire withTransaction call
      • Ensure that when an explicit session with a timeoutMS value is used, a MongoAPIError is thrown if timeoutMS is also set at the operation level for operations that are part of a withTransaction callback
      • Ensure that timeoutMS is refreshed for the abortTransaction operation if the withTransaction callback errors and the transaction must be aborted

      Testing Requirements

      Documentation Requirements

      • This ticket does not have documentation requirements. See NODE-5688

      Follow Up Requirements

      • N/A

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: