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

[hbase] branch master updated: HBASE-21595, Print thread's information and stack traces when RS is aborting forcibly

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

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


The following commit(s) were added to refs/heads/master by this push:
     new bc0fb66  HBASE-21595, Print thread's information and stack traces when RS is aborting forcibly
bc0fb66 is described below

commit bc0fb66e224c639f5a0b0d5ed940446a667cab7f
Author: Pankaj <pa...@huawei.com>
AuthorDate: Tue Dec 18 01:03:08 2018 +0530

    HBASE-21595, Print thread's information and stack traces when RS is aborting forcibly
---
 .../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 a99ded3..34a6c13 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
@@ -3849,7 +3849,8 @@ public class HRegionServer extends HasThread implements
 
     @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);
     }
   }