You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ge...@apache.org on 2021/02/08 15:42:38 UTC

[lucene-solr] branch branch_8x updated: SOLR-15118: Deprecate CollectionAdminRequest.getV2Request

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

gerlowskija pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new 79d548e  SOLR-15118: Deprecate CollectionAdminRequest.getV2Request
79d548e is described below

commit 79d548e4b6da61cd7f8509d965f0e4e83f88e0b2
Author: Jason Gerlowski <ja...@lucidworks.com>
AuthorDate: Mon Feb 8 10:21:49 2021 -0500

    SOLR-15118: Deprecate CollectionAdminRequest.getV2Request
---
 solr/CHANGES.txt                                                   | 2 +-
 .../apache/solr/client/solrj/request/CollectionAdminRequest.java   | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 6122ffd..b3b326c 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -35,7 +35,7 @@ Bug Fixes
 
 Other Changes
 ---------------------
-(No changes)
+* SOLR-15118: Deprecate CollectionAdminRequest.getV2Request(). (Jason Gerlowski)
 
 ==================  8.8.0 ==================
 
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.java b/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.java
index 3ffebc3..70c528a 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.java
@@ -111,6 +111,13 @@ public abstract class CollectionAdminRequest<T extends CollectionAdminResponse>
     this.action = checkNotNull(CoreAdminParams.ACTION, action);
   }
 
+  /**
+   *
+   * @deprecated because several "collection-admin" APIs have been reimplemented and no longer use the "JSON-spec"
+   * driven approach that this method relies on.  Use {@link V2Request} directly instead if V2 admin functionality is
+   * desired.
+   */
+  @Deprecated
   @Override
   @SuppressWarnings({"rawtypes"})
   public SolrRequest getV2Request() {