mirror of https://github.com/apache/lucene.git
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:
parent
264dd48437
commit
e61acfdb0d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue