Skip to content

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

Merged
sspaink merged 3 commits intoinfluxdata:masterfrom
sspaink:fixnfsclient
Mar 31, 2021
Merged

inputs.nfsclient: use uint64, also update error handling#9067
sspaink merged 3 commits intoinfluxdata:masterfrom
sspaink:fixnfsclient

Conversation

@sspaink
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Aug 28, 2025
…9067)

* Use uint64
Fix error handling

* update comment

* More detail to error
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