Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-15692 Fix parsing of -zkHost flag for the bin/solr commands (#344)

Jan Høydahl2c42c49877f6
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 076b5ad1e54..b6aa9d94d7d 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -371,6 +371,8 @@ Other Changes
* SOLR-15670: Introduce Gradle parameter to skip ref-guide tasks (Houston Putman, Dawid Weiss)
+* SOLR-15692: Fix parsing of -zkHost flag for the bin/solr commands (janhoy)
+
Bug Fixes
---------------------
* SOLR-14546: Fix for a relatively hard to hit issue in OverseerTaskProcessor that could lead to out of order execution
diff --git a/solr/bin/solr b/solr/bin/solr
index 2cd12a55041..52a84c10ba8 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -950,7 +950,7 @@ if [ "$SCRIPT_CMD" == "healthcheck" ]; then
HEALTHCHECK_COLLECTION="$2"
shift 2
;;
- -z|-zkhost)
+ -z|-zkhost|-zkHost)
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
print_usage "$SCRIPT_CMD" "ZooKeeper connection string is required when using the $1 option!"
exit 1
@@ -1292,7 +1292,7 @@ if [[ "$SCRIPT_CMD" == "zk" ]]; then
fi
shift 1
;;
- -z|-zkhost)
+ -z|-zkhost|-zkHost)
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
print_short_zk_usage "$SCRIPT_CMD" "ZooKeeper connection string is required when using the $1 option!"
fi
@@ -1445,7 +1445,7 @@ if [[ "$SCRIPT_CMD" == "auth" ]]; then
AUTH_PARAMS=("${AUTH_PARAMS[@]}" "$AUTH_OP")
shift
;;
- -z|-zkhost|zkHost)
+ -z|-zkhost|-zkHost)
ZK_HOST="$2"
AUTH_PARAMS=("${AUTH_PARAMS[@]}" "-zkHost" "$ZK_HOST")
shift 2
@@ -1713,7 +1713,7 @@ if [ $# -gt 0 ]; then
PASS_TO_RUN_EXAMPLE+=" -p $SOLR_PORT"
shift 2
;;
- -z|-zkhost)
+ -z|-zkhost|-zkHost)
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
print_usage "$SCRIPT_CMD" "Zookeeper connection string is required when using the $1 option!"
exit 1