Skip to content

Conversation

@gaobinlong
Copy link
Contributor

This PR relates to #52833.

The main changes are:

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

@markharwood markharwood added the :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP label Feb 28, 2020
@elasticmachine
Copy link
Collaborator

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

@danhermann danhermann self-requested a review February 28, 2020 15:19
@danhermann
Copy link
Contributor

@elasticmachine update branch

Copy link
Contributor

@danhermann danhermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaobinlong, thank you for fixing this bug. I made a couple minor suggestions for the error messages. Otherwise, this looks great and I'll get it merged in.

@danhermann danhermann added the >bug label Mar 2, 2020
@gaobinlong
Copy link
Contributor Author

Thanks @danhermann and @martijnvg, I have made a new commit which contains some changes following your comment. Can you have a look on that?

@danhermann
Copy link
Contributor

@elasticmachine update branch

@danhermann
Copy link
Contributor

@elasticmachine ok to test

@danhermann
Copy link
Contributor

Thanks for the fix, @gaobinlong! I'll get this merged now.

@danhermann danhermann merged commit 7ba94d8 into elastic:master Mar 11, 2020
danhermann pushed a commit to danhermann/elasticsearch that referenced this pull request Mar 11, 2020
danhermann pushed a commit to danhermann/elasticsearch that referenced this pull request Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP v7.6.2 v7.7.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants