-
Notifications
You must be signed in to change notification settings - Fork 177
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
Hanging when using single connection for concurrent query #650
Comments
I updated the thread dump when the reactor process hanging |
There's no blocked thread, the reported issue requires a bit more digging. I suggest enabling debug logging for the driver so that you see at which Postgres frame the process gets locked up. |
I created a simple project to reproduce it:
I updated the re-produce code (it is more complex a bit than what I wrote in the description above) I tried to print all debug logs, but I don't see anything that I can dig more |
This issue still persists in the latest version of After trying to gain a deeper understanding of the issue, I realized that the hanging does not occur solely because of In the example I provided, when I created two separate connections, the issue did not occur. |
I changed the title of ticket, I think it will more clear A lot of log from |
Bug Report
Versions
Current Behavior
When attempting to execute a DELETE statement with a RETURNING clause using Flux.from(con.createStatement(...)), the application hangs after processing a few elements in the Flux.
My statement
Table schema
Steps to reproduce
Input Code
It hanging
The console output:
The number of "doOnNext" should be equal to "msg was deleted", but it not
If I changed the Flux to Mono<List> and revert to Flux::fromIterable
It works
The code just add
.collectList().flatMapMany(Flux::fromIterable)
Then the output is
Expected behavior/code
The
Flux.from(connection.createStatement(...))
should execute normally without hanging.Additional context
DELETE ... RETURNING
queries but also withSELECT
queries, although the latter is less frequently reproducible.updated:
The code for reproduce is more complex: #650 (comment)
The text was updated successfully, but these errors were encountered: