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
Running two different queries concurrently with Promise.all returns the same results #73
Comments
yes, please provide sample code. And are you saying the issue didn't exist on previous version |
Problem for me too. I'm getting same results for multiple SELECT queries that are running concurrently. @ghdna just put 10-15 unique select queries inside Promise.all and you will get the same results for all the queries. |
Yeah, we rolled back to As for testing it, no need for 15 select queries, we just had 2. |
That's good context for me to check what's going on between the 2 versions. Thanks. Will look into this. |
Just to mention Somentimes I'm also getting following error when running queries concurrently
According to my understanding since all concurrent queries are returning same QueryExecutionId when one of them gets finished other may be in RUNNING or QUEUED state and when it tries to get results for queued or running query it throws this unhandled promise rejection |
@ghdna I have opened a PR for the fix. Please check. |
Same problem here, please accept this PR 😭 |
Same here! +1 |
Merged. Thanks for sharing the issue and submitting the PR. |
We upgraded from
^6.0.4
to^7.1.2
and noticed some really weird results when running queries concurrently with Promise.all.The queries were returning the same results, sometimes from query A and sometimes from query B. We would get different execution ids and use those to make the query, but the results were the same.
Let me know if you need a code sample to explain it better.
The text was updated successfully, but these errors were encountered: