You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by "xyuanlu (via GitHub)" <gi...@apache.org> on 2023/05/01 17:06:46 UTC
[GitHub] [helix] xyuanlu commented on a diff in pull request #2465: Add exception for register ZK one time watcher when _usePersistWatcher flag is on
xyuanlu commented on code in PR #2465:
URL: https://github.com/apache/helix/pull/2465#discussion_r1181725259
##########
zookeeper-api/src/main/java/org/apache/helix/zookeeper/zkclient/ZkClient.java:
##########
@@ -1360,6 +1360,13 @@ public List<String> getChildren(String path) {
}
protected List<String> getChildren(final String path, final boolean watch) {
+ // Throws exception when try to subscribe watch when using _usePersistWatcher. When ZkClient
+ // is subscribed as persist watcher, resubscribing the same object as onw time watcher will
+ // over write the persist watcher causing missing following event.
+ if (_usePersistWatcher && watch) {
Review Comment:
TFTR! This is not a public API, it should not change any API contract.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org