HBASE-16350 Undo server abort from HBASE-14968

This commit is contained in:
Enis Soztutar 2016-08-03 19:37:58 -07:00
parent 39db239d4e
commit 81b06b3bdd
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ public abstract class EventHandler implements Runnable, Comparable<Runnable> {
protected void handleException(Throwable t) {
String msg = "Caught throwable while processing event " + eventType;
LOG.error(msg, t);
if (server != null) {
if (server != null && (t instanceof Error || t instanceof RuntimeException)) {
server.abort(msg, t);
}
}