-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Using a query with a join with multiple active portals enabled results in a error inside cockroachdb with asyncpg #110486
Comments
Hm, I'm unable to reproduce this. @dikshant I made minor changes to the schema (because it was hitting errors), and then following the steps don't result in an error. Could you double check that you can reproduce this? Perhaps version of python or asyncpg matters? |
@yuzefovich ah whoops, I just fixed the schema above. I am using asyncpg 0.27.0 and Python 3.11.5. Just realized after rerunning on a fresh cockroach single node, I couldn't reproduce by running the example just once. But if I run it in quick succession multiple times I can see the error. So try a bash for loop like so: for i in {1..10}; do
python example.py
done; |
Thanks, I think I see the problem. |
@dikshant is the fix for this something that we'd like in 23.1.11? I think the fix is pretty safe, but if there is nobody waiting for it, I'd prefer getting it into 23.1.12 (after longer baking period). |
Waiting for 23.1.12 is fine. |
Start a cockroach single node on v23.1.6:
Use the following schema:
Run this example with Python3 and asyncpg (version 0.27.0):
Have to run it multiple times in quick succession to see error pop up in CRDB strangely enough. I used a bash for loop
Code:
Execute
In CockroachDB Server stdout we see:
If I grep through the logs for
45743dc8fb584b62bc74c07700a26a6b
I see unexpected leftover bytes:Jira issue: CRDB-31456
The text was updated successfully, but these errors were encountered: