From e5884a35398c58c6f19e3e40f93c25ee51ef77ef Mon Sep 17 00:00:00 2001 From: Eric Pugh Date: Tue, 29 Oct 2024 07:56:37 -0400 Subject: [PATCH 01/32] Track changes for the whole slew of CLI commands under one umbrella JIRA (#2810) --- solr/CHANGES.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 1ddf5f4be45..a4921ec4065 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -135,11 +135,9 @@ Improvements which may help reduce distributed-search latency in collections with many shards, especially when PKI is used between nodes. (Jason Gerlowski) -* SOLR-17382: Deprecate -a and -addlopts in favour of --jvm-opts for passing options into the JVM in bin/solr. (Eric Pugh, Christos Malliaridis) - -* SOLR-17431: Deprecate -p parameter where it doesn't refer to a port in bin/solr. (Eric Pugh, Christos Malliaridis) - -* SOLR-17442: Resolve -v flag conflict (version, value, verbose) in bin/solr. (Eric Pugh, Christos Malliaridis) +* SOLR-17383: Resolved overlapping arguments in the Solr CLI. Removed duplicative but differing arguments, + consolidated use of short form arguments -v to not have differing meanings based on tool. Provide deprecation warning + in command line when deprecated arguments are used. (Eric Pugh, Christos Malliaridis) * SOLR-17256: Deprecate SolrRequest `setBasePath` and `getBasePath` methods. SolrJ users wishing to temporarily override an HTTP client's base URL may use `Http2SolrClient.requestWithBaseUrl` instead. (Jason Gerlowski, From 42f8e485446c3bb82aa5d0cd0ef7196059ddc8fb Mon Sep 17 00:00:00 2001 From: Eric Pugh Date: Tue, 29 Oct 2024 09:49:52 -0400 Subject: [PATCH 02/32] SOLR-17528: Match PackageTool use of -y (#2813) --no-prompt now has short version -y --- solr/CHANGES.txt | 2 ++ solr/core/src/java/org/apache/solr/cli/RunExampleTool.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index a4921ec4065..ac00cf68152 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -147,6 +147,8 @@ Improvements enqueuing with a risk of rejection. Solr will use less resources under stress but to get the most of your machine, you may want to increase the thread pool. (David Smiley) +* SOLR-17528: Introduce -y short option to bin/solr start --no-prompt option. Aligns with bin/solr package tool. (Eric Pugh) + Optimizations --------------------- * SOLR-14985: Solrj CloudSolrClient with Solr URLs had serious performance regressions (since the 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 788a9b86dfc..95c746f82b7 100644 --- a/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java +++ b/solr/core/src/java/org/apache/solr/cli/RunExampleTool.java @@ -94,7 +94,7 @@ public String getName() { @Override public List