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

Don't stop parsing after statsd parsing error #9423

Merged
merged 1 commit into from Jun 24, 2021

Conversation

blamarvt
Copy link
Contributor

Required for all PRs:

  • Updated associated README.md.
  • Wrote appropriate unit tests.

I marked off the two above criteria because I don't believe this requires a README.md update and I don't think reliable unit tests will be easy to implement since Statsd.parser() doesn't provide negative feedback upon a parser error anymore. I'm open to other ways to solve this though!

resolves #9422

This fixes an issue where statsd stats would stop getting processed because malformed stats would cause the parser to return. Malformed stats should be logged but they shouldn't cause parsing to stop.

@telegraf-tiger
Copy link
Contributor

Thanks so much for the pull request!
🤝 ✒️ Just a reminder that the CLA has not yet been signed, and we'll need it before merging. Please sign the CLA when you get a chance, then post a comment here saying !signed-cla

@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Jun 23, 2021
@blamarvt
Copy link
Contributor Author

!signed-cla

Copy link
Contributor

@sspaink sspaink left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for fixing this so quickly.

@sspaink sspaink added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Jun 23, 2021
@sspaink sspaink requested a review from reimda June 24, 2021 16:51
Copy link
Contributor

@reimda reimda left a comment

Choose a reason for hiding this comment

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

Looks good to me

@reimda reimda merged commit c6c3efd into influxdata:master Jun 24, 2021
reimda pushed a commit that referenced this pull request Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Telegraf 1.19 - statsd plugin stops processing after receiving malformed stats
3 participants