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 rgitzel committed Oct 17, 2018
1 parent ea6ae36 commit bdccea5
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 bdccea5

Please sign in to comment.