Skip to content

Apache Lucene open-source search software

SOLR-6592: add mention in solr/CHANGES.txt

Timothy Pottera5ee2289d45b
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 5d79016d687..d4258788b0f 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -303,6 +303,9 @@ Other Changes
* SOLR-5852: Add CloudSolrServer helper method to connect to a ZK ensemble. (Varun Thacker, Furkan KAMACI,
Shawn Heisey, Mark Miller, Erick Erickson via shalin)
+* SOLR-6592: Avoid waiting for the leader to see the down state if that leader is not live.
+ (Timothy Potter)
+
================== 4.10.1 ==================
Bug Fixes
diff --git a/solr/bin/solr b/solr/bin/solr
index eaaf7163c51..ea8091839d6 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -698,6 +698,12 @@ fi
if [[ "$SCRIPT_CMD" == "start" ]]; then
# see if Solr is already running
SOLR_PID=`solr_pid_by_port "$SOLR_PORT"`
+
+ if [ "$SOLR_PID" == "" ]; then
+ # not found using the pid file ... but use ps to ensure not found
+ SOLR_PID=`ps waux | grep start.jar | grep $SOLR_PORT | grep -v grep | awk '{print $2}' | sort -r`
+ fi
+
if [ "$SOLR_PID" != "" ]; then
echo -e "\nSolr already running on port $SOLR_PORT (pid: $SOLR_PID)!"
echo -e "Please use the 'restart' command if you want to restart this node.\n"