This is an automated email from the ASF dual-hosted git repository.
malliaridis pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new 577e7012ca4 SOLR-17467: Fix Windows start script for default / cloud
mode (#2784)
577e7012ca4 is described below
commit 577e7012ca476b2ea2c7102d5301bfbec128f048
Author: Christos Malliaridis <[email protected]>
AuthorDate: Tue Oct 22 14:27:16 2024 +0200
SOLR-17467: Fix Windows start script for default / cloud mode (#2784)
---
solr/bin/solr.cmd | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmd
index 94a973236b1..db94bc8691a 100755
--- a/solr/bin/solr.cmd
+++ b/solr/bin/solr.cmd
@@ -904,7 +904,7 @@ if !JAVA_MAJOR_VERSION! LSS 9 (
)
IF NOT "%ZK_HOST%"=="" set SOLR_MODE=solrcloud
-IF NOT "%SOLR_MODE%"=="" set SOLR_MODE=solrcloud
+IF "%SOLR_MODE%"=="" set SOLR_MODE=solrcloud
IF "%SOLR_MODE%"=="solrcloud" (
IF "%ZK_CLIENT_TIMEOUT%"=="" set "ZK_CLIENT_TIMEOUT=30000"
@@ -941,7 +941,7 @@ IF "%SOLR_MODE%"=="solrcloud" (
IF EXIST "%SOLR_HOME%\collection1\core.properties" set
"CLOUD_MODE_OPTS=!CLOUD_MODE_OPTS! -Dbootstrap_confdir=./solr/collection1/conf
-Dcollection.configName=myconf -DnumShards=1"
) ELSE (
REM change Cloud mode to User Managed mode with flag
- set "CLOUD_MODE_OPTS=--user-managed"
+ set "CLOUD_MODE_OPTS="
IF NOT EXIST "%SOLR_HOME%\solr.xml" (
IF "%SOLR_SOLRXML_REQUIRED%"=="true" (
set "SCRIPT_ERROR=Solr home directory %SOLR_HOME% must contain solr.xml!"