Skip to content

Commit

Permalink
Fix stopping of old elasticsearch cluster (#81059) (#81139)
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 8ea0930 commit b6f463f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,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 b6f463f

Please sign in to comment.