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
1 changed files with 11 additions and 7 deletions

View File

@ -156,6 +156,7 @@ public class IngestBootstrapper extends AbstractLifecycleComponent implements Cl
} }
void forkAndInstallIngestIndexTemplate() { void forkAndInstallIngestIndexTemplate() {
try {
threadPool.executor(ThreadPool.Names.GENERIC).execute(() -> { threadPool.executor(ThreadPool.Names.GENERIC).execute(() -> {
try { try {
installIngestIndexTemplate(); installIngestIndexTemplate();
@ -163,6 +164,9 @@ public class IngestBootstrapper extends AbstractLifecycleComponent implements Cl
logger.debug("Failed to install .ingest index template", 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 {