Randgalt opened a new pull request #345: [CURATOR-551] Fix Handle Holder new 
connection string
URL: https://github.com/apache/curator/pull/345
 
 
   Commit 26364c6186fc7c09a9462557b1ca791e9aa70006 (Sat Sep 26 13:13:02 2015) 
changed HandleHolder.getNewConnectionString() was changed to return the new 
connection string instead of just a boolean. I believe the value returned 
should have been ensembleProvider.getConnectionString() not 
helper.getConnectionString(). TBH I no longer remember the genesis of this 
change but I can't make the current implementation make sense.
   
   Additionally, a change was made to optionally call 
zooKeeper.updateServerList(). When this path is taken the handle holder's 
connection needs to be updated as well or we'll get an infinite loop of 
changes. The path that runs when ensembleProvider.updateServerListEnabled() is 
false ends up setting handle holder's connection to 
ensembleProvider.getConnectionString().
   
   I'm loathe to make such low level changes in code that's existed for a long 
time. But, my investigation shows that this is how it should be. Hopefully, 
users can do testing.

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


With regards,
Apache Git Services

Reply via email to