tisonkun commented on code in PR #460:
URL: https://github.com/apache/curator/pull/460#discussion_r1201674219
##########
curator-framework/src/main/java/org/apache/curator/framework/imps/EnsembleTracker.java:
##########
@@ -209,10 +209,17 @@ private void processConfigData(byte[] data) throws
Exception
if (!properties.isEmpty())
{
QuorumMaj newConfig = new QuorumMaj(properties);
- String connectionString = configToConnectionString(newConfig);
- if (connectionString.trim().length() > 0)
+ String connectionString =
configToConnectionString(newConfig).trim();
+ if (!connectionString.isEmpty())
{
currentConfig.set(newConfig);
+ String oldConnectionString =
ensembleProvider.getConnectionString();
+ int i = oldConnectionString.indexOf('/');
+ if (i >= 0)
Review Comment:
I get it.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]