-
Notifications
You must be signed in to change notification settings - Fork 116
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
fix the solr zk invocation #756
base: main
Are you sure you want to change the base?
Conversation
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.
This LGTM.
Hi @elangelo - what Solr version are you running? And are there any particular steps needed to reproduce the issue? I tried playing with this a bit this morning but haven't been able to reproduce on the versions I tried (9.7.0 and the unreleased 10.0):
|
I was doing this with solr 9.8.0 and solr-operator 0.8 |
just a bit of poking, and i don't think we look up from env var the ZK_HOST: https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/cli/CLIUtils.java#L223 eventually, we do have a look up for a Solr URL, but it doesn't use ZK_HOST, instead it uses these processes: https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/cli/CLIUtils.java#L71 |
personally, when it comes to invoking the SolrCLI, I like the verbosity of passing in all the args, so there is less magic. I actually don't love that we look up from env vars the solr url! |
@epugh - I believe what you're saying about ZK_HOST not being obeyed by
I like the env-vars, personally. But if you think that's worth pursuing, a dev@ thread might be the best way to weigh support/consensus there?
You're sure your deployment used operator-0.8 @elangelo ? The 0.8 operator used a completely different CLI/client for talking to ZK than this code on 'main' currently uses. (The operator used Will try to do a bit more poking around here this week, but appreciate any clarification in the meantime. |
@gerlowskija you are right of course... I was using solr-operator 0.9. I initially was doing this with 0.8 but that wasn't working as well. I then upgraded to 0.9 and there found it broken too. |
Yeah, this will need a bug fix release probably |
We also desperately need integration tests for the basic auth stuff. Our biggest testing gap |
Apparently if you invoke
solr zk
you need to pass in the--zk-host
argument as it will not read the environment variableZK_HOST
.