Also ignore rejected execution exception when installing index template

This commit is contained in:
Martijn van Groningen 2016-01-07 15:25:35 +01:00
parent c44b83dc29
commit 0d70d92aa0

View File

@ -156,13 +156,17 @@ public class IngestBootstrapper extends AbstractLifecycleComponent implements Cl
} }
void forkAndInstallIngestIndexTemplate() { void forkAndInstallIngestIndexTemplate() {
threadPool.executor(ThreadPool.Names.GENERIC).execute(() -> { try {
try { threadPool.executor(ThreadPool.Names.GENERIC).execute(() -> {
installIngestIndexTemplate(); try {
} catch (IOException e) { installIngestIndexTemplate();
logger.debug("Failed to install .ingest index template", e); } catch (IOException e) {
} logger.debug("Failed to install .ingest index template", e);
}); }
});
} catch (RejectedExecutionException e) {
logger.debug("async fork and install template failed", e);
}
} }
void installIngestIndexTemplate() throws IOException { void installIngestIndexTemplate() throws IOException {