You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2015/04/02 07:29:22 UTC

svn commit: r1670818 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java

Author: shalin
Date: Thu Apr  2 05:29:22 2015
New Revision: 1670818

URL: http://svn.apache.org/r1670818
Log:
Log the file name for which checksum can't be read

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java?rev=1670818&r1=1670817&r2=1670818&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java Thu Apr  2 05:29:22 2015
@@ -462,7 +462,7 @@ public class ReplicationHandler extends
               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
           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);
           }
         }
       }