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

regression in 3.x when using option galeraAllowedState resulting in an IndexOutOfBoundsException

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 3.0.6
    • 3.0.8
    • galera
    • 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)

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            oklm Oliver Kelm
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.