diff --git a/core/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java b/core/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java index 9faa52bdb68..08c2f8773fa 100644 --- a/core/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java +++ b/core/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java @@ -875,6 +875,9 @@ public class IndexShardTests extends ESSingleNodeTestCase { try { Lucene.cleanLuceneIndex(targetStore.directory()); for (String file : sourceStore.directory().listAll()) { + if (file.equals("write.lock") || file.startsWith("extra")) { + continue; + } targetStore.directory().copyFrom(sourceStore.directory(), file, file, IOContext.DEFAULT); } } catch (Exception ex) {