You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by GitBox <gi...@apache.org> on 2020/02/11 06:21:04 UTC

[GitHub] [curator] cammckenzie commented on a change in pull request #345: [CURATOR-551] Fix Handle Holder new connection string

cammckenzie commented on a change in pull request #345: [CURATOR-551] Fix Handle Holder new connection string
URL: https://github.com/apache/curator/pull/345#discussion_r377460199
 
 

 ##########
 File path: curator-client/src/main/java/org/apache/curator/HandleHolder.java
 ##########
 @@ -70,7 +61,16 @@ String  getConnectionString()
     String getNewConnectionString()
     {
         String helperConnectionString = (helper != null) ? helper.getConnectionString() : null;
-        return ((helperConnectionString != null) && !ensembleProvider.getConnectionString().equals(helperConnectionString)) ? helperConnectionString : null;
+        String ensembleProviderConnectionString = ensembleProvider.getConnectionString();
 
 Review comment:
   The whole flow of how things interact is very confusing, but I don't think that this is an issue. `closeAndReset()` gets called from `ConnectionState.reset()` which gets called from the `ConnectionState.start()` method.  I'm not 100% sure there's not a race condition here, but from what I can see, it seems improbable.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services