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 47e74382d31 SOLR-17746: Provide long form --jettyconfig option to go 
with -j (#3332)
47e74382d31 is described below

commit 47e74382d3189c98085ce122700f8ca1295cb00d
Author: Eric Pugh <[email protected]>
AuthorDate: Wed Jun 25 14:49:34 2025 -0400

    SOLR-17746: Provide long form --jettyconfig option to go with -j (#3332)
---
 solr/CHANGES.txt                                                        | 2 ++
 solr/bin/solr                                                           | 2 +-
 solr/bin/solr.cmd                                                       | 2 +-
 solr/packaging/test/test_start_solr.bats                                | 2 +-
 .../modules/deployment-guide/pages/solr-control-script-reference.adoc   | 2 +-
 5 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 2813b433806..fbcac3c6a61 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -258,6 +258,8 @@ Improvements
 
 * SOLR-17776: The HttpJdkSolrClient wasn't setting the connection timeout as 
per the builder configuration. (David Smiley)
 
+* SOLR-17746: Provide long form --jettyconfig option to go with -j in bin/solr 
scripts. (Eric Pugh, Rahul Goswami)
+
 Optimizations
 ---------------------
 * SOLR-17578: Remove ZkController internal core supplier, for slightly faster 
reconnection after Zookeeper session loss. (Pierre Salagnac)
diff --git a/solr/bin/solr b/solr/bin/solr
index ce85b4bbb85..8d2194e3763 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -418,7 +418,7 @@ function print_usage() {
     echo "                          you could pass: --jvm-opts 
\"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=18983\""
     echo "                          In most cases, you should wrap the 
additional parameters in double quotes."
     echo ""
-    echo "  -j <jettyParams>      Additional parameters to pass to Jetty when 
starting Solr."
+    echo "  -j/--jettyconfig <jettyParams> Additional parameters to pass to 
Jetty when starting Solr."
     echo "                          For example, to add configuration folder 
that jetty should read"
     echo "                          you could pass: -j 
\"--include-jetty-dir=/etc/jetty/custom/server/\""
     echo "                          In most cases, you should wrap the 
additional parameters in double quotes."
diff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmd
index 817baa9d072..f0efa548b16 100755
--- a/solr/bin/solr.cmd
+++ b/solr/bin/solr.cmd
@@ -324,7 +324,7 @@ goto err
 @echo                 you could pass: --jvm-opts 
"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=18983"
 @echo                 In most cases, you should wrap the additional parameters 
in double quotes.
 @echo.
-@echo   -j opts       Additional parameters to pass to Jetty when starting 
Solr.
+@echo   -j/--jettyconfig opts Additional parameters to pass to Jetty when 
starting Solr.
 @echo                 For example, to add configuration folder that jetty 
should read
 @echo                 you could pass: -j 
"--include-jetty-dir=/etc/jetty/custom/server/"
 @echo                 In most cases, you should wrap the additional parameters 
in double quotes.
diff --git a/solr/packaging/test/test_start_solr.bats 
b/solr/packaging/test/test_start_solr.bats
index 8a8416f6ab2..ae0f6f514bd 100644
--- a/solr/packaging/test/test_start_solr.bats
+++ b/solr/packaging/test/test_start_solr.bats
@@ -85,6 +85,6 @@ teardown() {
   export ENABLE_REMOTE_JMX_OPTS=true
   export RMI_PORT=65535 # need to make sure we don't exceed port range so hard 
code it
 
-  solr start -j "--module=server"
+  solr start --jettyconfig "--module=server"
   solr assert --started http://localhost:${SOLR_PORT} --timeout 5000
 }
diff --git 
a/solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc
 
b/solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc
index bb5c2735c33..48fe8e18347 100644
--- 
a/solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc
+++ 
b/solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc
@@ -69,7 +69,7 @@ If you are passing JVM parameters that begin with `-D`, you 
can omit the `--jvm-
 [source,bash]
 bin/solr start --jvm-opts "-Xdebug -Xrunjdwp:transport=dt_socket, 
server=y,suspend=n,address=1044"
 
-`-j <jettyParams>`::
+`-j <jettyParams>` or `--jettyconfig <jettyParams>`::
 +
 [%autowidth,frame=none]
 |===

Reply via email to