Download | Release Notes | Changelog |
Release date: 12 Jan 2016
MariaDB Connector/J 1.3.4 is a Stable (GA) release.
For a list of all changes made in this release, with links to detailed information on each push, see the changelog.
This version is a bugfix release
Failover improvements (reconnection implementation evolution, thread handling ...)
: Correction on using getInt on a signed smallInt negative value on prepareStatement
: PrepareStatement prepare exception handling
: Closing a close statement does not throw an Exception anymore
: Permit commit when in autocommit mode
: Permit using Connection.setReadOnly(true) during a transaction
On a master/slave cluster, the driver uses 2 underlying connections: one to a master instance, one to a slave instance. When one of the connections fails, if the driver needs it right away, it will create a new connection immediately before re-executing the query, if possible.
If the failed connection is not needed immediately, this driver will subscribe to the "failover reconnection" that will be handled in other threads. Failover threads will attempt to create a new connection to replace a failing one, so the interruption is minimal for the queries in progress. When the client asks to use a failed connection, the new connection created by the failover thread will replace the failed one.
Example: after a failure on a slave connection, readonly operations are temporary executed on the master connection to avoid interruption on the client side. The failover thread will then create a new slave connection that will replace the failed one. The next query will use the new slave connection.
A pool of threads is initialized when using a master/slave configuration. The pool size evolves according to the number of connections.
More information on GitHub here:
This page is: Copyright © 2025 MariaDB. All rights reserved.