TisonKun commented on a change in pull request #338: [CURATOR-549] Prep for
Persistent Watchers by moving to ZK 3.6.0
URL: https://github.com/apache/curator/pull/338#discussion_r392640705
##########
File path:
curator-framework/src/main/java/org/apache/curator/framework/imps/ReconfigBuilderImpl.java
##########
@@ -268,7 +269,7 @@ public void processResult(int rc, String path, Object ctx,
byte[] bytes, Stat st
client.processBackgroundOperation(data, event);
}
};
- client.getZooKeeper().reconfig(joining, leaving, newMembers,
fromConfig, callback, backgrounding.getContext());
+ ((ZooKeeperAdmin)client.getZooKeeper()).reconfigure(joining,
leaving, newMembers, fromConfig, callback, backgrounding.getContext());
Review comment:
Shall we change the return type of `getZooKeeper` to `ZooKeeperAdmin`?
I don't see an instantiate code path of `NonAdminZookeeperFactory` and from
3.5.3 there is always `ZooKeeperAdmin`. From another perspective, what if
`getZooKeeper` didn't return `ZooKeeperAdmin` and we reach to this line? It
seems the program exits exceptionally.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services