Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2339

Design new error API for Timeout option

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.11.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed

      Users of CSOT will possibly encounter three errors: context.DeadlineExceeded from client-side timeouts of contexts created to honor the new Timeout option, driver.ErrDeadlineWouldBeExceeded for operations that will probably not complete a round-trip in time given the deadline of their context, and server-side errors from maxTimeMS. All three of these errors represent a similar underlying situation: Timeout is too low for the given operation. We need to decide how to hand these errors back to users.

      Also sync CSOT errors spec tests.

            Assignee:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Reporter:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: