You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zg...@apache.org on 2019/02/20 07:56:06 UTC

[hbase] branch branch-2 updated: HBASE-21932 Use Runtime.getRuntime().halt to terminate regionserver when abort timeout

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

zghao pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new bcbbfae  HBASE-21932 Use Runtime.getRuntime().halt to terminate regionserver when abort timeout
bcbbfae is described below

commit bcbbfaebc4cc5ab65d940110aef523e97bf7b52c
Author: Guanghao Zhang <zg...@apache.org>
AuthorDate: Tue Feb 19 17:37:57 2019 +0800

    HBASE-21932 Use Runtime.getRuntime().halt to terminate regionserver when abort timeout
---
 .../java/org/apache/hadoop/hbase/regionserver/HRegionServer.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
index fea0a8f..6ef6021 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
@@ -3789,9 +3789,11 @@ public class HRegionServer extends HasThread implements
 
     @Override
     public void run() {
-      LOG.warn("Aborting region server timed out, terminating forcibly. Thread dump to stdout.");
+      LOG.warn("Aborting region server timed out, terminating forcibly" +
+          " and does not wait for any running shutdown hooks or finalizers to finish their work." +
+          " Thread dump to stdout.");
       Threads.printThreadInfo(System.out, "Zombie HRegionServer");
-      System.exit(1);
+      Runtime.getRuntime().halt(1);
     }
   }
 }