-
Notifications
You must be signed in to change notification settings - Fork 3.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 distributed aggregative query error #4940
Conversation
@otoolep Can you review the PR? |
I would like to hold off on merging this until we merge #4848. This will allow us to write a cluster test to make sure we don't regress. Hopefully we can merge the cluster test PR today. |
Ok, that PR is merged. I'm happy to write the test for you if you can give me an idea of what type of query was failing before. If you can provide a couple of sample writes with a query that should be all I need to reproduce in the master branch. |
@corylanou The following is a repreduce sample:Create InfluxDB cluster with three node. There is cluster stats:
Create a database named
|
@corylanou
|
@dgnorton @corylanou -- what do you think? Should we get this in for 0.9.6? |
@otoolep Please wait a miniute, I will add some commits to this pr. |
@otoolep Done! |
Thanks @li-ang @dgnorton @corylanou -- what do you think? |
We have no testing around this yet. It passes the existing tests so it doesn't introduce any new single node bugs that we are aware of. We can add more tests in a following PR if you want to ship this. |
Fix distributed aggregative query error
Thanks @li-ang |
Fix issue #4937 issue #4965
When distributed aggregative query covers two more
seriesKeys(measurement + tagSets)
in a shard file, theaggregative query result
which is passed accross cluster, would has two moremapperValues
. The node of cluster, revieving theaggregative query result
, could regard the query result asraw query result
. It will lead toERR: unexpected end of JSON input
or double results described by issue #4965 .