Uploaded image for project: 'Couchbase Ruby client library'
  1. Couchbase Ruby client library
  2. RCBC-93

Ruby Client does not handle the timeout appropriately


    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public
    • Labels:
    • Environment:
      Ruby client 1.1.1


      This is the problem that the customer is encountering
      (Ruby code coming up):

      Timeout::timeout(2) do

      But we are seeing Couchbase::Error::Timeout exceptions being raised. I know the default timeout for the Couchbase client gem is greater than 2 seconds, so I'm wondering: what could cause Couchbase to return a timeout (0x16 error code) before it actually has time to timeout?

      The complete ruby source code is attached , Please take a look at it.

      support's analysis:
      The client is not timing out fast enough it should time out in 2.5 sec or something but instead it's waiting a long time.

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.


        balak balak created issue -
        balak balak made changes -
        Field Original Value New Value
        Assignee Hari Subramaniam [ hari ] Sergey Avseyev [ avsej ]
        balak balak made changes -
        Environment Ruby client 1.1.1
        avsej Sergey Avseyev made changes -
        Project Couchbase Support/Engineering Tasks [ 10061 ] Couchbase Ruby client library [ 10048 ]
        Key CBSE-251 RCBC-93
        Security Public [ 10011 ]
        avsej Sergey Avseyev made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Cannot Reproduce [ 5 ]
        brett19 Brett Lawson made changes -
        Workflow jira [ 21406 ] Couchbase SDK Workflow [ 44875 ]


          • Assignee:
            avsej Sergey Avseyev
            balak balak
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created:

              Gerrit Reviews

              There are no open Gerrit changes