HBASE-16350 Undo server abort from HBASE-14968

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

View File

@ -226,7 +226,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);
}
}