From 3320d5a75abc24f3b389b12c2c807f83152ec19c Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 7 May 2019 16:25:41 +0100 Subject: [PATCH] No need to remove node metadata since we always overwrite it --- .../java/org/elasticsearch/env/NodeEnvironmentIT.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/server/src/test/java/org/elasticsearch/env/NodeEnvironmentIT.java b/server/src/test/java/org/elasticsearch/env/NodeEnvironmentIT.java index 0309058f48860..58458bbdf343e 100644 --- a/server/src/test/java/org/elasticsearch/env/NodeEnvironmentIT.java +++ b/server/src/test/java/org/elasticsearch/env/NodeEnvironmentIT.java @@ -106,15 +106,6 @@ private IllegalStateException expectThrowsOnRestart(CheckedConsumer stateFiles = Files.list(dataPath.resolve(MetaDataStateFormat.STATE_DIR_NAME))) { - for (Path path : stateFiles.collect(Collectors.toList())) { - if (path.getFileName().toString().startsWith(NodeMetaData.FORMAT.getPrefix())) { - IOUtils.rm(path); - } - } - } - } onNodeStopped.accept(dataPaths); } catch (Exception e) { throw new AssertionError(e);