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

Ruby Client does not handle the timeout appropriately

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • None
    • None
    • Security Level: Public
    • None
    • 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.

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            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

                PagerDuty