Skip to content

Apache Lucene open-source search software

SOLR-5493

Noble Paule61acfdb0d59
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<String, Object> 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;