Apache Solr open-source search software
SOLR-15377: Improve IndexFetcher's exception logging upon replication errors. (#99)
Torsten Bøgh Köster4dae203caf9e
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 73b91e36dde..e2ebaecb7bb 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 tobe 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.javaindex c136927dcca..de563ed9d63 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);}