-
Notifications
You must be signed in to change notification settings - Fork 54
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
Comments
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! |
Hi @szhnet, I am unable to reproduce the error you are seeing on v2.5.4. Would you be able to share the full driver logs with us? |
full log |
Hi, @szhnet, thank you for the driver logs. It looks like driver failover wasn't triggered because no network errors were detected. Would you be able to provide more information about your custom endpoint and your test setup?
|
|
same here, when used Route53 domain cname to aurora endpoint, it doesn't work, do we have any workaround. |
Hi both, could you please try the snapshot build aws-advanced-jdbc-wrapper-2.5.5-20250206.155700-54.jar and set the |
@karenc-bq Hello, the link response 404 |
Hi @longzhihun You can use any of the latest snapshot builds. |
Hello |
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
The text was updated successfully, but these errors were encountered: