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 metric splitting edge cases #2896

Merged
merged 1 commit into from
Jun 7, 2017
Merged

Fix metric splitting edge cases #2896

merged 1 commit into from
Jun 7, 2017

Conversation

danielnelson
Copy link
Contributor

Additional fix for #2862.

Metrics needing one extra byte to fit the output buffer would not be split, so we would emit lines without a line ending. Metrics which overflowed by exactly one field length would be split one field too late, causing truncated fields.

Required for all PRs:

  • Has appropriate unit tests.

@danielnelson danielnelson added this to the 1.3.2 milestone Jun 7, 2017
@danielnelson danielnelson merged commit a275e67 into master Jun 7, 2017
@danielnelson danielnelson deleted the fix-metric-split branch June 7, 2017 20:37
danielnelson added a commit that referenced this pull request Jun 7, 2017
Metrics needing one extra byte to fit the output buffer would not be split, so we would emit lines without a line ending. Metrics which overflowed by exactly one field length would be split one field too late, causing truncated fields.
(cherry picked from commit a275e67)
jeichorn pushed a commit to jeichorn/telegraf that referenced this pull request Jul 24, 2017
Metrics needing one extra byte to fit the output buffer would not be split, so we would emit lines without a line ending. Metrics which overflowed by exactly one field length would be split one field too late, causing truncated fields.
maxunt pushed a commit that referenced this pull request Jun 26, 2018
Metrics needing one extra byte to fit the output buffer would not be split, so we would emit lines without a line ending. Metrics which overflowed by exactly one field length would be split one field too late, causing truncated fields.
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.

2 participants