[RCBC-93] Ruby Client does not handle the timeout appropriately Created: 24/Oct/12  Updated: 13/Jan/14  Resolved: 13/Jan/14

Status: Resolved
Project: Couchbase Ruby client library
Component/s: None
Affects Version/s: None
Fix Version/s: None
Security Level: Public

Type: Bug Priority: Major
Reporter: balak Assignee: Sergey Avseyev
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Ruby client 1.1.1

Attachments: File couch.rb    

 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.



 Comments   
Comment by Sergey Avseyev [ 13/Jan/14 ]
The issue was likely fixed in libcouchbase and currently is not reproducing
Generated at Sat Sep 20 01:46:21 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.