Open SGombert opened 5 months ago
/cc @tsegismont (reactive-sql-clients), @vietj (reactive-sql-clients)
Hi @SGombert
It seems the application uses SSL, in this case the problem could be related to https://github.com/eclipse-vertx/vertx-sql-client/issues/1433
This bug has been resolved in Vert.x 4.5.8. Any chance for you to try this version?
Hi, thanks @tsegismont
I will try it and then report if it helped.
@SGombert have you been able to try with the fixed version?
Describe the bug
Hello everyone,
I want to file a bug report on the reactive MS-SQL client. We run a fully reactive Quarkus app on Azure using Azure SQL as a database. We used Quarkus 3.10.2 and implemented all database-related logic using Panache Reactive and Mutiny. For the most part, everything works as expected. However, for some queries that return a large set of results, the connection to the database closes randomly. This does not always happen for these queries, but it does most of the time.
We then get one of two exceptions: either
or
The problem occurred much more often in the beginning, but most previous occurrences could be solved by setting the following config parameter:
quarkus.datasource.reactive.mssql.packet-size=8000
Nonetheless, it still happens from time to time. I basically played around with all the config parameters and have no clue what to do. I guess it is a bug in the framework.
These are my other db-related config parameters:
Expected behavior
The expected behaviour should be that my query executes without any problem deterministically.
The object which we want to get out of the DB with the query (happens with other objects as well, though):
Actual behavior
As seen in the bug description.
How to Reproduce?
It is hard to reproduce because it does not occur deterministically. However, it continually occurs for very large queries. To reproduce it, fill a table in AzureSQL with around 300k rows, then query around 20k of them.
Output of
uname -a
orver
No response
Output of
java -version
java version "17.0.8" 2023-07-18 LTS Java(TM) SE Runtime Environment (build 17.0.8+9-LTS-211) Java HotSpot(TM) 64-Bit Server VM (build 17.0.8+9-LTS-211, mixed mode, sharing)
Quarkus version or git rev
3.11
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response