-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fix InfluxDB UDP line splitting (#5438) #5439
Conversation
scanner.Split(scanLines) | ||
for scanner.Scan() { | ||
_, err = c.conn.Write(scanner.Bytes()) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For 1.10, I think I will experiment with doing a metric splitter before the Serialize step, so we don't need to parse the serialized data. There might be some duplication of the serialize code but I think it will be worth it, and also string fields can contain unescaped newlines in line protocol so there is a potential flaw with this (#4942).
I think we are going to do a 1.9.5, and this will be a more appropriate change for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I completely agree doing the change you proposed is a sensible approach. This was just a stopgap to get things working with minimal modifications to the existing code.
(cherry picked from commit 5dfa3fa)
Required for all PRs:
Fixes #5438