From 859ed0157fcdc47089938539088b4a622c02fd50 Mon Sep 17 00:00:00 2001 From: Gao Binlong Date: Mon, 2 Dec 2024 13:42:40 +0800 Subject: [PATCH] Modify the warning message Signed-off-by: Gao Binlong --- .../resources/rest-api-spec/test/update/100_ingest_pipeline.yml | 2 +- .../org/opensearch/action/update/TransportUpdateAction.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/update/100_ingest_pipeline.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/update/100_ingest_pipeline.yml index 56501270d6750..480b3ae990cad 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/update/100_ingest_pipeline.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/update/100_ingest_pipeline.yml @@ -86,7 +86,7 @@ teardown: - do: allowed_warnings: - - "the index [test_2] has a default ingest pipeline or a final ingest pipeline, but performing update operation with ingest pipeline causes unexpected result, this support will be removed in 3.0.0" + - "the index [test_2] has a default ingest pipeline or a final ingest pipeline, the support of the ingest pipelines for update operation causes unexpected result and will be removed in 3.0.0" update: index: test_2 id: 1 diff --git a/server/src/main/java/org/opensearch/action/update/TransportUpdateAction.java b/server/src/main/java/org/opensearch/action/update/TransportUpdateAction.java index 978e833a701ce..52378142ae1dd 100644 --- a/server/src/main/java/org/opensearch/action/update/TransportUpdateAction.java +++ b/server/src/main/java/org/opensearch/action/update/TransportUpdateAction.java @@ -285,7 +285,7 @@ protected void shardOperation(final UpdateRequest request, final ActionListener< "update_operation_with_ingest_pipeline", "the index [" + indexRequest.index() - + "] has a default ingest pipeline or a final ingest pipeline, but performing update operation with ingest pipeline causes unexpected result, this support will be removed in 3.0.0" + + "] has a default ingest pipeline or a final ingest pipeline, the support of the ingest pipelines for update operation causes unexpected result and will be removed in 3.0.0" ); } client.bulk(toSingleItemBulkRequest(indexRequest), wrapBulkResponse(ActionListener.wrap(response -> {