Skip to content

Commit

Permalink
SOLR-17467: Fix Windows start script for default / cloud mode (#2784)
Browse files Browse the repository at this point in the history
  • Loading branch information
malliaridis authored Oct 22, 2024
1 parent 1dba393 commit 577e701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solr/bin/solr.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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!"
Expand Down

0 comments on commit 577e701

Please sign in to comment.