drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jacq...@apache.org
Subject [2/3] drill git commit: DRILL-1662: Decrease drillbit kill -9 timeout in shutdown script to 120 seconds
Date Tue, 12 May 2015 22:44:04 GMT
DRILL-1662: Decrease drillbit kill -9 timeout in shutdown script to 120 seconds


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/720db09b
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/720db09b
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/720db09b

Branch: refs/heads/master
Commit: 720db09b899d65781c3cc83f57094d42ed5c6c8a
Parents: da70b63
Author: rinukonda <rinukonda@maprtech.com>
Authored: Fri May 8 13:42:38 2015 -0700
Committer: Jacques Nadeau <jacques@apache.org>
Committed: Tue May 12 14:09:00 2015 -0700

----------------------------------------------------------------------
 distribution/src/resources/drillbit.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/720db09b/distribution/src/resources/drillbit.sh
----------------------------------------------------------------------
diff --git a/distribution/src/resources/drillbit.sh b/distribution/src/resources/drillbit.sh
index e250c0d..2b324ad 100755
--- a/distribution/src/resources/drillbit.sh
+++ b/distribution/src/resources/drillbit.sh
@@ -28,7 +28,7 @@
 #   DRILL_IDENT_STRING   A string representing this instance of drillbit. $USER by default
 #   DRILL_NICENESS The scheduling priority for daemons. Defaults to 0.
 #   DRILL_STOP_TIMEOUT  Time, in seconds, after which we kill -9 the server if it has not
stopped.
-#                        Default 1200 seconds.
+#                        Default 120 seconds.
 #
 # Modelled after $HADOOP_HOME/bin/hadoop-daemon.sh
 
@@ -61,8 +61,8 @@ waitForProcessEnd() {
    do
      echo -n "."
      sleep 1;
-     # if process persists more than $DRILL_STOP_TIMEOUT (default 1200 sec) no mercy
-     if [ $(( `date +%s` - $processedAt )) -gt ${DRILL_STOP_TIMEOUT:-1200} ]; then
+     # if process persists more than $DRILL_STOP_TIMEOUT (default 120 sec) no mercy
+     if [ $(( `date +%s` - $processedAt )) -gt ${DRILL_STOP_TIMEOUT:-120} ]; then
        break;
      fi
    done


Mime
View raw message