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

update godirwalk to v1.16.1 (dragonfly support) #7987

Merged
merged 1 commit into from
Nov 27, 2020

Conversation

karrick
Copy link
Contributor

@karrick karrick commented Aug 14, 2020

  1. Most importantly, this version runs on Dragonfly BSD, which might
    be an issue that potential users would care about.

  2. Re-issues syscall request after EINTR.

    More resiliant on Go v1.14 and above, where syscall is more likely
    to return syscall.EINTR.

    Also, alongside the place where it would instead call
    golang.org/x/sys/unix, but it is commented out, I include the
    equivalent code for checking for unix.EINTR, to make it less likely
    that I forget to change the EINTR check if I ever convert it to use
    golang.org/x/sys/unix rather than syscall.

  3. Performance improvements for unix and Windows.

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

NOTE: While updated godirwalk package now runs on Dragonfly BSD, I did not test whether the remainder of telegraf also runs on Dragonfly BSD, so I did not add Dragonfly BSD to the README.md file.

NOTE 2: Additional unit tests are in the updated godirwalk package.

1. Most importantly, this version runs on Dragonfly BSD, which might
   be an issue that potential users would care about.

2. Re-issues syscall request after EINTR.

   More resiliant on Go v1.14 and above, where syscall is more likely
   to return syscall.EINTR.

   Also, alongside the place where it would instead call
   golang.org/x/sys/unix, but it is commented out, I include the
   equivalent code for checking for unix.EINTR, to make it less likely
   that I forget to change the EINTR check if I ever convert it to use
   golang.org/x/sys/unix rather than syscall.

3. Performance improvements for unix and Windows.
@sjwang90 sjwang90 added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Nov 25, 2020
@ssoroka ssoroka merged commit 11b83db into influxdata:master Nov 27, 2020
@ssoroka
Copy link
Contributor

ssoroka commented Nov 27, 2020

Thank you!

ssoroka pushed a commit that referenced this pull request Dec 1, 2020
1. Most importantly, this version runs on Dragonfly BSD, which might
   be an issue that potential users would care about.

2. Re-issues syscall request after EINTR.

   More resiliant on Go v1.14 and above, where syscall is more likely
   to return syscall.EINTR.

   Also, alongside the place where it would instead call
   golang.org/x/sys/unix, but it is commented out, I include the
   equivalent code for checking for unix.EINTR, to make it less likely
   that I forget to change the EINTR check if I ever convert it to use
   golang.org/x/sys/unix rather than syscall.

3. Performance improvements for unix and Windows.

Co-authored-by: Karrick S. McDermott <karrick@karrick.dev>
(cherry picked from commit 11b83db)
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
1. Most importantly, this version runs on Dragonfly BSD, which might
   be an issue that potential users would care about.

2. Re-issues syscall request after EINTR.

   More resiliant on Go v1.14 and above, where syscall is more likely
   to return syscall.EINTR.

   Also, alongside the place where it would instead call
   golang.org/x/sys/unix, but it is commented out, I include the
   equivalent code for checking for unix.EINTR, to make it less likely
   that I forget to change the EINTR check if I ever convert it to use
   golang.org/x/sys/unix rather than syscall.

3. Performance improvements for unix and Windows.

Co-authored-by: Karrick S. McDermott <karrick@karrick.dev>
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.

3 participants