I’m getting this error when trying to start your goliath example:
couchbase-ruby-client/examples/chat-goliath-grape# ruby app.rb -sv
[26428:INFO] 2014-03-04 15:59:43 :: Starting server on 0.0.0.0:9000 in development mode. Watch out for stones.
ruby: ed.cpp:927: virtual void ConnectionDescriptor::Write(): Assertion `!bWatchOnly' failed.
I tried both CouchbaseMock and Couchbase 2.2, same.
Any updates? Its becoming pretty critical issue, since moxi, which used for 3-rd party clients, crashing a lot under relatively high load. I minimized test-case, crashing every time for me:
EM.epoll # if we removing epoll all working as expected, but goliath require it
EM.synchrony do
Couchbase::Bucket.new(:engine => :eventmachine, bucket: “default”, :node_list => [“localhost:8091”])
The patch has been merged to master branch, so feel free to update your Gemfile pointing to github mirror. Next release will be in the beginning of the April
I have to disable EM engine for a while, and added “TCPSocket = EventMachine::Synchrony::TCPSocket”, problem gone for some time. But i have feeling that overriding TCPSocket wont affect couch driver, since it use own C library for sending requests.