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

[lucene-solr] branch branch_8x updated: SOLR-14234: Unhelpful message in RemoteExecutionException.

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

ab 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 7090582  SOLR-14234: Unhelpful message in RemoteExecutionException.
7090582 is described below

commit 709058216edd40da35bdaa8ed31edb6fed6a90c2
Author: Andrzej Bialecki <ab...@apache.org>
AuthorDate: Wed Feb 3 16:27:47 2021 +0100

    SOLR-14234: Unhelpful message in RemoteExecutionException.
---
 solr/CHANGES.txt                                                        | 2 ++
 .../src/java/org/apache/solr/client/solrj/impl/BaseHttpSolrClient.java  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index cbf05c1..bfbba09 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -18,6 +18,8 @@ Improvements
 
 * SOLR-15085: Prevent EmbeddedSolrServer calling shutdown on a CoreContainer that was passed to it. (Tim Owen via Mike Drob)
 
+* SOLR-14234: Unhelpful message in RemoteExecutionException. (ab)
+
 Optimizations
 ---------------------
 * SOLR-15079: Block Collapse - Faster collapse code when groups are co-located via Block Join style nested doc indexing.
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/BaseHttpSolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/BaseHttpSolrClient.java
index f6c9071..26bf83c 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/BaseHttpSolrClient.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/BaseHttpSolrClient.java
@@ -53,7 +53,7 @@ public abstract class BaseHttpSolrClient extends SolrClient {
     private NamedList meta;
 
     public RemoteExecutionException(String remoteHost, int code, String msg, @SuppressWarnings({"rawtypes"})NamedList meta) {
-      super(remoteHost, code, msg, null);
+      super(remoteHost, code, msg + (meta != null ? ": " + meta : ""), null);
       this.meta = meta;
     }