You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by si...@apache.org on 2021/10/29 05:58:13 UTC

[atlas] branch master updated: ATLAS-4462: Changed the wait time for soft kill

This is an automated email from the ASF dual-hosted git repository.

sidmishra pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new 88b7d33  ATLAS-4462: Changed the wait time for soft kill
88b7d33 is described below

commit 88b7d336a99d7a64aaca565dbaf73910c7d54308
Author: Sidharth Mishra <si...@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 <si...@apache.org>
---
 .../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);