-
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(inputs.bond): Reset slave stats for each interface #12462
Conversation
Thanks so much for the pull request! |
Previously the `status` value has been initialized to 0 only when starting to parse a whole bond. If any single interface in the bond is up the `status` is set to 1 for all following interfaces (even if they are down). To fix this we reset all collected fields after each interface is finished. This should also resolve the unlikely case that some interfaces have different fields than others.
36a8bb6
to
f1cd595
Compare
Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip. 👍 This pull request doesn't change the Telegraf binary size 📦 Click here to get additional PR build artifactsArtifact URLs |
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.
Thanks for PR and test case. I think this makes sense.
let us know once you sign the CLA please! |
Hi @felixhuettner - wanted to checking and see if you had an update on signing the CLA? Thanks |
sorry, still in our signing process unfortunately |
CCLA is finally send out and i signed the individual one. !signed-cla |
!signed-cla |
@powersj CLA is finally signed |
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.
I'm approving again but have one question in line and will have Sven give this a look over as well.
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.
Thanks for the nice fix and the test @felixhuettner!
(cherry picked from commit 5ac9494)
Previously the
status
value has been initialized to 0 only when starting to parse a whole bond. If any single interface in the bond is up thestatus
is set to 1 for all following interfaces (even if they are down).To fix this we reset all collected fields after each interface is finished. This should also resolve the unlikely case that some interfaces have different fields than others.
Required for all PRs
CLA signing is still in progress