Catch EsRejectedExecException on cluster info reschedule
This commit is contained in:
parent
9787562d27
commit
8b69035fa0
|
@ -237,7 +237,11 @@ public final class InternalClusterInfoService extends AbstractComponent implemen
|
||||||
if (logger.isTraceEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
logger.trace("Scheduling next run for updating cluster info in: {}", updateFrequency.toString());
|
logger.trace("Scheduling next run for updating cluster info in: {}", updateFrequency.toString());
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
threadPool.schedule(updateFrequency, executorName(), new SubmitReschedulingClusterInfoUpdatedJob());
|
threadPool.schedule(updateFrequency, executorName(), new SubmitReschedulingClusterInfoUpdatedJob());
|
||||||
|
} catch (EsRejectedExecutionException ex) {
|
||||||
|
logger.debug("Reschedule cluster info service was rejected", ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!enabled) {
|
if (!enabled) {
|
||||||
// Short-circuit if not enabled
|
// Short-circuit if not enabled
|
||||||
|
|
Loading…
Reference in New Issue