HBASE-16350 Undo server abort from HBASE-14968
This commit is contained in:
parent
39db239d4e
commit
81b06b3bdd
|
@ -186,7 +186,7 @@ public abstract class EventHandler implements Runnable, Comparable<Runnable> {
|
||||||
protected void handleException(Throwable t) {
|
protected void handleException(Throwable t) {
|
||||||
String msg = "Caught throwable while processing event " + eventType;
|
String msg = "Caught throwable while processing event " + eventType;
|
||||||
LOG.error(msg, t);
|
LOG.error(msg, t);
|
||||||
if (server != null) {
|
if (server != null && (t instanceof Error || t instanceof RuntimeException)) {
|
||||||
server.abort(msg, t);
|
server.abort(msg, t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue