Release Notes for MariaDB Connector/J 3.0.8

Overview

MariaDB Connector/J is a lightweight JDBC driver (Type 4) for building applications on top of MariaDB database products with Java 8, Java 11, and Java 17.

This release is compatible with JDBC 4.2.

MariaDB Connector/J 3.0.8 was released on 2022-09-20. This release is of General Availability (GA) maturity.

Notable Changes

  • Performance improved for prepared statement parsing. (CONJ-1010)

Issues Fixed

  • When connecting by Unix socket, socket file descriptors are not properly closed if the attempt is made to connect when the database is not online (Unix socket path does not exist or connection fails). (CONJ-1007)

  • When the galeraAllowedState connection option is used in a connection string, an IndexOutOfBoundsException exception is raised. (CONJ-997)

  • When catalog is initialized using Connection.setCatalog(String) and not in the connection string (for example by using Apache Tomcat option defaultCatalog), a connection after a failover or connection error does not set the default database resulting in an error like: (CONJ-1002)

    java.util.concurrent.CompletionException: java.lang.InterruptedException: (conn=31) No database selected
    
  • When the replication HA mode is used (by specifying mariadb:replication://), only the first replica listed in the connection string is used, so load balancing is not performed. (CONJ-1003)

  • BatchUpdateException doesn't inherit the SQLState and vendorCode from the causing SQL exception. (CONJ-996)

  • When connecting to MariaDB Server nodes in replication or load balancing mode with the createDatabaseIfNotExist option set, MariaDB Connector/J is executing CREATE DATABASE IF NOT EXISTS on the primary and any replicas when it should create the database only on the primary node. (CONJ-999)

Upgrade

MariaDB Connector/J 3.0 has been superseded by MariaDB Connector/J 3.3, which is fully compatible with MariaDB Connector/J 3.0. For upgrade instructions: