You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mu...@apache.org on 2020/09/15 14:27:07 UTC
[lucene-solr] branch branch_8x updated: SOLR-10471: update default
zk session timeout in bin/solr* scripts
This is an automated email from the ASF dual-hosted git repository.
munendrasn pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new ba1b65e SOLR-10471: update default zk session timeout in bin/solr* scripts
ba1b65e is described below
commit ba1b65e39d02314d33b5d5e1f7f490b3b81337cd
Author: Munendra S N <mu...@apache.org>
AuthorDate: Tue Sep 15 19:32:51 2020 +0530
SOLR-10471: update default zk session timeout in bin/solr* scripts
* zkClientTimeout value is already set to 30s in solr.xml but
same update was missing from bin/solr* script
---
solr/CHANGES.txt | 3 +++
solr/bin/solr | 2 +-
solr/bin/solr.cmd | 2 +-
solr/bin/solr.in.cmd | 2 +-
solr/bin/solr.in.sh | 2 +-
5 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index bff6b22..6f7ed9c 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -131,6 +131,9 @@ Other Changes
* SOLR-14579: Comment SolrJ 'Utils' generic map functions
(Megan Carey and a lot of education from Uwe Schindler via Erick Erickson)
+* SOLR-10471: Update default Zookeeper session timeout to 30s in bin/solr and bin/solr.cmd
+ (Michael Braun, Markus Jelsma via Munendra S N)
+
================== 8.6.2 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
diff --git a/solr/bin/solr b/solr/bin/solr
index 8b635d2..4420786 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -2035,7 +2035,7 @@ fi
if [ "$SOLR_MODE" == 'solrcloud' ]; then
if [ -z "$ZK_CLIENT_TIMEOUT" ]; then
- ZK_CLIENT_TIMEOUT="15000"
+ ZK_CLIENT_TIMEOUT="30000"
fi
CLOUD_MODE_OPTS=("-DzkClientTimeout=$ZK_CLIENT_TIMEOUT")
diff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmd
index 1661a7b..c0c0141 100755
--- a/solr/bin/solr.cmd
+++ b/solr/bin/solr.cmd
@@ -1137,7 +1137,7 @@ IF [%SOLR_LOG_PRESTART_ROTATION%] == [true] (
IF NOT "%ZK_HOST%"=="" set SOLR_MODE=solrcloud
IF "%SOLR_MODE%"=="solrcloud" (
- IF "%ZK_CLIENT_TIMEOUT%"=="" set "ZK_CLIENT_TIMEOUT=15000"
+ IF "%ZK_CLIENT_TIMEOUT%"=="" set "ZK_CLIENT_TIMEOUT=30000"
set "CLOUD_MODE_OPTS=-DzkClientTimeout=!ZK_CLIENT_TIMEOUT!"
diff --git a/solr/bin/solr.in.cmd b/solr/bin/solr.in.cmd
index f27330a..c9aa9e0 100755
--- a/solr/bin/solr.in.cmd
+++ b/solr/bin/solr.in.cmd
@@ -55,7 +55,7 @@ REM Leave empty if not using SolrCloud
REM set ZK_HOST=
REM Set the ZooKeeper client timeout (for SolrCloud mode)
-REM set ZK_CLIENT_TIMEOUT=15000
+REM set ZK_CLIENT_TIMEOUT=30000
REM By default the start script uses "localhost"; override the hostname here
REM for production SolrCloud environments to control the hostname exposed to cluster state
diff --git a/solr/bin/solr.in.sh b/solr/bin/solr.in.sh
index 29261ce..15a08d2 100644
--- a/solr/bin/solr.in.sh
+++ b/solr/bin/solr.in.sh
@@ -67,7 +67,7 @@
#ZK_HOST=""
# Set the ZooKeeper client timeout (for SolrCloud mode)
-#ZK_CLIENT_TIMEOUT="15000"
+#ZK_CLIENT_TIMEOUT="30000"
# By default the start script uses "localhost"; override the hostname here
# for production SolrCloud environments to control the hostname exposed to cluster state