You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/04/12 12:49:33 UTC
[GitHub] ivankelly opened a new pull request #1559: Allow proxy to come up
before any brokers have
ivankelly opened a new pull request #1559: Allow proxy to come up before any brokers have
URL: https://github.com/apache/incubator-pulsar/pull/1559
If no brokers have come up, then /loadbalance/brokers will not have
been created. Previously, if a proxy came up at this point, it would
get a NoNodeException when it tried to watch the children of this
path, and the proxy itself would hang.
This change modifies the ZooKeeper cache, so that if you try to
getChildren on a node that doesn't exist, a watcher on that path's
existance will be created before the NoNodeException is thrown.
Callers can then call getChildren with a watcher, and expect the
watcher to trigger when the the node is created and has another node
created below it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services