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.txtindex 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 executiondiff --git a/solr/bin/solr b/solr/bin/solrindex 2cd12a55041..52a84c10ba8 100755--- a/solr/bin/solr+++ b/solr/bin/solr@@ -950,7 +950,7 @@ if [ "$SCRIPT_CMD" == "healthcheck" ]; thenHEALTHCHECK_COLLECTION="$2"shift 2;;- -z|-zkhost)+ -z|-zkhost|-zkHost)if [[ -z "$2" || "${2:0:1}" == "-" ]]; thenprint_usage "$SCRIPT_CMD" "ZooKeeper connection string is required when using the $1 option!"exit 1@@ -1292,7 +1292,7 @@ if [[ "$SCRIPT_CMD" == "zk" ]]; thenfishift 1;;- -z|-zkhost)+ -z|-zkhost|-zkHost)if [[ -z "$2" || "${2:0:1}" == "-" ]]; thenprint_short_zk_usage "$SCRIPT_CMD" "ZooKeeper connection string is required when using the $1 option!"fi@@ -1445,7 +1445,7 @@ if [[ "$SCRIPT_CMD" == "auth" ]]; thenAUTH_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 ]; thenPASS_TO_RUN_EXAMPLE+=" -p $SOLR_PORT"shift 2;;- -z|-zkhost)+ -z|-zkhost|-zkHost)if [[ -z "$2" || "${2:0:1}" == "-" ]]; thenprint_usage "$SCRIPT_CMD" "Zookeeper connection string is required when using the $1 option!"exit 1