Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

handle bad numbers in carbon handler #37

Merged
merged 2 commits into from
Jul 23, 2014
Merged

Conversation

addisonj
Copy link
Contributor

Bad numbers in both time and metric fields results in a NumberFormatException, which crashes the channel and seems to cause some performance issues with high load.

This patch tries to parse the numbers and sets a default "nan" value if its not a valid number, which results in it being skipped

@pdolan pdolan mentioned this pull request Jun 30, 2014
@chjohnst chjohnst mentioned this pull request Jul 16, 2014
pyr added a commit that referenced this pull request Jul 23, 2014
handle bad numbers in carbon handler
@pyr pyr merged commit 5deb6ad into pyr:master Jul 23, 2014
@pyr
Copy link
Owner

pyr commented Jul 23, 2014

thanks @addisonj

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants