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

Handle errors when evaluating if conditions in processors #52543

Merged
merged 2 commits into from
Feb 21, 2020

Conversation

danhermann
Copy link
Contributor

@danhermann danhermann commented Feb 19, 2020

In certain ingest pipelines, any failures when evaluating the condition for an if clause would result in partial execution of both the success and failure handlers for the processor. This manifested as a double decrement of the ingestCurrent processor metric which, once it went negative, could no longer be serialized as a non-negative long.

Fixes #52339.

@danhermann danhermann added >bug :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP labels Feb 19, 2020
@elasticmachine
Copy link
Collaborator

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

@danhermann
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/2

@danhermann
Copy link
Contributor Author

@elasticmachine update branch

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@danhermann danhermann merged commit d793036 into elastic:master Feb 21, 2020
@danhermann danhermann deleted the 52339_ingest_stats branch February 21, 2020 13:44
danhermann added a commit to danhermann/elasticsearch that referenced this pull request Feb 21, 2020
@ywelsch
Copy link
Contributor

ywelsch commented Feb 27, 2020

The backport PR seems to have been merged. I'm therefore removing the backport pending label here. Please shout if this is incorrect

@danhermann
Copy link
Contributor Author

I just got the 7.x backport in which was the only one remaining.

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.1 v7.7.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate and Fix Serialization Issue with IngestStats
5 participants