[CONJ-927] Wrong argument value 'aurora' for HaMode Created: 2022-02-09  Updated: 2022-02-10  Resolved: 2022-02-10

Status: Closed
Project: MariaDB Connector/J
Component/s: aurora
Affects Version/s: 3.0.3
Fix Version/s: N/A

Type: Bug Priority: Critical
Reporter: Johannes Thon Assignee: Diego Dupin
Resolution: Won't Fix Votes: 0
Labels: None
Environment:

mariadb-java-client:3.0.3, Spring Boot 2.6.2



 Description   

It seems like in version 3.0.3 the failover mode "aurora" throws an IllegalArgumentException in the `Configuration.java` class while parsing the `haModeString` in the `HaMode.java` class. There is no enum `aurora` defined.

Using the following Url:
`jdbc:mariadb:aurora://db1-test.cluster-xxxxx.eu-central-1.rds.amazonaws.com/database`
`jdbc:mariadb:aurora://localhost/database`

This seems to match the pattern stated in the about section



 Comments   
Comment by Mcihael Gaitsgory [ 2022-02-10 ]

yes, I noticed this same thing. for some reason 'aurora' enum is removed from HaMode.class, any idea why?

Comment by Diego Dupin [ 2022-02-10 ]

3.0 is a complete rewrite of the connector. Specific support for aurora has not been implemented in 3.0, since it relies on pipelining. Aurora is not compatible with pipelining.
Issues for Aurora were piling up without the community proposing any PR for them and without access for us to test those modifications, as stated in https://mariadb.com/kb/en/mariadb-connector-j-303-release-notes/#option-removal. 2.x version has a 5 years support, so it won't be a breaking support.
(documentation in knowledge base about aurora has now been updated)

Generated at Thu Feb 08 03:19:20 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.