SOLR-5493

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1544925 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2013-11-24 06:06:32 +00:00
parent 264dd48437
commit e61acfdb0d
1 changed files with 2 additions and 0 deletions

View File

@ -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;