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 <zhangduo@apache.org>
This commit is contained in:
Pankaj 2019-02-03 01:48:24 +05:30 committed by zhangduo
parent f26b73e618
commit 1ee57edc72
1 changed files with 2 additions and 1 deletions

View File

@ -3774,7 +3774,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);
}
}