From 367e66b01f544ff1f08284bc847714ef87fd18a9 Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Sat, 22 Mar 2014 19:29:04 +0000 Subject: [PATCH] SOLR-5895: JavaBinLoader hides IOExceptions git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1580290 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 2 ++ .../src/java/org/apache/solr/handler/loader/JavabinLoader.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 442166d87a9..f1b45d59c27 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -297,6 +297,8 @@ Bug Fixes Includes a few minor bug fixes. (Mark Miller) +* SOLR-5895: JavaBinLoader hides IOExceptions. (Mike Sokolov via shalin) + ================== 4.7.0 ================== Versions of Major Components diff --git a/solr/core/src/java/org/apache/solr/handler/loader/JavabinLoader.java b/solr/core/src/java/org/apache/solr/handler/loader/JavabinLoader.java index 64b851f786d..76cac60c39c 100644 --- a/solr/core/src/java/org/apache/solr/handler/loader/JavabinLoader.java +++ b/solr/core/src/java/org/apache/solr/handler/loader/JavabinLoader.java @@ -96,7 +96,7 @@ public class JavabinLoader extends ContentStreamLoader { processor.processAdd(addCmd); addCmd.clear(); } catch (IOException e) { - throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "ERROR adding document " + document); + throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "ERROR adding document " + document, e); } } };