asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amo...@apache.org
Subject asterixdb git commit: [NO ISSUE] Avoid sleep, shutdown log manager on halt
Date Thu, 15 Mar 2018 06:15:05 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master c3ee83138 -> 7ffdaba94


[NO ISSUE] Avoid sleep, shutdown log manager on halt

Change-Id: I64749ffd98563099bd68926cd7ca0e697f066baf
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2485
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: abdullah alamoudi <bamousaa@gmail.com>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Contrib: Jenkins <jenkins@fulliautomatix.ics.uci.edu>


Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/7ffdaba9
Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/7ffdaba9
Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/7ffdaba9

Branch: refs/heads/master
Commit: 7ffdaba94ad10e959f64720846a00e17c0979846
Parents: c3ee831
Author: Michael Blow <mblow@apache.org>
Authored: Wed Mar 14 18:47:10 2018 -0700
Committer: Michael Blow <mblow@apache.org>
Committed: Wed Mar 14 23:13:29 2018 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hyracks/util/ExitUtil.java     | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/7ffdaba9/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ExitUtil.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ExitUtil.java
b/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ExitUtil.java
index ec6587e..db5cd13 100644
--- a/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ExitUtil.java
+++ b/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ExitUtil.java
@@ -74,15 +74,10 @@ public class ExitUtil {
         exit(status);
     }
 
-    @SuppressWarnings("squid:S2142") // catch interrupted
     public static void halt(int status) {
         LOGGER.fatal("JVM halting with status " + status + "; bye!", new Throwable("halt
stacktrace"));
-        try {
-            // try to give time for the log to be emitted...
-            Thread.sleep(2000);
-        } catch (InterruptedException e) {
-            // ignore
-        }
+        // try to give time for the log to be emitted...
+        LogManager.shutdown();
         Runtime.getRuntime().halt(status);
     }
 


Mime
View raw message