Skip to content

Commit 7422e29

Browse files
committed
ingest applier throws exceptions
1 parent 73320f0 commit 7422e29

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

server/src/main/java/org/elasticsearch/ingest/IngestService.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
package org.elasticsearch.ingest;
2121

22+
import org.apache.logging.log4j.LogManager;
23+
import org.apache.logging.log4j.Logger;
2224
import org.elasticsearch.ElasticsearchParseException;
2325
import org.elasticsearch.ExceptionsHelper;
2426
import org.elasticsearch.ResourceNotFoundException;
@@ -69,6 +71,8 @@ public class IngestService implements ClusterStateApplier {
6971

7072
public static final String NOOP_PIPELINE_NAME = "_none";
7173

74+
private static final Logger logger = LogManager.getLogger(IngestService.class);
75+
7276
private final ClusterService clusterService;
7377
private final ScriptService scriptService;
7478
private final Map<String, Processor.Factory> processorFactories;
@@ -256,7 +260,11 @@ Map<String, Pipeline> pipelines() {
256260
public void applyClusterState(final ClusterChangedEvent event) {
257261
ClusterState state = event.state();
258262
Map<String, Pipeline> originalPipelines = pipelines;
259-
innerUpdatePipelines(event.previousState(), state);
263+
try {
264+
innerUpdatePipelines(event.previousState(), state);
265+
} catch (ElasticsearchParseException e) {
266+
logger.warn("failed to update ingest pipelines", e);
267+
}
260268
//pipelines changed, so add the old metrics to the new metrics
261269
if (originalPipelines != pipelines) {
262270
pipelines.forEach((id, pipeline) -> {

0 commit comments

Comments
 (0)