mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Also ignore rejected execution exception when installing index template
This commit is contained in:
parent
c44b83dc29
commit
0d70d92aa0
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user