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

This commit is contained in:
Guanghao Zhang 2019-02-20 16:01:26 +08:00
parent ff49338d20
commit fd74857d24

View File

@ -3603,9 +3603,11 @@ public class HRegionServer extends HasThread implements
private static class SystemExitWhenAbortTimeout extends TimerTask {
@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);
}
}
}