Skip to content

an invalid line causes the next line to be skipped #43

@akrantz01

Description

@akrantz01

When parsing multiple lines of line protocol, if a line has a syntax error, the line immediately following it will be skipped.

For example:

foo value=12.0
foo value=2a.0
foo value=32.0
foo value=42.0

This will successfully parse the first line, the second line will emit an error, but the third line will be skipped altogether, and finally, the fourth line will also be successfully parsed.

If you add two invalid lines back-to-back, an error will only be reported for the first invalid line. Example:

foo value=12.0
foo value=2a.0
foo value=8a.0
foo value=32.0
foo value=42.0

Here is the code I was using to test: https://gist.github.com/akrantz01/f047e400a586a7dfaf6006ca2876b7eb.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions