Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.1.6, 1.1.7, 1.1.8
-
None
Description
Current version of MariaDB client library doesn't output actual exceptions when query fails for some reason.
I've recently came across this issue, when with MariaDB the exception was
Caused by: java.sql.SQLNonTransientConnectionException: Could not send query: Broken pipe
With official MySQL driver the exception was
Caused by: com.mysql.jdbc.PacketTooBigException: Packet for query is too large (9028625 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.
Which outputs the actual issue and doesn't imitate network issue.
Attachments
Issue Links
- blocks
-
CONJ-158 Tests fail with max_allowed packets = 16M
-
- Closed
-
The network issue is not "imitated". The connection is closed for real, on the server side.
The driver sends the query, the server closes the connection, because packet is too large. (Different from ConnectorJ, this driver does not count bytes in packet it sends)