Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-5893

Installed build-1416 on 3 node cluster, vbucket stats is showing unusual values for # of buckets, breaking client libraries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.0-beta
    • 2.0
    • couchbase-bucket
    • Security Level: Public
    • None
    • Linux ip-10-80-63-134 2.6.35.14-97.44.amzn1.x86_64 #1 SMP Mon Oct 24 16:03:08 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

    Description

      Looking at 3 of the buckets on this server, I see the following values for total # of vbuckets:

      default - 1.36K
      events - 682
      profiles - 0

      Attached are screenshots of these numbers, as well as server diagnostics.

      This ultimately causes a problem in the ruby client library:

      irb(main):021:0* Article.ensure_design_document!
      Couchbase::Error::Protocol: Number of buckets must be a power of two > 0 and <= MAX_BUCKETS (error=0x15)
      from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:51:in `initialize'
      from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:51:in `new'
      from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:51:in `connect'
      from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.0/lib/new_relic/agent/method_tracer.rb:491:in `block in connect_with_trace_Couchbase_connect'
      from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.0/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
      from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.0/lib/new_relic/agent/method_tracer.rb:486:in `connect_with_trace_Couchbase_connect'
      from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:82:in `bucket'
      from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.0/lib/new_relic/agent/method_tracer.rb:491:in `block in bucket_with_trace_Couchbase_bucket'
      from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.0/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
      from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.0/lib/new_relic/agent/method_tracer.rb:486:in `bucket_with_trace_Couchbase_bucket'
      from /app/vendor/bundle/ruby/1.9.1/bundler/gems/ruby-couchbase-model-b52f33e7b93d/lib/couchbase/model.rb:532:in `bucket'
      from /app/vendor/bundle/ruby/1.9.1/bundler/gems/ruby-couchbase-model-b52f33e7b93d/lib/couchbase/model.rb:210:in `ensure_design_document!'
      from (irb):21
      from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/console.rb:47:in `start'
      from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/console.rb:8:in `start'
      from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:41:in `<top (required)>'
      from script/rails:6:in `require'
      from script/rails:6:in `<main>'

      irb(main):022:0> Couch.client.set("thing", {:one => "1", :two => "2", :three => "3"})
      Couchbase::Error::Protocol: Number of buckets must be a power of two > 0 and <= MAX_BUCKETS (error=0x15)
      from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:51:in `initialize'
      from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:51:in `new'
      from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:51:in `connect'
      from /app/app/models/couch.rb:20:in `client'
      from (irb):22
      from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/console.rb:47:in `start'
      from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/console.rb:8:in `start'
      from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:41:in `<top (required)>'
      from script/rails:6:in `require'
      from script/rails:6:in `<main>'
      irb(main):023:0>

      Attachments

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

        Activity

          People

            farshid Farshid Ghods (Inactive)
            mschoch Marty Schoch [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty