From 9d12c38f44625bd054bdd6e1d3304df1eeb1b986 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Wed, 30 Sep 2015 20:02:55 +0200 Subject: [PATCH] [TEST] Don't corrupt extraFS files --- .../indices/recovery/RecoverySourceHandlerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/org/elasticsearch/indices/recovery/RecoverySourceHandlerTests.java b/core/src/test/java/org/elasticsearch/indices/recovery/RecoverySourceHandlerTests.java index 7402d09c7d1..77181e8d6a7 100644 --- a/core/src/test/java/org/elasticsearch/indices/recovery/RecoverySourceHandlerTests.java +++ b/core/src/test/java/org/elasticsearch/indices/recovery/RecoverySourceHandlerTests.java @@ -133,7 +133,7 @@ public class RecoverySourceHandlerTests extends ESTestCase { CorruptionUtils.corruptFile(getRandom(), FileSystemUtils.files(tempDir, (p) -> (p.getFileName().toString().equals("write.lock") || - Files.isDirectory(p)) == false)); + p.getFileName().toString().startsWith("extra")) == false)); Store targetStore = newStore(createTempDir(), false); try { handler.sendFiles(store, metas.toArray(new StoreFileMetaData[0]), (md) -> {