Skip to content

Commit

Permalink
Reset/flush saved contents from bad metric (influxdata#4646)
Browse files Browse the repository at this point in the history
  • Loading branch information
glinton authored and otherpirate committed Mar 15, 2019
1 parent 21a351d commit 91c26a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/parsers/influx/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func (p *Parser) Parse(input []byte) ([]telegraf.Metric, error) {
for p.machine.ParseLine() {
err := p.machine.Err()
if err != nil {
p.handler.Reset()
return nil, &ParseError{
Offset: p.machine.Position(),
msg: err.Error(),
Expand Down

0 comments on commit 91c26a6

Please sign in to comment.