mirror of https://github.com/apache/lucene.git
SOLR-7281: Improve 'best effort', we don't want this best effort method to easily throw exceptions.
This commit is contained in:
parent
a5accccbfc
commit
8299b00868
|
@ -2496,18 +2496,11 @@ public final class ZkController {
|
|||
ZkStateReader.NODE_NAME_PROP, nodeName);
|
||||
try {
|
||||
Overseer.getInQueue(getZkClient()).offer(Utils.toJSON(m));
|
||||
} catch (KeeperException e) {
|
||||
log.info("Could not publish node as down: " + e.getMessage());
|
||||
} catch (RuntimeException e) {
|
||||
Throwable rootCause = SolrException.getRootCause(e);
|
||||
if (rootCause instanceof KeeperException) {
|
||||
log.info("Could not publish node as down: " + e.getMessage());
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
Thread.interrupted();
|
||||
log.info("", e);
|
||||
log.info("Publish node as down was interrupted.");
|
||||
} catch (Exception e) {
|
||||
log.info("Could not publish node as down: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue