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

[hbase] branch branch-2.0 updated: HBASE-21832 Backport parent "HBASE-21595 Print thread's information and stack traces when RS is aborting forcibly" to branch-2.0/2.1

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

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


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 19e7027  HBASE-21832 Backport parent "HBASE-21595 Print thread's information and stack traces when RS is aborting forcibly" to branch-2.0/2.1
19e7027 is described below

commit 19e7027024e2ae4bf0ac3fe2b4ee45f0900d7a1e
Author: Pankaj <pa...@huawei.com>
AuthorDate: Sun Feb 3 01:48:24 2019 +0530

    HBASE-21832 Backport parent "HBASE-21595 Print thread's information and stack traces when RS is aborting forcibly" to branch-2.0/2.1
    
    Signed-off-by: zhangduo <zh...@apache.org>
---
 .../main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 6a945e5..a0bd845 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
@@ -3691,7 +3691,8 @@ public class HRegionServer extends HasThread implements
   private static class SystemExitWhenAbortTimeout extends TimerTask {
     @Override
     public void run() {
-      LOG.warn("Aborting region server timed out, terminate forcibly...");
+      LOG.warn("Aborting region server timed out, terminating forcibly. Thread dump to stdout.");
+      Threads.printThreadInfo(System.out, "Zombie HRegionServer");
       System.exit(1);
     }
   }