-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 crash when allow pending messgae wasn't set #1785
Conversation
can you also set the default value for AllowedPendingMessages in the |
@sparrc Updated. |
@@ -24,7 +24,8 @@ const ( | |||
|
|||
defaultFieldName = "value" | |||
|
|||
defaultSeparator = "_" | |||
defaultSeparator = "_" | |||
defaultAllowPendingMessage = 100000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be 10000, not 100000
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
The default is 0 so we hit a division by 0 error and crash. This checks ensure we will not crash and `log` and continue to let telegraf run Also we set default allow pending message number to 10000
@sparrc I correct the defautl value :(. Sorry about that. |
thanks @kureikain! |
The default is 0 so we hit a division by 0 error and crash. This checks ensure we will not crash and `log` and continue to let telegraf run Also we set default allow pending message number to 10000
The default is 0 so we hit a division by 0 error and crash. This checks ensure we will not crash and `log` and continue to let telegraf run Also we set default allow pending message number to 10000
Required for all PRs:
I got this error when forgetting to set allow_pending_message on 1.0.0 version.
The default is 0 so we hit a division by 0 error and crash. This checks
ensure we will not crash and
log
and continue to let telegraf run