New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOLR-16150 Provide correct bound zookeeper interface #802
Conversation
Instead of always giving localhost, we can return the interface that ZK actually listens on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -70,7 +70,7 @@ public String getClientString() { | |||
|
|||
// if the string wasn't passed as zkHost, then use the standalone server we started | |||
if (zkRun == null) return null; | |||
return "localhost:" + zkProps.getClientPortAddress().getPort(); | |||
return zkProps.getClientPortAddress().getHostString() + ":" + zkProps.getClientPortAddress().getPort(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I was trying to see if we need to switch to using zkProps.getSecureClientPortAddress optionally but couldn't find anything in the ZK javadocs. Also, based on my ZK TLS testing - didn't seem like that was needed.
This is great, I've seen this noise output and always find it "alarming" to see! |
This needs to be tested with docker containers before merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this was good to go and then stalled. Would be good to get this in :) looks like it only needs updating to main.
Instead of always giving localhost, we can return the interface that ZK actually listens on. Co-authored-by: Kevin Risden <krisden@apache.org>
Instead of always giving localhost, we can return the interface that ZK
actually listens on.
https://issues.apache.org/jira/browse/SOLR-16150