xyuanlu commented on a change in pull request #1747:
URL: https://github.com/apache/helix/pull/1747#discussion_r644311645
##########
File path:
helix-rest/src/main/java/org/apache/helix/rest/server/ServerContext.java
##########
@@ -278,6 +281,18 @@ public HelixDataAccessor getDataAccessor(String
clusterName) {
return _byteArrayZkBaseDataAccessor;
}
+ public ZkBucketDataAccessor getZkBucketDataAccessor() {
+ if (_zkBucketDataAccessor == null) {
+ synchronized (this) {
+ if (_zkBucketDataAccessor == null) {
+ _zkBucketDataAccessor = new ZkBucketDataAccessor(_zkAddr);
Review comment:
ZkBucketDataAccessor will handle the multi-ZK configuration. This is a
workaround since we can not create a zkClient from a zkClient.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]