HBASE-21932 Use Runtime.getRuntime().halt to terminate regionserver when abort timeout

This commit is contained in:
Guanghao Zhang 2019-02-19 17:37:57 +08:00
parent e984515b74
commit e218874e9b
1 changed files with 4 additions and 2 deletions

View File

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