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

Write fails for multiple points when tag starts with quote #3928

Closed
jamesholcomb opened this issue Sep 1, 2015 · 7 comments
Closed

Write fails for multiple points when tag starts with quote #3928

jamesholcomb opened this issue Sep 1, 2015 · 7 comments
Assignees

Comments

@jamesholcomb
Copy link

2015/09/01 11:28:41 InfluxDB starting, version 0.9.3, branch unknown, commit 2094f3f

11:25 AM $ cat points_2
baz,mytag="a x=1 1441103862125
baz,mytag=a z=1 1441103862126
11:25 AM $ curl -i -XPOST 'http://localhost:8086/write?db=foo' --data-binary @points_2
HTTP/1.1 400 Bad Request
Request-Id: 1fafe215-50c6-11e5-819c-000000000000
X-Influxdb-Version: 0.9.3
Date: Tue, 01 Sep 2015 16:25:57 GMT
Content-Length: 94
Content-Type: text/plain; charset=utf-8

unable to parse 'baz,mytag="a x=1 1441103862125
baz,mytag=a z=1 1441103862126': bad timestamp
@otoolep
Copy link
Contributor

otoolep commented Sep 1, 2015

@jamesholcomb -- what would you expect to happen? The tag value has no matching quote.

@otoolep
Copy link
Contributor

otoolep commented Sep 1, 2015

Do you expect the good ones to go through, and the bad ones to be dropped?

@jwilder
Copy link
Contributor

jwilder commented Sep 1, 2015

@otoolep Quotes are not special in tags. This is a valid bug. Fix coming.

@otoolep
Copy link
Contributor

otoolep commented Sep 1, 2015

OK, thanks @jwilder -- I thought we supported quoting tag values.

@jwilder
Copy link
Contributor

jwilder commented Sep 1, 2015

No. Field values use quotes to designate strings. Tags values are used as is. In general, tags should not be sent with quotes.

@jwilder jwilder self-assigned this Sep 1, 2015
@jamesholcomb
Copy link
Author

@otoolep - Good ones and bad ones? Not sure I understand what you mean.

@otoolep
Copy link
Contributor

otoolep commented Sep 1, 2015

@jamesholcomb -- not to worry, I was mistaken and this is a real issue. The premise of my question was incorrect.

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

No branches or pull requests

3 participants