Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.6] Fix ingest pipeline _simulate api with empty docs never returns a response #53436

Conversation

danhermann
Copy link
Contributor

This PR relates to #52833.

The main changes are:

Return 400 status code with error message if the docs array is empty.
Return 400 status code with error message if the element in docs array is not a map.
Check whether the docs array is empty again when executing the pipeline simulate, avoiding no response.
Add some test code for the changes.

Backport of #52937

@danhermann danhermann added >bug :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP backport v7.6.2 labels Mar 11, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Ingest)

@danhermann danhermann merged commit 3c954b5 into elastic:7.6 Mar 11, 2020
@danhermann danhermann deleted the backport_52937_pipeline_simulate_with_empty_docs branch March 11, 2020 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport >bug :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP v7.6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants