-
Notifications
You must be signed in to change notification settings - Fork 22
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
Refactor: handle no response(s) wout error logging #105
Conversation
CI 🔴 8.x failing on main 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.
overall look good to me 🍰 Do you think it makes sense to add walk
unit test?
well spotted, left those out in the hopes no one will notice 😉 |
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.
test cases cover the changes. Red ci is the same as main. LGTM 👍
Hello, I tried to use this version of the input snmp plugin on the version 7.16.3 of the ELK stack but I'm still have invoking OIDs errors.
Even so, I have the correct version of the plugin :
Is it because of the version of the stack that I am using ? or something else ? Thank you |
What does this PR do?
Refactors response handling from SNMP client - in case of no response (
nil
) no error will happen and thus won't get logged.Why is it important/What is the impact to the user?
Example: when a table operation gets no data the client returns
nil
, that leads to an error withresult.merge nil
, which is than logged and confusing the user ... the plugin continues to operate fine. A no response should not be considered a reason for logging an error.Author's Checklist
Logs