Trying to observe when my data is replicated and/or persisted, I get the following:
2.2.1 :147 > cb = Couchbase.connect(:bucket => ‘sshhh’, :node_list => [‘mynode’], :password => ‘sshhh’)
=> #<Couchbase::Bucket:0x007fa382a4c310 “http://10.10.10.10:8091/pools/default/buckets/sshhh/” transcoder=Couchbase::Transcoder::Document, default_flags=0x0, quiet=false, connected=true, timeout=2500000, bootstrap_transport=:http>
2.2.1 :148 > cb.set(‘bryan’, 32, observe: {replicated: 1})
Couchbase::Error::Timeout: the observe request was timed out
from /Users/bryan/.rvm/gems/ruby-2.2.1/gems/couchbase-1.3.13/lib/couchbase/bucket.rb:426:inblock in do_observe_and_wait' from /Users/bryan/.rvm/gems/ruby-2.2.1/gems/couchbase-1.3.13/lib/couchbase/bucket.rb:452:in
call’
from /Users/bryan/.rvm/gems/ruby-2.2.1/gems/couchbase-1.3.13/lib/couchbase/bucket.rb:452:indo_observe_and_wait' from /Users/bryan/.rvm/gems/ruby-2.2.1/gems/couchbase-1.3.13/lib/couchbase/bucket.rb:334:in
observe_and_wait’
from (irb):148:inset' from (irb):148 from /Users/bryan/.rvm/rubies/ruby-2.2.1/bin/irb:11:in
’
If I omit the “observe: { replicated: 1}” parameter when calling Bucket.set(), the key is successfully set.
I’ve confirmed there are no networking/firewall issues between my client and all nodes in the cluster.
Anybody else have troubles with this?
Bryan