Skip to content

Commit

Permalink
Fix stopping of old elasticsearch cluster (#81059)
Browse files Browse the repository at this point in the history
due to not exposing the PID of the underlaying cluster the Fixture Stop task
was skipped, leaving running clusters behind after the build finished
  • Loading branch information
breskeby authored Nov 30, 2021
1 parent 5c43302 commit c2b6284
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,9 @@ public static void main(String[] args) throws IOException {
Path tmp = Files.createTempFile(baseDir, null, null);
Files.write(tmp, Integer.toString(port).getBytes(StandardCharsets.UTF_8));
Files.move(tmp, baseDir.resolve("ports"), StandardCopyOption.ATOMIC_MOVE);

tmp = Files.createTempFile(baseDir, null, null);
Files.write(tmp, Integer.toString(pid).getBytes(StandardCharsets.UTF_8));
Files.move(tmp, baseDir.resolve("pid"), StandardCopyOption.ATOMIC_MOVE);
}
}

0 comments on commit c2b6284

Please sign in to comment.