You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by cp...@apache.org on 2021/05/07 17:49:32 UTC
[solr] branch main updated: SOLR-15377: Improve IndexFetcher's
exception logging upon replication errors. (#99)
This is an automated email from the ASF dual-hosted git repository.
cpoerschke 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 4dae203 SOLR-15377: Improve IndexFetcher's exception logging upon replication errors. (#99)
4dae203 is described below
commit 4dae203caf9ecdf591c2378047198880ccfcdb34
Author: Torsten Bøgh Köster <tb...@thiswayup.de>
AuthorDate: Fri May 7 19:49:21 2021 +0200
SOLR-15377: Improve IndexFetcher's exception logging upon replication errors. (#99)
Co-authored-by: Christine Poerschke <cp...@apache.org>
---
solr/CHANGES.txt | 1 +
solr/core/src/java/org/apache/solr/handler/IndexFetcher.java | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 73b91e3..e2ebaec 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -388,6 +388,7 @@ Other Changes
* SOLR-15292: An ERROR is logged if SignatureUpdateProcessorFactory is used in SolrCloud cluster in a way that is known to
be problematic with multiple replicas. In 9.0 this situation will prevent collection initialization. (hossman)
+* SOLR-15377: Improve IndexFetcher's exception logging upon replication errors. (Torsten Bøgh Köster, Christine Poerschke)
================== 8.8.2 ==================
diff --git a/solr/core/src/java/org/apache/solr/handler/IndexFetcher.java b/solr/core/src/java/org/apache/solr/handler/IndexFetcher.java
index c136927..de563ed 100644
--- a/solr/core/src/java/org/apache/solr/handler/IndexFetcher.java
+++ b/solr/core/src/java/org/apache/solr/handler/IndexFetcher.java
@@ -677,12 +677,12 @@ public class IndexFetcher {
markReplicationStop();
return successfulInstall ? IndexFetchResult.INDEX_FETCH_SUCCESS : IndexFetchResult.INDEX_FETCH_FAILURE;
} catch (ReplicationHandlerException e) {
- log.error("User aborted Replication");
+ log.error("User aborted Replication", e);
return new IndexFetchResult(IndexFetchResult.FAILED_BY_EXCEPTION_MESSAGE, false, e);
} catch (SolrException e) {
throw e;
} catch (InterruptedException e) {
- throw new InterruptedException("Index fetch interrupted");
+ throw (InterruptedException)(new InterruptedException("Index fetch interrupted").initCause(e));
} catch (Exception e) {
throw new SolrException(ErrorCode.SERVER_ERROR, "Index fetch failed : ", e);
}