From 0da821de8e7fc63a60dd416e1f8f54efcdf3c168 Mon Sep 17 00:00:00 2001 From: Keith Massey Date: Fri, 13 Oct 2023 16:01:37 -0500 Subject: [PATCH] Sending an index name to DocumentParsingObserver that is not ever null --- .../src/main/java/org/elasticsearch/ingest/IngestService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/ingest/IngestService.java b/server/src/main/java/org/elasticsearch/ingest/IngestService.java index cbc985ea4215c..e4673e6ccbe72 100644 --- a/server/src/main/java/org/elasticsearch/ingest/IngestService.java +++ b/server/src/main/java/org/elasticsearch/ingest/IngestService.java @@ -722,7 +722,8 @@ public void onFailure(Exception e) { executePipelines(pipelines, indexRequest, ingestDocument, documentListener); indexRequest.setPipelinesHaveRun(); - documentParsingObserver.setIndexName(indexRequest.index()); + assert actionRequest.index() != null; + documentParsingObserver.setIndexName(actionRequest.index()); documentParsingObserver.close(); i++;