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

Use golang.org/x/sys/unix instead of syscall in diskio #3384

Merged
merged 2 commits into from
Oct 24, 2017

Conversation

danielnelson
Copy link
Contributor

This pull request is currently for testing only, it might fix the crash reported in #3373, #3299.

Required for all PRs:

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

@@ -166,14 +167,13 @@ func (s *DiskIOStats) Gather(acc telegraf.Accumulator) error {
var varRegex = regexp.MustCompile(`\$(?:\w+|\{\w+\})`)

func (s *DiskIOStats) diskName(devName string) string {
// if len(s.NameTemplates) == 0 {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Commented out so that the diskInfo code will still be exercised as before, will skip it when not using this option.

@@ -200,14 +200,13 @@ func (s *DiskIOStats) diskName(devName string) string {
}

func (s *DiskIOStats) diskTags(devName string) map[string]string {
// if len(s.DeviceTags) == 0 {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as above

@danielnelson
Copy link
Contributor Author

@jackzampolin Can you retest with this code?

@jackzampolin
Copy link
Contributor

Just built it and pushing up to server

@danielnelson
Copy link
Contributor Author

It's hard to type but my fingers are crossed.

@jackzampolin
Copy link
Contributor

Still no panics, and since the bug tended to present quickly I'm going to go ahead and say MERGE IT!

@danielnelson danielnelson added this to the 1.4.3 milestone Oct 24, 2017
@danielnelson danielnelson merged commit 9a06249 into master Oct 24, 2017
@danielnelson danielnelson deleted the diskio-update branch October 24, 2017 23:22
danielnelson added a commit that referenced this pull request Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants