mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 14:26:27 +00:00
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()) {
|
||||
logger.trace("Scheduling next run for updating cluster info in: {}", updateFrequency.toString());
|
||||
}
|
||||
try {
|
||||
threadPool.schedule(updateFrequency, executorName(), new SubmitReschedulingClusterInfoUpdatedJob());
|
||||
} catch (EsRejectedExecutionException ex) {
|
||||
logger.debug("Reschedule cluster info service was rejected", ex);
|
||||
}
|
||||
}
|
||||
if (!enabled) {
|
||||
// Short-circuit if not enabled
|
||||
|
Loading…
x
Reference in New Issue
Block a user