mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
adapt error message when node.ingest is set to false and we fail executing a pipeline
This commit is contained in:
parent
ae69d46f92
commit
8675784e3f
@ -52,7 +52,7 @@ public final class IngestDisabledActionFilter implements ActionFilter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void failRequest(String pipelineId) {
|
private static void failRequest(String pipelineId) {
|
||||||
throw new IllegalArgumentException("ingest plugin is disabled, cannot execute pipeline with id [" + pipelineId + "]");
|
throw new IllegalArgumentException("node.ingest is set to false, cannot execute pipeline with id [" + pipelineId + "]");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@
|
|||||||
---
|
---
|
||||||
"Test index api with pipeline id fails when node.ingest is set to false":
|
"Test index api with pipeline id fails when node.ingest is set to false":
|
||||||
- do:
|
- do:
|
||||||
catch: /ingest plugin is disabled, cannot execute pipeline with id \[my_pipeline_1\]/
|
catch: /node.ingest is set to false, cannot execute pipeline with id \[my_pipeline_1\]/
|
||||||
index:
|
index:
|
||||||
index: test
|
index: test
|
||||||
type: test
|
type: test
|
||||||
@ -94,7 +94,7 @@
|
|||||||
---
|
---
|
||||||
"Test bulk api with pipeline id fails when node.ingest is set to false":
|
"Test bulk api with pipeline id fails when node.ingest is set to false":
|
||||||
- do:
|
- do:
|
||||||
catch: /ingest plugin is disabled, cannot execute pipeline with id \[my_pipeline_1\]/
|
catch: /node.ingest is set to false, cannot execute pipeline with id \[my_pipeline_1\]/
|
||||||
bulk:
|
bulk:
|
||||||
pipeline: "my_pipeline_1"
|
pipeline: "my_pipeline_1"
|
||||||
body:
|
body:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user