Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
3.0.6
-
None
Description
Using a connection string with galeraAllowedState (e.g. "jdbc:mariadb:sequential://host1:3306,host2:3306,host3:3306/test_kelm?user=xxxx&password=xxx&galeraAllowedState=4") brings IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
at java.util.ArrayList.rangeCheck(ArrayList.java:659)
at java.util.ArrayList.get(ArrayList.java:435)
at org.mariadb.jdbc.client.impl.StandardClient.postConnectionQueries(StandardClient.java:361)
at org.mariadb.jdbc.client.impl.StandardClient.<init>(StandardClient.java:205)
at org.mariadb.jdbc.client.impl.MultiPrimaryClient.connectHost(MultiPrimaryClient.java:98)
at org.mariadb.jdbc.client.impl.MultiPrimaryClient.<init>(MultiPrimaryClient.java:71)
at org.mariadb.jdbc.Driver.connect(Driver.java:50)
at org.mariadb.jdbc.Driver.connect(Driver.java:101)
at org.mariadb.jdbc.Driver.connect(Driver.java:27)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:270)
at ard.sternpunkte.sandbox.MariaDB.main(MariaDB.java:27)