From 9e9ce025e443547c127b61299f3391bd005b187d Mon Sep 17 00:00:00 2001 From: Krystof Stekovic Date: Tue, 17 Sep 2024 16:23:41 +0200 Subject: [PATCH] [XTF-CORE-581] close Output and Error stream threads after command is done --- core/src/main/java/cz/xtf/core/openshift/CLIUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/cz/xtf/core/openshift/CLIUtils.java b/core/src/main/java/cz/xtf/core/openshift/CLIUtils.java index cd4e7a18..75fd792a 100644 --- a/core/src/main/java/cz/xtf/core/openshift/CLIUtils.java +++ b/core/src/main/java/cz/xtf/core/openshift/CLIUtils.java @@ -44,6 +44,8 @@ public static String executeCommand(Map environmentVariables, St }); int result = p.waitFor(); + // Shutdown the output and error streams + es.shutdown(); if (result == 0) { String commandOutput = out.get();