-
Notifications
You must be signed in to change notification settings - Fork 275
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
[v3] there is already a transaction in progress
and there is no transaction in progress
#274
Comments
Would be great with a reproducible example for this one if you can create one. Thanks. |
@porsager
You may need to adjust the count (and the database connection url of course). This almost always prints the following:
several times and sometimes it even hangs at the end. |
For me it |
This could (depending on root cause) be (considered) a security issue but now it's too late anyways. |
If you need help finding the bug (if you can even reproduce) feel free to ask me. I don't know the code but maybe I can still help. |
Hi @mohe2015 .. Thanks a lot!!! I've been too busy to check into this until now, but your repro is good, I'll look closer now. |
Can confirm. Thank you very much. |
Currently I don't have a minimally reproducible example but I may be able to provide one in a few days if needed (please just tell me then).
I strongly suspect the following code is at fault:
If this is executed in parallel it seems that some transactions are not managed properly. I don't understand yet whether my code is at fault or not.
Also I think the error handling part is never reached because I misconfigured my local development postgresql instance (didn't enable that level of transaction isolation) so maybe it's just the amount of concurrent requests.
Using apache bench I found out this happens at
11 concurrent requests with very low probability and the further you go away from 10 (which I think is the default number of concurrent connections in the postgresql pool) the more likely they get.
created just really few (1-2) of these notices.
The text was updated successfully, but these errors were encountered: