From e61acfdb0d5961b79fddc6302c7b3fdd6230a654 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Sun, 24 Nov 2013 06:06:32 +0000 Subject: [PATCH] SOLR-5493 git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1544925 13f79535-47bb-0310-9956-ffa450edef68 --- solr/core/src/java/org/apache/solr/handler/SnapPuller.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solr/core/src/java/org/apache/solr/handler/SnapPuller.java b/solr/core/src/java/org/apache/solr/handler/SnapPuller.java index b88d7e8a3ce..12ca0ddca19 100644 --- a/solr/core/src/java/org/apache/solr/handler/SnapPuller.java +++ b/solr/core/src/java/org/apache/solr/handler/SnapPuller.java @@ -788,6 +788,8 @@ public class SnapPuller { for (Map file : filesToDownload) { if (dir.fileExists((String) file.get(NAME)) && dir.fileLength((String) file.get(NAME)) != (Long) file.get(SIZE)) { + LOG.warn("File " + file.get(NAME) + " expected to be " + file.get(SIZE) + + " while it is " + dir.fileLength((String) file.get(NAME))); // file exists and size is different, therefore we must assume // corrupted index return true;