You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "janhoy (via GitHub)" <gi...@apache.org> on 2025/03/05 01:23:18 UTC
[PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
janhoy opened a new pull request, #3240:
URL: https://github.com/apache/solr/pull/3240
https://issues.apache.org/jira/browse/SOLR-17690
Fix for https://github.com/apache/solr-operator/issues/762
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "acdha (via GitHub)" <gi...@apache.org>.
acdha commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-3250991010
> Adding ZK_HOST=foo to solr.in.sh has the same effect as adding export ZK_HOST=foo to your shell. It comes very handy when e.g. running Solr as a container and you can configure a lot with just env instead of having to patch the CMD part. The CLI tools like zk cp behaves the same as when starting solr itself.
This is what I expected but it wasn't working with Solr 9.9, which is very confusing since the [documentation implies that works for all `solr` commands](https://solr.apache.org/guide/solr/latest/deployment-guide/zookeeper-ensemble.html#updating-solr-include-files).
```bash
$ podman run -it --rm --network bard -e SOLR_JAVA_MEM="-Xms2g" -e ZK_HOST=zk_1:2181 --entrypoint /bin/bash --user root solr:9
root@a973aed5e1d0:/opt/solr-9.9.0# echo $ZK_HOST
zk_1:2181
root@a973aed5e1d0:/opt/solr-9.9.0# solr zk ls /
Neither --zk-host or --solr-url parameters provided so assuming solr url is http://localhost:8983.
ERROR: Server refused connection at: http://localhost:8983/solr/admin/info/system
root@a973aed5e1d0:/opt/solr-9.9.0# solr zk ls -z $ZK_HOST /
WARN - 2025-09-03 22:15:00.082; org.apache.solr.common.cloud.SolrZkClient; Using default ZkCredentialsInjector. ZkCredentialsInjector is not secure, it creates an empty list of credentials which leads to 'OPEN_ACL_UNSAFE' ACLs to Zookeeper nodes
WARN - 2025-09-03 22:15:00.187; org.apache.solr.common.cloud.SolrZkClient; Using default ZkACLProvider. DefaultZkACLProvider is not secure, it creates 'OPEN_ACL_UNSAFE' ACLs to Zookeeper nodes
configs
overseer
aliases.json
live_nodes
collections
overseer_elect
security.json
node_roles
clusterprops.json
root@a973aed5e1d0:/opt/solr-9.9.0# echo "ZK_HOST=$ZK_HOST" >> $SOLR_INCLUDE
root@a973aed5e1d0:/opt/solr-9.9.0# solr zk ls /
Neither --zk-host or --solr-url parameters provided so assuming solr url is http://localhost:8983.
ERROR: Server refused connection at: http://localhost:8983/solr/admin/info/system
```
I can't speak to the other discussions but it would have removed some friction for me if setting ZK_HOST in our container definitions meant that all Solr-related tools would use 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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-3253091490
I think I was the voice against magic variables to the bin/Solr commands. If ZK_HOST is supported than should all the other params be too? However, I think I am the minority voice on this. If we move forward on this, could we also just make sure Ref Guide covers this capability clearly?
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "HoustonPutman (via GitHub)" <gi...@apache.org>.
HoustonPutman commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-2701378283
> Hmm, there's no `9.8.1` section in CHANGES.txt on `main`, and not on `branch_9x`, only on `branch_9_8`. Is the correct way for this bugfix to skip CHANGES here and on 9x, and then add one when cherry-picking to the release branch? Then the 9.8.1 RM will reconsile changes to other branches during release?
>
> Here is suggested changes text:
>
> ```
> * SOLR-17690: Make solr CLI tools read ZK_HOST environment as documented. There was a regression
> in 9.8.0 where this did not work, causing issues also for solr-operator v0.9 (janhoy)
> ```
So add it to the changeling for 9.9, and then in branch_9_8, add it to 9.8.1. As a part of the release, I remove the duplicates from 9.9 on branch_9x and main.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1980520237
##########
solr/core/src/java/org/apache/solr/cli/CLIUtils.java:
##########
@@ -226,6 +226,11 @@ public static String getZkHost(CommandLine cli) throws Exception {
return zkHost;
}
+// zkHost = EnvUtils.getProperty("zkHost");
+// if (zkHost != null && !zkHost.isBlank()) {
+// return zkHost;
+// }
Review Comment:
This is the fix, commented out to prove failing test. The `CLIUtils#getZkHost(cli)` util is used by many tools. Not sure if all tools document the support for `ZK_HOST`, but the `zk cp` tool does. Reading property `zkHost` works since `ZK_HOST` env is explicitly put into this sysProp by EnvUtils.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1982951185
##########
solr/core/src/java/org/apache/solr/cli/CLIUtils.java:
##########
@@ -216,12 +217,32 @@ public static String normalizeSolrUrl(CommandLine cli) throws Exception {
}
/**
- * Get the ZooKeeper connection string from either the zk-host command-line option or by looking
- * it up from a running Solr instance based on the solr-url option.
+ * Get the value of the specified CLI option with fallback to system property and default value.
+ *
+ * @param cli the command line
+ * @param option the commons cli {@link Option}
+ * @param sysprop the system property to fall back to
+ * @param defaultValue the default value. Use null if no default value is desired
+ * @return the value of the option or system property or the default value
+ */
+ public static String getCliOptionOrPropValue(
+ CommandLine cli, Option option, String sysprop, String defaultValue) {
+ String value = cli.getOptionValue(option);
+ if (value == null) {
+ value = EnvUtils.getProperty(sysprop, defaultValue);
+ }
+ return value;
+ }
Review Comment:
@epugh In my last commit I generalized the util method to this `getCliOptionOrPropValue` which can be used by any Tool that wishes to read a CLI OPTION with a fallback to env/prop and also a fallback to defaultvalue. Currently I only use it for zkhost. IMO the calling code also becomes more clear, as you will see in the same line both the OPT name and the prop name. Perhaps this could be used also for SOLR_URL?
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1981064826
##########
solr/core/src/java/org/apache/solr/cli/RunExampleTool.java:
##########
@@ -305,7 +305,7 @@ protected void runExample(CommandLine cli, String exampleName) throws Exception
"techproducts".equals(exampleName) ? "sample_techproducts_configs" : "_default";
boolean isCloudMode = !cli.hasOption(USER_MANAGED_OPTION);
- String zkHost = cli.getOptionValue(CommonCLIOptions.ZK_HOST_OPTION);
+ String zkHost = CLIUtils.getZkHostFromCliOrEnv(cli);
Review Comment:
@epugh Not sure if runExample needs to read ENV. I mean, it is more of a canned experience, where we intentionally spin up an embedded ZK, right? But since it here reads the `--zk-host` option it must have been some thought that you should be able to run an example on an external Zookeeper, and if that even makes sense, then it follows that you should have the choice of also usin ZK_HOST env.
```
-z/--zk-host <zkHost> Zookeeper connection string; only used when running in SolrCloud mode using -c
If neither ZK_HOST is defined in solr.in.sh nor the -z parameter is specified,
an embedded ZooKeeper instance will be launched.
Set the ZK_CREATE_CHROOT environment variable to true if your ZK host has a chroot path, and you want to create it automatically.
```
There is of course a risk that some user has defined a `ZK_HOST´ in her local terminal, and that being picked up by magic when running an example. Thoughts?
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1981764531
##########
solr/core/src/test/org/apache/solr/cli/ZkSubcommandsTest.java:
##########
@@ -507,10 +507,8 @@ public void testGetFile() throws Exception {
Path file =
tmpDir.resolve("solrtest-getfile-" + this.getClass().getName() + "-" + System.nanoTime());
- String[] args =
- new String[] {
- "cp", "-z", zkServer.getZkAddress(), "zk:" + getNode, file.toAbsolutePath().toString()
- };
+ // Not setting --zk-host, will fall back to sysProp 'zkHost'
+ String[] args = new String[] {"cp", "zk:" + getNode, file.toAbsolutePath().toString()};
Review Comment:
:-(. See me rant email ;-)
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r2462226848
##########
solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc:
##########
@@ -1144,6 +1141,17 @@ Usage: solr zk upconfig|downconfig -d <confdir> -n <configName> [-z zkHost] [-s
NOTE: Solr should have been started at least once before issuing these commands to initialize ZooKeeper with the znodes Solr expects.
Once ZooKeeper is initialized, Solr doesn't need to be running on any node to use these commands.
+=== ZooKeeper Connection String
+
+All `bin/solr zk` sub-commands require a ZooKeeper connection string to function. You can provide this in three ways, in order of precedence:
+
+1. Explicitly pass the `-z` or `--zk-host` option: `bin/solr zk <command> -z <zkHost>`
+2. Set the `ZK_HOST` environment variable: `export ZK_HOST=<zkHost>`
+3. Define `ZK_HOST` in `solr.in.sh` (or `solr.in.cmd` on Windows)
+4. If none are provided, the tools will default to `localhost:2181`
Review Comment:
@epugh Added this sub-paragraph both to this file and to the `zookeeper-utilities` page, to explain the "hunting order". This is true for the zookeeper tools.
Some tools (ConfigTool, ExportTool, PackageTool, PostLogsTool, PostTool and StreamTool) use `normalizeSolrUrl()` function which have a slightly different logic, in that it inspects sysprops to find the local address of solr, and will then not blindly fall back to `localhost:9983` but to `$SOLR_PORT+1000`.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1983432038
##########
solr/core/src/java/org/apache/solr/cli/CLIUtils.java:
##########
@@ -216,12 +217,32 @@ public static String normalizeSolrUrl(CommandLine cli) throws Exception {
}
/**
- * Get the ZooKeeper connection string from either the zk-host command-line option or by looking
- * it up from a running Solr instance based on the solr-url option.
+ * Get the value of the specified CLI option with fallback to system property and default value.
+ *
+ * @param cli the command line
+ * @param option the commons cli {@link Option}
+ * @param sysprop the system property to fall back to
+ * @param defaultValue the default value. Use null if no default value is desired
+ * @return the value of the option or system property or the default value
+ */
+ public static String getCliOptionOrPropValue(
+ CommandLine cli, Option option, String sysprop, String defaultValue) {
+ String value = cli.getOptionValue(option);
Review Comment:
I think doing the same for SOLR_URL makes sense. It could be another PR, but it could also be in this PR!
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1982953396
##########
solr/core/src/java/org/apache/solr/cli/CLIUtils.java:
##########
@@ -216,12 +217,32 @@ public static String normalizeSolrUrl(CommandLine cli) throws Exception {
}
/**
- * Get the ZooKeeper connection string from either the zk-host command-line option or by looking
- * it up from a running Solr instance based on the solr-url option.
+ * Get the value of the specified CLI option with fallback to system property and default value.
+ *
+ * @param cli the command line
+ * @param option the commons cli {@link Option}
+ * @param sysprop the system property to fall back to
+ * @param defaultValue the default value. Use null if no default value is desired
+ * @return the value of the option or system property or the default value
+ */
+ public static String getCliOptionOrPropValue(
+ CommandLine cli, Option option, String sysprop, String defaultValue) {
+ String value = cli.getOptionValue(option);
Review Comment:
@epugh In my last commit I generalized the util method to this getCliOptionOrPropValue which can be used by any Tool that wishes to read a CLI OPTION with a fallback to env/prop and also a fallback to defaultvalue. Currently I only use it for zkhost. IMO the calling code also becomes more clear, as you will see in the same line both the OPT name and the prop name. Perhaps this could be used also for SOLR_URL?
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1982990193
##########
solr/core/src/java/org/apache/solr/cli/CLIUtils.java:
##########
@@ -216,12 +216,29 @@ public static String normalizeSolrUrl(CommandLine cli) throws Exception {
}
/**
- * Get the ZooKeeper connection string from either the zk-host command-line option or by looking
- * it up from a running Solr instance based on the solr-url option.
+ * Get the ZooKeeper connection string from either the zk-host command-line option or if not
+ * configured, from the 'zkHost' system property aka the 'ZK_HOST' environment variable.
+ *
+ * @param cli the command line
+ * @return the ZooKeeper connection string or null if not configured
+ */
+ public static String getZkHostFromCliOrEnv(CommandLine cli) {
Review Comment:
I had another look at the CommonCLIOptions. You are correct that the [SOLR_URL_OPTION](https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/cli/CommonCLIOptions.java#L43) documents that it defaults to an URL defined by a set of sysProps. But not all tools do fallback in the same way, e.g. CreateTool looks up a live node in zk instead.
The [ZK_HOST_OPTION](https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/cli/CommonCLIOptions.java#L32-L41) main help text says it defaults to `localhost:9983` but many tools uses `getZkHost()` which queries solr to find zkHost, but that is really not documented in help docs.
This PR brings tools in line with ZK_HOST_OPTION help docs
> "Zookeeper connection string; unnecessary if ZK_HOST is defined in solr.in.sh;
But the last part
>"otherwise, defaults to localhost:9983"
is still largely wrong for many tools, since we actually try to look it up via Solr APIs. We could change that help text to align with reality but I have not surveyed every single use, have not seen what refGuide says etc, so let it be for a followup PR.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "HoustonPutman (via GitHub)" <gi...@apache.org>.
HoustonPutman commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1981736330
##########
solr/core/src/java/org/apache/solr/cli/RunExampleTool.java:
##########
@@ -305,7 +305,7 @@ protected void runExample(CommandLine cli, String exampleName) throws Exception
"techproducts".equals(exampleName) ? "sample_techproducts_configs" : "_default";
boolean isCloudMode = !cli.hasOption(USER_MANAGED_OPTION);
- String zkHost = cli.getOptionValue(CommonCLIOptions.ZK_HOST_OPTION);
+ String zkHost = CLIUtils.getZkHostFromCliOrEnv(cli);
Review Comment:
I'm not sure it's too risky, since it's unlikely that it's going to do anything that the user can't undo later.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-2702257270
> I feel that the users may be overwhelmed with the amount of options we give them for defining a property (CLI option, env vars and file), which makes our code more complex as well
Adding `ZK_HOST=foo` to solr.in.sh has the same effect as adding `export ZK_HOST=foo` to your shell. It comes very handy when e.g. running Solr as a container and you can configure a lot with just env instead of having to patch the `CMD` part. The CLI tools like `zk cp` behaves the same as when starting solr itself.
So you can set `SOLR_URL` or `ZK_HOST` variable and then run much shorter commands to work with your cluster.
Perhaps we could do a better job in SolrCLI of wrapping such common behavior in more generic utils like
```java
```
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-2700391514
Hmm, there's no `9.8.1` section in CHANGES.txt on `main`, and not on `branch_9x`, only on `branch_9_8`.
Is the correct way for this bugfix to skip CHANGES here and on 9x, and then add one when cherry-picking to the release branch? Then the 9.8.1 RM will reconsile changes to other branches during release?
Here is suggested changes text:
```
* SOLR-17690: Make solr CLI tools read ZK_HOST environment as documented (janhoy)
```
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1980521378
##########
solr/core/src/test/org/apache/solr/cli/ZkSubcommandsTest.java:
##########
@@ -507,9 +507,10 @@ public void testGetFile() throws Exception {
Path file =
tmpDir.resolve("solrtest-getfile-" + this.getClass().getName() + "-" + System.nanoTime());
+ // Not setting --zk-host, will fall back to sysProp 'zkHost'
String[] args =
new String[] {
- "cp", "-z", zkServer.getZkAddress(), "zk:" + getNode, file.toAbsolutePath().toString()
+ "cp", "zk:" + getNode, file.toAbsolutePath().toString()
Review Comment:
Simple way of testing the fix. This test explicitly sets `zkHost` sysProp in setUp, so removing `-z` shuold cause a fallback. The test `ZkSubcommandsTest#testGetFile()` will thus fail until the fix is added.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-2700193133
Refactored a bit, to be able to use the `--zk-host foo --> ZK_HOST=foo` fallback other places that attempt to read only the option.
Activated the fix since the Crave tests don't run anyway to show the failing test. I'll run all the tests locally.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1982302027
##########
solr/core/src/test/org/apache/solr/cli/ZkSubcommandsTest.java:
##########
@@ -507,10 +507,8 @@ public void testGetFile() throws Exception {
Path file =
tmpDir.resolve("solrtest-getfile-" + this.getClass().getName() + "-" + System.nanoTime());
- String[] args =
- new String[] {
- "cp", "-z", zkServer.getZkAddress(), "zk:" + getNode, file.toAbsolutePath().toString()
- };
+ // Not setting --zk-host, will fall back to sysProp 'zkHost'
+ String[] args = new String[] {"cp", "zk:" + getNode, file.toAbsolutePath().toString()};
Review Comment:
Did not find your mail. I like env vars also in cli tools :)
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-2852787304
This PR has had no activity for 60 days and is now labeled as stale. Any new activity will remove the stale label. To attract more reviewers, please tag people who might be familiar with the code area and/or notify the dev@solr.apache.org mailing list. To exempt this PR from being marked as stale, make it a draft PR or add the label "exempt-stale". If left unattended, this PR will be closed after another 60 days of inactivity. Thank you for your contribution!
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-3200247543
Do we still need this PR?
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r2462227370
##########
solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc:
##########
@@ -1191,11 +1199,10 @@ An absolute path may be supplied instead.
+
[%autowidth,frame=none]
|===
-s|Required |Default: none
+|Optional |Default: `localhost:2181` if `ZK_HOST` env var not set
|===
Review Comment:
These are not required per se, as if you have the env var or happen to run solr on default port, it is not required. So I switched to Optional in docs.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy merged PR #3240:
URL: https://github.com/apache/solr/pull/3240
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-2700380093
I ran crave locally since it does not work in gh-actions:
```
../crave run
Downloading update https://github.com/accupara/crave/releases/download/0.2-7064/crave-0.2-7064-darwin-amd64.bin
Selecting project Solr (id:39)
Picking up local changes (if any)...
3 files changed, 25 insertions(+), 10 deletions(-)
No build commands specified
Running preconfigured build commands
./gradlew --console=plain test
To run custom build commands use
crave [options] run [options] -- "customCommand1; customCommand2; ..."
Waiting for build id:185108 to start...
Services in this job can be accessed using the following:
Service Remote Access URL
----------- -------- ----------------------------
shellinabox 5898 shellinabox://localhost:5898
ssh 22 ssh://localhost:41528
vscode 5899 vscode://localhost:5899
Setting up workspace (this could take some time)...
Pulling container image accupara/openjdk:21...
Finished pulling container image accupara/openjdk@sha256:8f36c8fd41df83a9773ac84785b5b16d29fd4eb5c94c1cc49327785bddca183e took 1.088967291s
Switched to a new branch 'feature/SOLR-17690-zkToolZKHostFromEnv'
setting commitID to e668dceb6bec0b838d5f1e045483432abd6b6612
From /home/admin/.craved/GUnip8pjhjmR-561c264fd117b4e8a8d25c057caef7c71e43099d.patch.gz.b64
* branch HEAD -> FETCH_HEAD
Updating e668dceb6be..1580a6c19c6
Fast-forward
.../src/java/org/apache/solr/cli/CLIUtils.java | 25 ++++++++++++++++++----
.../java/org/apache/solr/cli/RunExampleTool.java | 4 ++--
.../org/apache/solr/cli/ZkSubcommandsTest.java | 6 ++----
3 files changed, 25 insertions(+), 10 deletions(-)
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
[--snip--]
> Task :solr:core:wipeTaskTemp
The slowest tests (exceeding 500 ms) during this run:
149.58s BasicAuthIntegrationTest.testBasicAuth (:solr:core)
70.52s PeerSyncReplicationTest.test (:solr:core)
66.55s TestDistributedSearch.test (:solr:core)
65.63s ReplicationFactorTest.test (:solr:core)
64.00s BasicDistributedZkTest.test (:solr:core)
57.93s TestCpuAllowedLimit.testDistribLimit (:solr:core)
54.98s BasicDistributedZk2Test.test (:solr:core)
51.94s SyncSliceTest.test (:solr:core)
50.02s UnloadDistributedZkTest.test (:solr:core)
45.63s SolrAndKafkaReindexTest.testFullCloudToCloud (:solr:cross-dc-manager)
The slowest suites (exceeding 1s) during this run:
149.65s BasicAuthIntegrationTest (:solr:core)
113.65s SchemaTest (:solr:solrj)
111.93s TestRecovery (:solr:core)
107.73s TestCpuAllowedLimit (:solr:core)
96.31s MultiThreadedOCPTest (:solr:core)
89.91s TestCollectionAPI (:solr:core)
85.43s TestPullReplica (:solr:core)
82.79s TestCoordinatorRole (:solr:core)
77.73s StreamDecoratorTest (:solr:solrj-streaming)
75.33s PeerSyncReplicationTest (:solr:core)
BUILD SUCCESSFUL in 6m 32s
146 actionable tasks: 142 executed, 4 up-to-date
------------------------------------------------------------------------
Build Successful
Total time: 7m22.5s
------------------------------------------------------------------------
```
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "HoustonPutman (via GitHub)" <gi...@apache.org>.
HoustonPutman commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-2702130634
So I think there is good discussion to be had here about the use of EnvVars in the SolrCLI logic (which currently we do use for default Solr URLs). But in the meantime, I do believe that there is a fix for https://github.com/apache/solr-operator/issues/762 that will support 9.8.0 and 9.8.1 even if this PR isn't included.
I think that's probably the way to go, so we can spend the time and come up with the best strategy for CLI EnvVars.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1982990193
##########
solr/core/src/java/org/apache/solr/cli/CLIUtils.java:
##########
@@ -216,12 +216,29 @@ public static String normalizeSolrUrl(CommandLine cli) throws Exception {
}
/**
- * Get the ZooKeeper connection string from either the zk-host command-line option or by looking
- * it up from a running Solr instance based on the solr-url option.
+ * Get the ZooKeeper connection string from either the zk-host command-line option or if not
+ * configured, from the 'zkHost' system property aka the 'ZK_HOST' environment variable.
+ *
+ * @param cli the command line
+ * @return the ZooKeeper connection string or null if not configured
+ */
+ public static String getZkHostFromCliOrEnv(CommandLine cli) {
Review Comment:
I had another look at the CommonCLIOptions. You are correct that the [SOLR_URL_OPTION](https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/cli/CommonCLIOptions.java#L43) documents that it defaults to an URL defined by a set of sysProps. But not all tools do fallback in the same way, e.g. CreateTool looks up a live node in zk instead.
The [ZK_HOST_OPTION](https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/cli/CommonCLIOptions.java#L32-L41) main help text says it defaults to `localhost:9983` but many tools uses `getZkHost()` which queries solr to find zkHost, but with this change consults ZK_HOST first, which is really not documented in help docs.
In my mind, this change brings tools in line with ZK_HOST_OPTION help docs "Zookeeper connection string; unnecessary if ZK_HOST is defined in solr.in.sh;", but the last part "otherwise, defaults to localhost:9983" is still largely wrong since we actually try to look it up from Solr.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "HoustonPutman (via GitHub)" <gi...@apache.org>.
HoustonPutman commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-3050304429
@janhoy I'm assuming it's ok to move this to 9.10 and not have it block 9.9?
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-3040462669
This PR has had no activity for 60 days and is now labeled as stale. Any new activity will remove the stale label. To attract more reviewers, please tag people who might be familiar with the code area and/or notify the dev@solr.apache.org mailing list. To exempt this PR from being marked as stale, make it a draft PR or add the label "exempt-stale". If left unattended, this PR will be closed after another 60 days of inactivity. Thank you for your contribution!
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-2853790852
This PR lost its urgency since a solr-operator change fixed the bug at hand. Perhaps the use of env.vars in CLI tools should be decided on the mailing list and then if we want to continue reading ENV in CLI tools we come back to this one?
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1981763825
##########
solr/core/src/java/org/apache/solr/cli/RunExampleTool.java:
##########
@@ -305,7 +305,7 @@ protected void runExample(CommandLine cli, String exampleName) throws Exception
"techproducts".equals(exampleName) ? "sample_techproducts_configs" : "_default";
boolean isCloudMode = !cli.hasOption(USER_MANAGED_OPTION);
- String zkHost = cli.getOptionValue(CommonCLIOptions.ZK_HOST_OPTION);
+ String zkHost = CLIUtils.getZkHostFromCliOrEnv(cli);
Review Comment:
I can't reallyu imagine anyone running the example who wants it from ZK_HOST. That would be a surprise. You know, I think there is a legit argument that the RunExampleTool should NOT take in a ZKHost parameter. We don't need the RunExampleTool to do everything that `bin/solr start` does.. We need it to be really good at running an example solr. So, if we wanted to eliminate standalone support from the RunExampleTool, I would get that. If we wanted it to only do certain other things, I would get that too. One big annonycance in the `bin/solr` script is all the special handling we have for just running an example, and maybe if we narrow down what an example does, we would have less special case code?
There are 14 options we pass to the run example!!!!!! And honestly, the only option I ever pass is "techproducts" and "films" and "schemaless", every other option could potentially be hard coded. Which would simpilify that tool a LOT. It's an example tool, not a "let me debug solr in thwierd configuration" tool.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1981755145
##########
solr/core/src/java/org/apache/solr/cli/CLIUtils.java:
##########
@@ -216,12 +216,29 @@ public static String normalizeSolrUrl(CommandLine cli) throws Exception {
}
/**
- * Get the ZooKeeper connection string from either the zk-host command-line option or by looking
- * it up from a running Solr instance based on the solr-url option.
+ * Get the ZooKeeper connection string from either the zk-host command-line option or if not
+ * configured, from the 'zkHost' system property aka the 'ZK_HOST' environment variable.
+ *
+ * @param cli the command line
+ * @return the ZooKeeper connection string or null if not configured
+ */
+ public static String getZkHostFromCliOrEnv(CommandLine cli) {
Review Comment:
Could we look more closely at how CLIUtils. getDefaultSolrUrl works? It feels like we need to make the looking up of ZK and Solr URL more aligned. Use similiar names for the methods and similar patterns for the look ups.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1982317593
##########
solr/core/src/java/org/apache/solr/cli/RunExampleTool.java:
##########
@@ -305,7 +305,7 @@ protected void runExample(CommandLine cli, String exampleName) throws Exception
"techproducts".equals(exampleName) ? "sample_techproducts_configs" : "_default";
boolean isCloudMode = !cli.hasOption(USER_MANAGED_OPTION);
- String zkHost = cli.getOptionValue(CommonCLIOptions.ZK_HOST_OPTION);
+ String zkHost = CLIUtils.getZkHostFromCliOrEnv(cli);
Review Comment:
Let's improve the examples in a followup issue. Perhaps we should not take away capabilities in 9.x, bu make this a 10.0 improvement. For now, this change here brings parity with how `--zk-host` option is documented and supported in the rest of the CLI.
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on code in PR #3240:
URL: https://github.com/apache/solr/pull/3240#discussion_r1982951185
##########
solr/core/src/java/org/apache/solr/cli/CLIUtils.java:
##########
@@ -216,12 +217,32 @@ public static String normalizeSolrUrl(CommandLine cli) throws Exception {
}
/**
- * Get the ZooKeeper connection string from either the zk-host command-line option or by looking
- * it up from a running Solr instance based on the solr-url option.
+ * Get the value of the specified CLI option with fallback to system property and default value.
+ *
+ * @param cli the command line
+ * @param option the commons cli {@link Option}
+ * @param sysprop the system property to fall back to
+ * @param defaultValue the default value. Use null if no default value is desired
+ * @return the value of the option or system property or the default value
+ */
+ public static String getCliOptionOrPropValue(
+ CommandLine cli, Option option, String sysprop, String defaultValue) {
+ String value = cli.getOptionValue(option);
+ if (value == null) {
+ value = EnvUtils.getProperty(sysprop, defaultValue);
+ }
+ return value;
+ }
Review Comment:
@epugh In my last commit I generalized the util method to this `getCliOptionOrPropValue` which can be used by any Tool that wishes to read a CLI OPTION with a fallback to env/prop and also a fallback to defaultvalue. Currently I only use it for zkhost. IMO the calling code also becomes more clear, as you will see in the same line both the OPT name and the prop name. Perhaps this could be used also for SOLR_URL?
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17690 Make solr zk tools read ZK_HOST environment [solr]
Posted by "janhoy (via GitHub)" <gi...@apache.org>.
janhoy commented on PR #3240:
URL: https://github.com/apache/solr/pull/3240#issuecomment-3204776945
> Do we still need this PR?
I tried to follow up on the topic on dev@ list with subject "Environment Variables in the Solr CLI" on August 4th, as there was never a consensus for whether CLI tools should respect env.vars as they do today or whether they should require `--foo=bar` options. Let's land a decision on dev@ first, then I'll either merge or close this. I'm in favor of merging :)
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org