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

Improve error from line protocol parser #4786

Closed
wants to merge 1 commit into from
Closed

Conversation

glinton
Copy link
Contributor

@glinton glinton commented Oct 2, 2018

Resolves #4743

@glinton glinton added this to the 1.8.1 milestone Oct 2, 2018
@danielnelson
Copy link
Contributor

On this one we should implement the line counting in machine.go.rl. I think we need to add two ints to the Machine, one for line and one for start of line, these get updated as the machine runs.

@glinton
Copy link
Contributor Author

glinton commented Oct 2, 2018

Wouldn't that slow down the whole parsing (counting everything all the time) vs just slowing the printing of an error due to counting at error print time?

@danielnelson
Copy link
Contributor

It can be done with very little overhead at parse time, I think it shouldn't be a noticeable difference, but we should still keep an eye on any change when working on it.

@danielnelson danielnelson modified the milestones: 1.8.1, 1.8.2 Oct 3, 2018
@glinton glinton self-assigned this Oct 8, 2018
@danielnelson danielnelson assigned danielnelson and unassigned glinton Oct 12, 2018
@danielnelson danielnelson modified the milestones: 1.8.2, 1.9.0 Oct 16, 2018
@danielnelson danielnelson modified the milestones: 1.9.0, 1.10.0 Nov 3, 2018
@masterofcloud1
Copy link

What will happen if you can't open the metrices file? For example, if you are using scripts to generate metrices, and they are creating massive amount of them. The error message will be "found error in line 5000" and you can't look for line 5000...

@danielnelson
Copy link
Contributor

See #5484

@danielnelson danielnelson deleted the feature/4743 branch February 26, 2019 01:25
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.

3 participants