Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL Aurora failover ends up on reader when using custom domain #1254

Open
szhnet opened this issue Jan 22, 2025 · 1 comment
Open

MySQL Aurora failover ends up on reader when using custom domain #1254

szhnet opened this issue Jan 22, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@szhnet
Copy link

szhnet commented Jan 22, 2025

Describe the bug

#386 The problem still exists.

A jdbc url like this: jdbc:aws-wrapper:mysql://[custom-domain]:3306/db?characterEncoding=utf-8&clusterInstanceHostPattern=?.[clusterid].us-east-1.rds.amazonaws.com&wrapperLoggerLevel=ALL

In the log there is something like this
The driver is unable to track this opened connection because the instance endpoint is unknown: '[custom-domain]'

java.sql.SQLException: Running in read-only mode

Expected Behavior

The failover should end up on the writer node.

What plugins are used? What other connection properties were set?

Default plugins are used.

Current Behavior

The connection ends up on the reader instead of the writer.

Reproduction Steps

See description.

Possible Solution

No response

Additional Information/Context

No response

The AWS Advanced JDBC Driver version used

2.5.4

JDK version used

11

Operating System and version

Linux

@szhnet szhnet added the bug Something isn't working label Jan 22, 2025
@szhnet szhnet changed the title (short issue description)Describe the bug MySQL Aurora failover ends up on reader when using custom domain Jan 22, 2025
@aaron-congo
Copy link
Contributor

Hi @szhnet,

Thanks for reaching out and raising this issue. We'll take a look at this and keep you updated as we investigate. Thank you for your patience!

@karenc-bq karenc-bq self-assigned this Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants