Skip to content
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

inputs.nfsclient: use uint64, also update error handling #9067

Merged
merged 3 commits into from
Mar 31, 2021

Conversation

sspaink
Copy link
Contributor

@sspaink sspaink commented Mar 29, 2021

Close #9028

The values received by mountstats were out of the range of int64, this pr updates the type to uint64. I couldn't find any definitive documentation that says this is the right type, but this Prometheus project that seems to do something similar also uses uint64. I added a unit test to test for the values received by @micoq (thanks!) which were out of int64 range.

Also removed the call to log.Fatalf, having it return the error instead.

Sebastian Spaink added 2 commits March 29, 2021 12:48
Fix error handling
Copy link
Contributor

@telegraf-tiger telegraf-tiger bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤝 ✅ CLA has been signed. Thank you!

@telegraf-tiger telegraf-tiger bot added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Mar 29, 2021
Copy link
Contributor

@telegraf-tiger telegraf-tiger bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sspaink sspaink merged commit 071fef7 into influxdata:master Mar 31, 2021
reimda pushed a commit that referenced this pull request Apr 7, 2021
jblesener pushed a commit to jblesener/telegraf that referenced this pull request Apr 18, 2021
…9067)

* Use uint64
Fix error handling

* update comment

* More detail to error
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inputs.nfsclient ErrRange NFS v4.1
3 participants