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

Fixed race condition in the Wavefront parser #5764

Merged
merged 3 commits into from
Apr 25, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Removed unneccesary debug statements
prydin committed Apr 25, 2019
commit 06a28bd977ffb0719944eadbbe29eacfebdfbe27
3 changes: 0 additions & 3 deletions plugins/parsers/wavefront/parser.go
Original file line number Diff line number Diff line change
@@ -57,7 +57,6 @@ func NewWavefrontParser(defaultTags map[string]string) *WavefrontParser {
wp := &WavefrontParser{defaultTags: defaultTags}
wp.parsers = &sync.Pool{
New: func() interface{} {
log.Printf("D! [parsers.wavefront] Creating new parser for %s", wp)
return NewPointParser(wp)
},
}
@@ -99,8 +98,6 @@ func (p *PointParser) Parse(buf []byte) ([]telegraf.Metric, error) {
buf = append(buf, []byte("\n")...)
}

//log.Printf("D! [parsers.wavefront] Received data: %s", string(buf))

points := make([]Point, 0)

buffer := bytes.NewBuffer(buf)