diff --git a/core/src/test/java/org/elasticsearch/test/ESTestCase.java b/core/src/test/java/org/elasticsearch/test/ESTestCase.java index e172ea2cde4..8823e834c18 100644 --- a/core/src/test/java/org/elasticsearch/test/ESTestCase.java +++ b/core/src/test/java/org/elasticsearch/test/ESTestCase.java @@ -597,6 +597,10 @@ public abstract class ESTestCase extends LuceneTestCase { if (Files.exists(path)) { try (DirectoryStream stream = Files.newDirectoryStream(path)) { for (Path file : stream) { + // Skip files added by Lucene's ExtraFS + if (file.getFileName().toString().startsWith("extra")) { + continue; + } logger.info("--> found file: [{}]", file.toAbsolutePath().toString()); if (Files.isDirectory(file)) { assertPathHasBeenCleared(file);