Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Conversation

@syhan
Copy link
Contributor

@syhan syhan commented May 16, 2019

When a tag value contains newline(\n), the request sent to db would be splitted into two parts and the first part would fail to write to db but the second would be succeed. The reason is that before sending we do serialization(make_lines) the _escape_tag method in line_protocol.py won't handle it well, we need somehow more specific on newline instead of only handling escape character ()

There have been an issue raised before #632

@syhan syhan requested review from aviau, sebito91 and xginn8 as code owners May 16, 2019 07:27
When a tag value contains newline(\n), the request sent to db would be splitted
into two parts and the first part would fail to write to db but the second
woudl be succeed. The reason is that before sending we do serialization
(make_lines) the _escape_tag method in line_protocol.py
won't handle it well, we need somehow more specific on newline instead of
only handling escape character (\)
@lovasoa
Copy link
Contributor

lovasoa commented Jul 11, 2019

@aviau I think this PR is worth merging.

@aviau
Copy link
Collaborator

aviau commented Jul 11, 2019

Alright, LGTM.

@aviau aviau merged commit dc83fc6 into influxdata:master Jul 11, 2019
@lovasoa
Copy link
Contributor

lovasoa commented Jul 11, 2019

Great, thank you @aviau !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants