celluloid / floss

UNMAINTAINED: See celluloid/celluloid#779 - A Ruby implementation of the Raft consensus algorithm.
MIT License
77 stars 14 forks source link

0mq reactor fails sporadically on startup #20

Open josephglanville opened 11 years ago

josephglanville commented 11 years ago

There seems to be some sort of race condition that makes starting the example distributed hash application fail some of the time.

E, [2013-09-29T19:03:45.233573 #11846] ERROR -- : reactor crashed
Celluloid::ZMQ::DeadWakerError: error sending 0MQ message: Context was terminated
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-zmq-0.15.0/lib/celluloid/zmq/waker.rb:27:in `block in signal'
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-zmq-0.15.0/lib/celluloid/zmq/waker.rb:25:in `synchronize'
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-zmq-0.15.0/lib/celluloid/zmq/waker.rb:25:in `signal'
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-0.15.1/lib/celluloid/evented_mailbox.rb:29:in `<<'
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-0.15.1/lib/celluloid/proxies/sync_proxy.rb:32:in `method_missing'
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-0.15.1/lib/celluloid/proxies/actor_proxy.rb:20:in `_send_'
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-0.15.1/lib/celluloid.rb:185:in `new'
    /Users/jpg/src/floss/lib/floss/node.rb:74:in `run'
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-0.15.1/lib/celluloid/calls.rb:25:in `public_send'
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-0.15.1/lib/celluloid/calls.rb:25:in `dispatch'
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-0.15.1/lib/celluloid/calls.rb:122:in `dispatch'
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-0.15.1/lib/celluloid/actor.rb:322:in `block in handle_message'
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-0.15.1/lib/celluloid/actor.rb:416:in `block in task'
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-0.15.1/lib/celluloid/tasks.rb:55:in `block in initialize'
    /Users/jpg/.rvm/gems/ruby-2.0.0-p247/gems/celluloid-0.15.1/lib/celluloid/tasks/task_fiber.rb:13:in `block in create'
E, [2013-09-29T19:03:45.234468 #11846] ERROR -- : reactor crashed