You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ep...@apache.org on 2024/01/26 14:27:51 UTC

(solr) branch main updated: SOLR-17112 - bin/solr script doesn't do ps properly on some systems (#2225)

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

epugh 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 f99935db824 SOLR-17112 - bin/solr script doesn't do ps properly on some systems (#2225)
f99935db824 is described below

commit f99935db8248b6016c76438b3e7aa5d563884947
Author: Vincenzo D'Amore <46...@users.noreply.github.com>
AuthorDate: Fri Jan 26 15:27:46 2024 +0100

    SOLR-17112 - bin/solr script doesn't do ps properly on some systems (#2225)
    
    ---------
    
    Co-authored-by: Eric Pugh <ep...@opensourceconnections.com>
---
 solr/CHANGES.txt | 3 +++
 solr/bin/solr    | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 13c3b8d900e..a1516ffa3a8 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -30,6 +30,7 @@ Optimizations
 Bug Fixes
 ---------------------
 
+
 Deprecation Removals
 ----------------------
 
@@ -201,6 +202,8 @@ Bug Fixes
 * SOLR-17120: Fix NullPointerException in UpdateLog.applyOlderUpdates that can occur if there are multiple partial
   updates of the same document in separate requests using commitWithin. (Calvin Smith, Christine Poerschke)
 
+* SOLR-17112: bin/solr script doesn't do ps properly on some systems. (Vincenzo D'Amore via Eric Pugh)
+
 Dependency Upgrades
 ---------------------
 * SOLR-17012: Update Apache Hadoop to 3.3.6 and Apache Curator to 5.5.0 (Kevin Risden)
diff --git a/solr/bin/solr b/solr/bin/solr
index 6b8270d66e0..3e64bdc5dc3 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -629,7 +629,7 @@ function solr_pid_by_port() {
 # extract the value of the -Djetty.port parameter from a running Solr process
 function jetty_port() {
   SOLR_PID="$1"
-  SOLR_PROC=$(ps -f -p "$SOLR_PID" | grep start\.jar | grep jetty\.port)
+  SOLR_PROC=$(ps -fww -p "$SOLR_PID" | grep start\.jar | grep jetty\.port)
   IFS=' ' read -a proc_args <<< "$SOLR_PROC"
   for arg in "${proc_args[@]}"
     do