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

fix filter plugin error with kubernetes_meta_reduce #325

Merged
merged 1 commit into from
Dec 2, 2019

Conversation

samjsong
Copy link
Contributor

@samjsong samjsong commented Dec 2, 2019

Description

Unfortunately we found that if kubernetes_meta is set to false and kubernetes_meta_reduce is set to true at the same time, this plugin tries to delete keys from record["kubernetes"], which has been deleted previously and is therefore nil.

At the very least this spams fluentd logs with the error, which is self collected and creates a nasty loop.

At worst, we believe this may have caused container logs to be dropped due to the unhandled error in this plugin. We should confirm that behavior, and in general handle errors more gracefully in all of our plugins to ensure this sort of issue does not occur again.

Testing performed
  • ci/build.sh
  • Redeploy fluentd and fluentd-events pods
  • Confirm events, logs, and metrics are coming in

Copy link
Contributor

@vsinghal13 vsinghal13 left a comment

Choose a reason for hiding this comment

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

LGTM

@samjsong samjsong merged commit 203dfed into master Dec 2, 2019
@samjsong samjsong deleted the ssong-error-handling1 branch December 2, 2019 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants