[RCBC-24] Ruby script hangs on large first value Created: 03/Feb/12  Updated: 13/Nov/12  Resolved: 08/Jun/12

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

Type: Bug Priority: Major
Reporter: James Mauss Assignee: Sergey Avseyev
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: ruby 1.8.7 (2010-01-10 patchlevel 249)
Mac or ubuntu11, couchbase (1.0.0)


 Description   
In the following script, writing the value "data" hangs the script unless a smaller value is written first.

In the wireshark trace, I do not see any outbound memcache traffic when the script fails.


require 'rubygems'
require 'couchbase'

begin
  
  #Create a large array and a small value
  value = 2
  data = Array.new

  for i in 0..200000
    data.push(Time.at(rand * Time.now.to_i))
  end

  cb = Couchbase.new("http://10.17.2.172:8091/pools/default")
  cb.quiet = false

  puts value;
  puts data.length();

  #uncomment out line below to have it work.
  #cb.set("smallValue1", value)

  cb.set("bigValue1",data)
  
  cb.set("smallValue2", value)

end

 Comments   
Comment by Matt Ingenthron [ 17/Feb/12 ]
Has this been reproduced?
Comment by Sergey Avseyev [ 01/Mar/12 ]
Just verified this using two versions of ruby

ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

ruby 1.9.2p312 (2011-08-11 revision 32926) [x86_64-linux]

and two versions of couchbase gem: 1.0.0 and master

All is OK. James, could you tell what server version are you using?
Generated at Sat Oct 25 12:01:37 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.