You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ds...@apache.org on 2025/06/29 05:11:32 UTC

(solr) branch main updated (50655d0e1b2 -> 491b9071b64)

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

dsmiley pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


    from 50655d0e1b2 SOLR-17582: Fix ClusterState serializing for older SolrJ versions (#3410)
     new 65ab398f567 Deprecation: DocCollection.getNumNrtReplicas etc.
     new 491b9071b64 Deprecation: CommonParams.QT "qt" param (SOLR-17715)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java | 5 ++++-
 solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java | 6 ++++--
 2 files changed, 8 insertions(+), 3 deletions(-)


(solr) 01/02: Deprecation: DocCollection.getNumNrtReplicas etc.

Posted by ds...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dsmiley pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 65ab398f567254b52cbb2f6739ab9857676b91d5
Author: David Smiley <ds...@salesforce.com>
AuthorDate: Tue Apr 15 00:09:56 2025 -0400

    Deprecation: DocCollection.getNumNrtReplicas etc.
    
    Why: needless convenience methods, and the Object return type is unfortunate
    note: getNumReplicas returns 'int' now; won't take to 9x
---
 solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java b/solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java
index 6000f308373..4b03e96b50e 100644
--- a/solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java
+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java
@@ -548,6 +548,7 @@ public class DocCollection extends ZkNodeProps implements Iterable<Slice> {
    * @return the number of replicas of type {@link org.apache.solr.common.cloud.Replica.Type#NRT}
    *     this collection was created with
    */
+  @Deprecated
   public Integer getNumNrtReplicas() {
     return getNumReplicas(Replica.Type.NRT);
   }
@@ -556,6 +557,7 @@ public class DocCollection extends ZkNodeProps implements Iterable<Slice> {
    * @return the number of replicas of type {@link org.apache.solr.common.cloud.Replica.Type#TLOG}
    *     this collection was created with
    */
+  @Deprecated
   public Integer getNumTlogReplicas() {
     return getNumReplicas(Replica.Type.TLOG);
   }
@@ -564,6 +566,7 @@ public class DocCollection extends ZkNodeProps implements Iterable<Slice> {
    * @return the number of replicas of type {@link org.apache.solr.common.cloud.Replica.Type#PULL}
    *     this collection was created with
    */
+  @Deprecated
   public Integer getNumPullReplicas() {
     return getNumReplicas(Replica.Type.PULL);
   }
@@ -571,7 +574,7 @@ public class DocCollection extends ZkNodeProps implements Iterable<Slice> {
   /**
    * @return the number of replicas of a given type this collection was created with
    */
-  public Integer getNumReplicas(Replica.Type type) {
+  public int getNumReplicas(Replica.Type type) {
     return numReplicas.get(type);
   }
 


(solr) 02/02: Deprecation: CommonParams.QT "qt" param (SOLR-17715)

Posted by ds...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dsmiley pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 491b9071b642bb4b6e1df6330a7adfb9b1943568
Author: David Smiley <ds...@salesforce.com>
AuthorDate: Sat May 3 00:13:53 2025 -0400

    Deprecation: CommonParams.QT "qt" param (SOLR-17715)
    
    It's still being used but signal to everyone to stop using it.
---
 solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java b/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java
index 1982c7a122b..4f4aafdaf5b 100644
--- a/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java
+++ b/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java
@@ -37,9 +37,11 @@ public interface CommonParams {
 
   /**
    * the Request Handler (formerly known as the Query Type) - which Request Handler should handle
-   * the request
+   * the request.
+   *
+   * @deprecated route requests by path instead, not using this parameter
    */
-  String QT = "qt";
+  @Deprecated String QT = "qt";
 
   /** the response writer type - the format of the response */
   String WT = "wt";