Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2871

Clarification: CSOT withTransaction test blocks should throw an error

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Component/s: CSOT
    • None

      Summary

      Expectation for {{ "expectError": {"isTimeoutError": true } }} errors from withTransaction blocks is to propogate any errors.

      Motivation

      The tests state:

      1. Because the second insert expects an error and gets an error, it technically succeeds, so withTransaction
      2. will try to run commitTransaction. This will fail client-side, though, because the timeout has already
      3. expired, so no command is sent.

      Errors from within withTransaction blocks should be propogated according to spec.

      However, them "technically" succeeding really depends on the unified test runner implementations - so they may or may not issue an abortTransaction operation.

      Is this ticket only for tests?

      Yes

      Acceptance Criteria

      PR - review and acceptance by spec owner

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: