Skip to content

Commit

Permalink
Handle path going away properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jolynch committed Sep 4, 2015
1 parent 844e1a9 commit dd98363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/synapse/service_watcher/zookeeper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def watch
# Verify that we actually set up the watcher.
unless @zk.exists?(@discovery['path'], :watch => true)
log.error "synapse: zookeeper watcher path #{@discovery['path']} does not exist!"
raise RuntimeError.new('could not set a ZK watch on a node that should exist')
zk_cleanup
end
log.debug "synapse: set watch at #{@discovery['path']}"
end
Expand Down

0 comments on commit dd98363

Please sign in to comment.