Closed fabiosenracorrea closed 2 years ago
try upgrade to latest version
@rongfengliang yeah i saw that at least the database pool error it seems to be corrected, right? Do theses problems also get fixed there? I was waiting on all pre-agg table creations to be finished before doing that, but i guess i should try that now!
@rongfengliang Update: bumping to latest version did not fix the unbalanced query issue. It is still happening at random to queries.
Haven't had a chance to experience the other 2 errors yet but it's still early on.
@fabiosenracorrea which kind of redis you using (cloud, open source?)
@fabiosenracorrea this maybe help https://github.com/redis/redis/issues/2995
@rongfengliang we are using aws' redis. And that issue you mentioned just says it's probably a client issue, like i'm reporting here
Hey @fabiosenracorrea ! Which driver do you use? Do you use IO Redis or an ordinary one? Could you share environment variables you provide?
Hey @paveltiunov! We do not use IO Redis, we use a simple ElasticCache with no TLS or password, and have been getting this 'unbalanced quotes at request' really often lately. Our version is 0.26.102 as of now and use an ENV like this:
CUBEJS_JDBC_DRIVER | athena
CUBEJS_DB_TYPE | athena
CUBEJS_DEV_MODE | false
COGNITO_REGION | cog region
COGNITO_USER_POOL_ID | cog pool id
CUBEJS_AWS_KEY | our key
CUBEJS_AWS_SECRET | our secret
CUBEJS_AWS_REGION | our region
CUBEJS_AWS_S3_OUTPUT_LOCATION | s3 bucket
CUBEJS_API_SECRET | api secret
REDIS_URL | redis://XXX-XXX.use1.cache.amazonaws.com:6379
REDIS_PASSWORD |
REDIS_TLS | false
CUBEJS_SCHEDULED_REFRESH_TIMER | true
CUBEJS_FRONTEND | our frontend url
CUBEJS_DB_HOST | my sql host
CUBEJS_DB_PORT | 3306
CUBEJS_DB_NAME | db name.
CUBEJS_DB_USER | db user
CUBEJS_DB_PASS | db pw
CUBEJS_EXT_DB_TYPE | mysql
CUBEJS_EXT_DB_NAME | db pre-agg name
CUBEJS_EXT_DB_HOST | pre-agg host
CUBEJS_EXT_DB_PORT | 3306
CUBEJS_EXT_DB_USER | pre agg user
CUBEJS_EXT_DB_PASS | pre-aggpw
try add NODE_DEBUG=redis . can view redis debug info .this maybe help these days i use this debug one redis like service bug
@rongfengliang still not a clue! Maybe i'll change the redis instance we are using to check if that solves it
An update on this: It seems that changing our redis instance solved these problems (at least for now). I'm still not quite sure why it was happening but if anyone experiences this, might as well try an instance change!
Describe the bug I've been facing some really inconsistent bugs with redis-parser lately on our application. The worst part is they seem to be happening at random, with no clear path to get it to reproduce.
We have a docker instance of cube running connected to Athena and 2 mysql databases (one for data, the other for pre-aggregations). We just launched our pre-aggregation patch, and are now pre-creating all tables before any user can access the application. We have a batch of creation running at a time, which consists of 180 queries that get requested to our cube server to trigger each pre-aggregation to be created. Each request is spaced out by 3 seconds before it attempts to check again if the table was created.
The problem is that, every now and then a request fails with the
ERR Unbalanced Quotes in request
, sample error:Which then cause the query to that table to fail with the same error, returning an orchestrator error.
And while this is annoying, the good thing is that the pre-agg table is still created and the next time we query for that data everything runs well. But i've already seen this same quote error happen with a regular query from our application, which causes the graph to display an error, leaving the user with no choice other than reloading the page to get it to work. Not ideal!
The second redis-related bug i've found is a little more worring, as it causes my application to completely crash and restart, which takes it offline for ~5 minutes. This error happens on a query the same way the above and it goes like:
Which then shows this error
And proceeds to crash the application.
I have no idea what could be causing these issues, as they are not consistent. Can someone help me with that?
To Reproduce
If there's any suggestions on how i could maybe illustrate this in a better way, please let me know.
Expected behavior The queries would be processed normally as it is what happens most of the time.
Version: 0.26.94