From ef796e589c2e234eb0b4e3176964a1bb199ee037 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Thu, 13 Aug 2020 10:20:18 -0700 Subject: [PATCH] Fix typo in Taskkill in reaper (#61076) The reaper is used only when spawned processes by the build like testclusters or vagrant are left behind in a failed build. When this occurs on Windows, the Taskkill command is used. However, there was a typo in the command name. Since the reaper is for edgecases and mostly protection for local builds (CI uses immutable hosts), this has been broken since its inception. closes #60503 --- .../src/main/java/org/elasticsearch/gradle/ReaperService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/java/org/elasticsearch/gradle/ReaperService.java b/buildSrc/src/main/java/org/elasticsearch/gradle/ReaperService.java index 5970c4018a4..c4c171ac486 100644 --- a/buildSrc/src/main/java/org/elasticsearch/gradle/ReaperService.java +++ b/buildSrc/src/main/java/org/elasticsearch/gradle/ReaperService.java @@ -61,7 +61,7 @@ public class ReaperService { */ public void registerPid(String serviceId, long pid) { String[] killPidCommand = OS.conditional() - .onWindows(() -> new String[] { "Taskill", "/F", "/PID", String.valueOf(pid) }) + .onWindows(() -> new String[] { "Taskkill", "/F", "/PID", String.valueOf(pid) }) .onUnix(() -> new String[] { "kill", "-9", String.valueOf(pid) }) .supply(); registerCommand(serviceId, killPidCommand);