You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On OSX 10.8.2, with the latest xcode, and the latest ruby-1.9.3-p327, a simple connect with zkruby 3.4.3 fails:
looking for zookeeper path /zkgctest
E, [2012-12-04 12:52:13 #83484] ERROR -- ZooKeeper::RubyIO::Binding: (ZooKeeper::RubyIO::Binding) Exception in session thread: uninitialized constant ZooKeeper::RubyIO::Connection::SOL_TCP:
/usr/local/rvm/gems/ruby-1.9.3-p327@zkgc/gems/zkruby-3.4.3/lib/zkruby/rubyio.rb:52:in `initialize'
/usr/local/rvm/gems/ruby-1.9.3-p327@zkgc/gems/zkruby-3.4.3/lib/zkruby/rubyio.rb:210:in `new'
/usr/local/rvm/gems/ruby-1.9.3-p327@zkgc/gems/zkruby-3.4.3/lib/zkruby/rubyio.rb:210:in `connect'
/usr/local/rvm/gems/ruby-1.9.3-p327@zkgc/gems/zkruby-3.4.3/lib/zkruby/session.rb:212:in `reconnect'
/usr/local/rvm/gems/ruby-1.9.3-p327@zkgc/gems/zkruby-3.4.3/lib/zkruby/session.rb:132:in `start'
/usr/local/rvm/gems/ruby-1.9.3-p327@zkgc/gems/zkruby-3.4.3/lib/zkruby/rubyio.rb:192:in `block (2 levels) in start'
/usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/local/rvm/gems/ruby-1.9.3-p327@zkgc/gems/zkruby-3.4.3/lib/zkruby/rubyio.rb:192:in `block in start'
/usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/thread.rb:71:in `sleep': deadlock detected (fatal)
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/thread.rb:71:in `wait'
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/monitor.rb:110:in `wait'
from /usr/local/rvm/gems/ruby-1.9.3-p327@zkgc/gems/zkruby-3.4.3/lib/zkruby/rubyio.rb:299:in `block in wait_value'
from /usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
from /usr/local/rvm/gems/ruby-1.9.3-p327@zkgc/gems/zkruby-3.4.3/lib/zkruby/rubyio.rb:298:in `wait_value'
from /usr/local/rvm/gems/ruby-1.9.3-p327@zkgc/gems/zkruby-3.4.3/lib/zkruby/protocol.rb:164:in `value'
from /usr/local/rvm/gems/ruby-1.9.3-p327@zkgc/gems/zkruby-3.4.3/lib/zkruby/client.rb:516:in `synchronous_call'
from /usr/local/rvm/gems/ruby-1.9.3-p327@zkgc/gems/zkruby-3.4.3/lib/zkruby/client.rb:352:in `exists'
from ./test.rb:14:in `create_zookeeper_path'
from ./test.rb:41:in `<main>'
Google suggests we should use IPPROTO_TCP only if SOL_TCP is not defined but with no explanation as to why. I don't have a MacOSX or BSD type machine to test this on. Are you able to run the tests?
On OSX 10.8.2, with the latest xcode, and the latest ruby-1.9.3-p327, a simple connect with zkruby 3.4.3 fails:
which complains about https://github.com/lwoggardner/zkruby/blob/master/lib/zkruby/rubyio.rb#L52 which uses SOL_TCP.
Looking at http://www.ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/Socket/AncillaryData.html, I see no SOL_TCP, but I do see Socket::IPPROTO_TCP and others. So I tried this:
and that appears to work.
The text was updated successfully, but these errors were encountered: