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

Ruby Client does not handle the timeout appropriately

    Details

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

      Description

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

      Timeout::timeout(2) do
      couch_client.get(key)
      end

      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.

        Activity

        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 ]
        Hide
        avsej Sergey Avseyev added a comment -

        The issue was likely fixed in libcouchbase and currently is not reproducing

        Show
        avsej Sergey Avseyev added a comment - The issue was likely fixed in libcouchbase and currently is not reproducing
        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 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes