Also ignore rejected execution exception when installing index template
This commit is contained in:
parent
c44b83dc29
commit
0d70d92aa0
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue