SOLR-10376: Catch and log connection loss and session expired exception but rethrow on all other KeeperExceptions

This commit is contained in:
Shalin Shekhar Mangar 2017-04-28 12:09:16 +05:30
parent bb4eb1c2a5
commit 73170ee06c
1 changed files with 2 additions and 0 deletions

View File

@ -200,6 +200,8 @@ public class OverseerTriggerThread implements Runnable, Closeable {
}
}
}, true);
} catch (KeeperException.ConnectionLossException | KeeperException.SessionExpiredException e) {
log.error("OverseerTriggerThread could not talk to ZooKeeper", e);
} catch (KeeperException e) {
log.error("Exception in OverseerTriggerThread", e);
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, e);