narendly opened a new issue #1121:
URL: https://github.com/apache/helix/issues/1121
protected RealmAwareZkClient createZkClient(RealmAwareZkClient.RealmMode
realmMode,
RealmAwareZkClient.RealmAwareZkConnectionConfig connectionConfig,
RealmAwareZkClient.RealmAwareZkClientConfig clientConfig, String
zkAddress) {
switch (realmMode) {
case MULTI_REALM:
try {
return new FederatedZkClient(connectionConfig,
clientConfig.setZkSerializer(new ZNRecordSerializer()));
} catch (IOException | InvalidRoutingDataException |
IllegalStateException e) {
throw new HelixException("Failed to create FederatedZkClient!", e);
}
case SINGLE_REALM:
// Create a HelixZkClient: Use a SharedZkClient because ClusterSetup
does not need to do
// ephemeral operations
return SharedZkClientFactory.getInstance()
.buildZkClient(new HelixZkClient.ZkConnectionConfig(zkAddress),
clientConfig.createHelixZkClientConfig().setZkSerializer(new
ZNRecordSerializer()));
default:
throw new HelixException("Invalid RealmMode given: " + realmMode);
}
}
the RealmMode set in RealmAwareZkConnectionConfig is not being honored.
----------------------------------------------------------------
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]