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

Ruby script hangs on large first value

    XMLWordPrintable

Details

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

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            james.mauss James Mauss (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty