Skip to content

Commit b6f463f

Browse files
authored
Fix stopping of old elasticsearch cluster (#81059) (#81139)
due to not exposing the PID of the underlaying cluster the Fixture Stop task was skipped, leaving running clusters behind after the build finished
1 parent 8ea0930 commit b6f463f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/fixtures/old-elasticsearch/src/main/java/oldes/OldElasticsearch.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,9 @@ public static void main(String[] args) throws IOException {
121121
Path tmp = Files.createTempFile(baseDir, null, null);
122122
Files.write(tmp, Integer.toString(port).getBytes(StandardCharsets.UTF_8));
123123
Files.move(tmp, baseDir.resolve("ports"), StandardCopyOption.ATOMIC_MOVE);
124+
125+
tmp = Files.createTempFile(baseDir, null, null);
126+
Files.write(tmp, Integer.toString(pid).getBytes(StandardCharsets.UTF_8));
127+
Files.move(tmp, baseDir.resolve("pid"), StandardCopyOption.ATOMIC_MOVE);
124128
}
125129
}

0 commit comments

Comments
 (0)