From 658a1310024c898945bda4eb323c2c8bb7bc1dec Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Thu, 2 Apr 2015 05:29:22 +0000 Subject: [PATCH] Log the file name for which checksum can't be read git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1670818 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/solr/handler/ReplicationHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java index 12078d67ae4..3c49448e661 100644 --- a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java +++ b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java @@ -462,7 +462,7 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw long checksum = CodecUtil.retrieveChecksum(in); fileMeta.put(CHECKSUM, checksum); } catch(Exception e) { - LOG.warn("Could not read checksum from index file.", e); + LOG.warn("Could not read checksum from index file: " + file, e); } } @@ -480,7 +480,7 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw try { fileMeta.put(CHECKSUM, CodecUtil.retrieveChecksum(in)); } catch(Exception e) { - LOG.warn("Could not read checksum from index file.", e); + LOG.warn("Could not read checksum from index file: " + infos.getSegmentsFileName(), e); } } }