You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: fix ethtool issue when trying to skip unsupported interface (#1296)
# Description
This PR addresses an issue where the plugin repeatedly logged the same
operation not supported error for interfaces on every metrics collection
cycle. The root cause ethtool handle is created and closed during each
interval, which invalidated any cached (LRU) information on unsupported
interfaces. Now, once an interface is identified as unsupported, it
won’t repeatedly log the same error.
## Related Issue
If this pull request is related to any issue, please mention it here.
Additionally, make sure that the issue is assigned to you before
submitting this pull request.
#1280
## Checklist
- [x] I have read the [contributing
documentation](https://retina.sh/docs/contributing).
- [x] I signed and signed-off the commits (`git commit -S -s ...`). See
[this
documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification)
on signing commits.
- [x] I have correctly attributed the author(s) of the code.
- [x] I have tested the changes locally.
- [x] I have followed the project's style guidelines.
- [x] I have updated the documentation, if necessary.
- [x] I have added tests, if applicable.
## Screenshots (if applicable) or Testing Completed
Please add any relevant screenshots or GIFs to showcase the changes
made.
Logs before fixing the issue:
<img width="851" alt="Before"
src="https://github.com/user-attachments/assets/edae5f1e-275e-4de6-9f74-23100dc49600"
/>
Logs after fixing the issue, the unsupported cache will only log once
now (add debug message for test and validate behaviour of LRU, which has
been removed in PR):
<img width="848" alt="After"
src="https://github.com/user-attachments/assets/ffbff4da-431b-4349-bc67-bdb4d7818fb9"
/>
## Additional Notes
Add any additional notes or context about the pull request here.
---
Please refer to the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more
information on how to contribute to this project.
0 commit comments