You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by is...@apache.org on 2022/11/03 00:04:20 UTC

[solr] branch jira/solr-16414-investigate-slowdown updated: Thread dump on disk when killed during stop

This is an automated email from the ASF dual-hosted git repository.

ishan pushed a commit to branch jira/solr-16414-investigate-slowdown
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/jira/solr-16414-investigate-slowdown by this push:
     new 856f11479cf Thread dump on disk when killed during stop
856f11479cf is described below

commit 856f11479cfdb7fb6e80f635d6b18b9ba5b857cc
Author: Ishan Chattopadhyaya <is...@apache.org>
AuthorDate: Thu Nov 3 05:34:06 2022 +0530

    Thread dump on disk when killed during stop
---
 solr/bin/solr | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/solr/bin/solr b/solr/bin/solr
index cc5bd87ffd9..38321002ee4 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -878,10 +878,10 @@ function stop_solr() {
   if [[ "${STAT:-Z}" != "Z" ]]; then
     if [ -n "{$JSTACK:-}" ]; then
       echo -e "Solr process $SOLR_PID is still running; jstacking it now."
-      $JSTACK $SOLR_PID > $SOLR_PID_DIR/solr-threaddump.txt
+      $JSTACK $SOLR_PID > $SOLR_PID_DIR/solr-threaddump-$SOLR_PID..txt
     elif [ "$JATTACH" != "" ]; then
       echo -e "Solr process $SOLR_PID is still running; jattach threaddumping it now."
-      $JATTACH $SOLR_PID threaddump > $SOLR_PID_DIR/solr-threaddump.txt
+      $JATTACH $SOLR_PID threaddump > $SOLR_PID_DIR/solr-threaddump-$SOLR_PID.txt
     fi
     echo -e "Solr process $SOLR_PID is still running; forcefully killing it now."
     kill -9 $SOLR_PID