You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/08/19 22:26:00 UTC

[lucene-solr] 01/02: @567 This can go back to an error now.

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

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

commit c41e0f65eda4740a6f5c7f8fa249cb3674ec020d
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Wed Aug 19 17:24:58 2020 -0500

    @567 This can go back to an error now.
---
 .../src/java/org/apache/solr/handler/admin/CollectionsHandler.java  | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/handler/admin/CollectionsHandler.java b/solr/core/src/java/org/apache/solr/handler/admin/CollectionsHandler.java
index bf4f317..5a8dee3 100644
--- a/solr/core/src/java/org/apache/solr/handler/admin/CollectionsHandler.java
+++ b/solr/core/src/java/org/apache/solr/handler/admin/CollectionsHandler.java
@@ -403,10 +403,8 @@ public class CollectionsHandler extends RequestHandlerBase implements Permission
             + event.getWatchedEvent().getState() + " type "
             + event.getWatchedEvent().getType() + "]");
       } else {
-        // we have to assume success - it was too quick for us to catch the response
-        NamedList<Object> resp = new NamedList<>();
-        resp.add("success", "true");
-        return new OverseerSolrResponse(resp);
+        throw new SolrException(ErrorCode.SERVER_ERROR, operation
+            + " no response found for collection operation " + operation);
       }
     }
   }