You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ge...@apache.org on 2023/06/06 16:55:23 UTC

[solr] branch main updated: SOLR-16392: Correct v2 deleteshard path

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

gerlowskija 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 2307ee9feef SOLR-16392: Correct v2 deleteshard path
2307ee9feef is described below

commit 2307ee9feef70c733597be639be522f976d41bbf
Author: Jason Gerlowski <ge...@apache.org>
AuthorDate: Tue Jun 6 10:39:43 2023 -0400

    SOLR-16392: Correct v2 deleteshard path
    
    I made a copy/paste mistake when converting DELETESHARD to the JAX-RS
    framework and didn't catch it.  This commit corrects that.
---
 .../core/src/java/org/apache/solr/handler/admin/api/DeleteShardAPI.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/core/src/java/org/apache/solr/handler/admin/api/DeleteShardAPI.java b/solr/core/src/java/org/apache/solr/handler/admin/api/DeleteShardAPI.java
index 3c2b6664308..afa4abe92cd 100644
--- a/solr/core/src/java/org/apache/solr/handler/admin/api/DeleteShardAPI.java
+++ b/solr/core/src/java/org/apache/solr/handler/admin/api/DeleteShardAPI.java
@@ -49,7 +49,7 @@ import org.apache.solr.response.SolrQueryResponse;
  * <p>This API (DELETE /v2/collections/collectionName/shards/shardName) is analogous to the v1
  * /admin/collections?action=DELETESHARD command.
  */
-@Path("/collections/{collectionName}/shards/{shardName}/replicas")
+@Path("/collections/{collectionName}/shards/{shardName}")
 public class DeleteShardAPI extends AdminAPIBase {
 
   @Inject