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

Loosing quotation marks in query broadcast between nodes in cluster. #923

Closed
tau0 opened this issue Sep 10, 2014 · 3 comments
Closed

Loosing quotation marks in query broadcast between nodes in cluster. #923

tau0 opened this issue Sep 10, 2014 · 3 comments

Comments

@tau0
Copy link

tau0 commented Sep 10, 2014

Version 0.8.2.
The query:

http://target_host:8086/db/grafana/series?p=videobase&q=select+dashboard+from+"grafana.dashboard_VWx0cmFNUg=="&time_precision=s&u=videobase

Response: Cannot find user videobase

Logs:
First node:

[2014/09/10 21:24:16 MSK] [EROR] (github.com/influxdb/influxdb/coordinator.(*ProtobufRequestHandler).handleQuery:67) Error parsing query: %!(EXTRA *parser.QueryError=Error at 543649385:50 543649385:51. syntax error, unexpected OPERATION_EQUAL, expecting $end)

Second node:

[2014/09/10 21:24:16 MSK] [EROR] (github.com/influxdb/influxdb/coordinator.(*CoordinatorImpl).readFromResponseChannels:354) Error while executing query: Cannot find user videobase

The problem is in the series name last two symbols('=='):

grafana_dashboard_VWx0cmFNUg==

Because if we try without them everything works as expected. And in synchronization between nodes it parsed as OPERATION_EQUAL.
The problem is repeating only when two or more nodes in cluster. I think you are loosing some Quotation_mark in query in synchronization between nodes.

@tau0 tau0 changed the title Can't authentificate in database when two nodes in cluster. Incorrect query parsing when two nodes in cluster. Sep 10, 2014
@tau0 tau0 changed the title Incorrect query parsing when two nodes in cluster. Loosing quotation marks in query synchronization between nodes in cluster. Sep 10, 2014
@tau0 tau0 changed the title Loosing quotation marks in query synchronization between nodes in cluster. Loosing quotation marks in query broadcast between nodes in cluster. Sep 11, 2014
@mre
Copy link
Contributor

mre commented Sep 12, 2014

Same issue here. Tell us if we can help out with troubleshooting/testing.

@jvshahid
Copy link
Contributor

I'm taking a look

@mre
Copy link
Contributor

mre commented Sep 12, 2014

@jvshahid this is awesome. Thanks! :-)
@tau0 thanks for reporting.

jvshahid added a commit that referenced this issue Sep 24, 2014
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