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 a2bae01697a..a36a0420493 100644 --- a/solr/core/src/java/org/apache/solr/handler/SnapPuller.java +++ b/solr/core/src/java/org/apache/solr/handler/SnapPuller.java @@ -584,7 +584,7 @@ public class SnapPuller { } String[] allFiles = indexDir.listAll(); for (String file : allFiles) { - if (!file.equals(segmentsFileName) && !currentFiles.contains(file)) { + if (!file.equals(segmentsFileName) && !currentFiles.contains(file) && !file.endsWith(".lock")) { LOG.info("Found unused file: " + file); return true; }