HBASE-21932 Use Runtime.getRuntime().halt to terminate regionserver when abort timeout
This commit is contained in:
parent
e984515b74
commit
e218874e9b
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue