Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-132

Unimplemented exceptions from original mysql drivers

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.6, 1.1.7, 1.1.8
    • 1.1.9
    • Other
    • 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

          Activity

            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)

            wlad Vladislav Vaintroub added a comment - 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)
            diego dupin Diego Dupin added a comment -

            this issue has been solved in 1.1.9 with CONJ-158.
            thrown error label is for example :
            java.sql.SQLTransientException: Could not send query: max_allowed_packet exceeded. wrote 50331657, max_allowed_packet = 50331648

            diego dupin Diego Dupin added a comment - this issue has been solved in 1.1.9 with CONJ-158 . thrown error label is for example : java.sql.SQLTransientException: Could not send query: max_allowed_packet exceeded. wrote 50331657, max_allowed_packet = 50331648

            People

              diego dupin Diego Dupin
              DarkKnightCZ Lukas Raska
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.