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

No other processors should be executed after on_failure is called #19545

Merged
merged 1 commit into from
Jul 21, 2016

Conversation

talevy
Copy link
Contributor

@talevy talevy commented Jul 21, 2016

Huge Fix

After debugging some use-cases with @BigFunger, we realized some unintended behavior leaked into the product.

not sure how this got through, but on_failure processors should be the end-all processors. The original pipeline should not be run. This was never the intention.

@talevy talevy added >bug :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP v5.0.0-alpha5 labels Jul 21, 2016
@@ -19,6 +19,11 @@
"target_field" : "date",
"formats" : ["yyyy"]
}
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

test verifies that uppercase processor is not executed after the date processor failed

@martijnvg
Copy link
Member

Wow, a big side effect of one forgotten break statement...
Good catch, too bad we didn't have tests with pipelines have additional processors after on failure and verifying that these processors are not executed.

LGTM!

@talevy
Copy link
Contributor Author

talevy commented Jul 21, 2016

yeah, all our tests only verify that the processors that did run, ran well. We never checked the effects of non-running processors

@talevy talevy merged commit 19e7b1c into elastic:master Jul 21, 2016
@talevy talevy deleted the ingest-give-me-a-break branch July 21, 2016 21:27
@clintongormley clintongormley changed the title fix: no other processors should be executed after on_failure is called No other processors should be executed after on_failure is called Jul 26, 2016
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 v5.0.0-alpha5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants