Skip to content

Commit dab15e5

Browse files
committed
Fix stopping of old elasticsearch cluster (elastic#81059)
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 1ee6f1e commit dab15e5

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
@@ -132,5 +132,9 @@ public static void main(String[] args) throws IOException {
132132
Path tmp = Files.createTempFile(baseDir, null, null);
133133
Files.write(tmp, Integer.toString(port).getBytes(StandardCharsets.UTF_8));
134134
Files.move(tmp, baseDir.resolve("ports"), StandardCopyOption.ATOMIC_MOVE);
135+
136+
tmp = Files.createTempFile(baseDir, null, null);
137+
Files.write(tmp, Integer.toString(pid).getBytes(StandardCharsets.UTF_8));
138+
Files.move(tmp, baseDir.resolve("pid"), StandardCopyOption.ATOMIC_MOVE);
135139
}
136140
}

0 commit comments

Comments
 (0)