Skip to content

Commit 3320d5a

Browse files
committed
No need to remove node metadata since we always overwrite it
1 parent e805ec3 commit 3320d5a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

server/src/test/java/org/elasticsearch/env/NodeEnvironmentIT.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,6 @@ private IllegalStateException expectThrowsOnRestart(CheckedConsumer<Path[], Exce
106106
@Override
107107
public Settings onNodeStopped(String nodeName) {
108108
try {
109-
for (Path dataPath : dataPaths) {
110-
try (Stream<Path> stateFiles = Files.list(dataPath.resolve(MetaDataStateFormat.STATE_DIR_NAME))) {
111-
for (Path path : stateFiles.collect(Collectors.toList())) {
112-
if (path.getFileName().toString().startsWith(NodeMetaData.FORMAT.getPrefix())) {
113-
IOUtils.rm(path);
114-
}
115-
}
116-
}
117-
}
118109
onNodeStopped.accept(dataPaths);
119110
} catch (Exception e) {
120111
throw new AssertionError(e);

0 commit comments

Comments
 (0)