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

Ingest pipeline processor errors can cause infinite retry #14361

Closed
urso opened this issue Nov 1, 2019 · 4 comments
Closed

Ingest pipeline processor errors can cause infinite retry #14361

urso opened this issue Nov 1, 2019 · 4 comments
Assignees
Labels

Comments

@urso
Copy link

urso commented Nov 1, 2019

If processors fail in Ingest node, a 500 status code "Internal Server Error" is reported for the event at hand. This can be addressed in the ingest node pipeline definition by adding on_failure settings. Although Beats normally do so, users with custom pipelines and not being aware the error might run into an infinite retry in Filebeat.

The bulk API returns a status (and often an error trace) for every single event being send. We should have a look if there is some information in the response, that allows us to detect an issue with the Ingest Node pipeline and drop the event.

For reference: elastic/apm-server#2880

@simitt
Copy link
Contributor

simitt commented Nov 1, 2019

This seems to be unexpected behavior on the ES side, see elastic/elasticsearch#48803

@jasontedor
Copy link
Member

We should have a look if there is some information in the response, that allows us to detect an issue with the Ingest Node pipeline and drop the event.

This sounds like a workaround that would accumulate some technical debt. As @simitt points out, it’s an upstream issue that we treat all client errors as server errors. We’re working on a fix. See elastic/elasticsearch#48810.

@urso
Copy link
Author

urso commented Nov 12, 2019

SGTM. Thanks @jasontedor

@jasontedor
Copy link
Member

The upstream fix will be available in the 7.5.0 release.

@urso urso closed this as completed Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants