HBASE-21932 Use Runtime.getRuntime().halt to terminate regionserver when abort timeout
This commit is contained in:
parent
ff49338d20
commit
fd74857d24
@ -3603,9 +3603,11 @@ public class HRegionServer extends HasThread implements
|
|||||||
private static class SystemExitWhenAbortTimeout extends TimerTask {
|
private static class SystemExitWhenAbortTimeout extends TimerTask {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
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");
|
Threads.printThreadInfo(System.out, "Zombie HRegionServer");
|
||||||
System.exit(1);
|
Runtime.getRuntime().halt(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user