You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2023/07/10 14:11:03 UTC
[solr] branch branch_9x updated: Pass verbose flag to solr start when using example (#1766)
This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new f755cf0cb34 Pass verbose flag to solr start when using example (#1766)
f755cf0cb34 is described below
commit f755cf0cb34a3f82f1d5e3a2bda29a83ef71bc4f
Author: Houston Putman <ho...@apache.org>
AuthorDate: Mon Jul 10 10:08:27 2023 -0400
Pass verbose flag to solr start when using example (#1766)
(cherry picked from commit 5b38cf5c97ccb28dfcda04246bdd8a0b54c80dd1)
---
solr/core/src/java/org/apache/solr/cli/RunExampleTool.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java b/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java
index 1e83a8226db..9c683be962f 100644
--- a/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java
+++ b/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java
@@ -600,6 +600,7 @@ public class RunExampleTool extends ToolBase {
String memArg = (memory != null) ? " -m " + memory : "";
String cloudModeArg = cloudMode ? "-cloud " : "";
String forceArg = cli.hasOption("force") ? " -force" : "";
+ String verboseArg = verbose ? "-V" : "";
String addlOpts = cli.getOptionValue('a');
String addlOptsArg = (addlOpts != null) ? " -a \"" + addlOpts + "\"" : "";
@@ -620,7 +621,7 @@ public class RunExampleTool extends ToolBase {
String startCmd =
String.format(
Locale.ROOT,
- "\"%s\" start %s -p %d -s \"%s\" %s %s %s %s %s %s",
+ "\"%s\" start %s -p %d -s \"%s\" %s %s %s %s %s %s %s",
callScript,
cloudModeArg,
port,
@@ -629,6 +630,7 @@ public class RunExampleTool extends ToolBase {
zkHostArg,
memArg,
forceArg,
+ verboseArg,
extraArgs,
addlOptsArg);
startCmd = startCmd.replaceAll("\\s+", " ").trim(); // for pretty printing