This is an automated email from the ASF dual-hosted git repository. sidmishra pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-2.0 by this push: new fe97ac7 ATLAS-4462: Changed the wait time for soft kill fe97ac7 is described below commit fe97ac7f84f29b100df2c9d87cdc016fb3a84e97 Author: Sidharth Mishra <sidharthkmis...@gmail.com> AuthorDate: Thu Oct 28 22:50:58 2021 -0700 ATLAS-4462: Changed the wait time for soft kill Signed-off-by: Sidharth Mishra <sidmis...@apache.org> (cherry picked from commit 88b7d336a99d7a64aaca565dbaf73910c7d54308) --- .../src/main/java/org/apache/atlas/util/CommandHandlerUtility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notification/src/main/java/org/apache/atlas/util/CommandHandlerUtility.java b/notification/src/main/java/org/apache/atlas/util/CommandHandlerUtility.java index 13ee786..65d70da 100644 --- a/notification/src/main/java/org/apache/atlas/util/CommandHandlerUtility.java +++ b/notification/src/main/java/org/apache/atlas/util/CommandHandlerUtility.java @@ -34,7 +34,7 @@ public class CommandHandlerUtility { private static final String SHELL_CMD_OPTION = "-c"; private static final String FIND_PROCESS_ID_CMD_FORMAT = "lsof -i:%s | tail -n 1 | tr -s ' ' | cut -d' ' -f2"; private static final String KILL_PROCESS_CMD_FORMAT = "kill %s %s" ; - private static final int SLEEP_AFTER_SOFT_KILL_IN_MS = 10000; + private static final int SLEEP_AFTER_SOFT_KILL_IN_MS = 4000; public static void tryKillingProcessUsingPort(int port, boolean forceKill) { String processID = findProcessIdUsingPort(port);