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

is returning WaitQueueTimeoutError always correct when context is done?

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Unknown Unknown
    • 1.11.0
    • 1.9.1
    • Error Handling
    • None

    Description

      when checkOut returns error, i wish there is a error message fit for context canceled. 

      whether context is canceled or context deadline exceeded, `checkOut` fuction  always returns `WaitQueueTimeoutError`. when deadline exceeded, returning `WaitQueueTimeoutError` is correct. but when context is canceled, returning a error message with waiting and canceled message makes more clear than timed out error message. 

      Attachments

        Activity

          People

            qingyang.hu@mongodb.com Qingyang Hu
            jwalag87@gmail.com Hyeonho Kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: