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

failover2 plugin only looks at wrapperPlugins and ignores pluginFactories #1140

Closed
ivankhoosty opened this issue Oct 1, 2024 · 4 comments
Closed
Labels
bug Something isn't working question Further information is requested

Comments

@ivankhoosty
Copy link

Describe the bug

thank you for failover2 plugin, i think it will address #1026

I use pluginFactories to specify plugins, not wrapperPlugins property string.

When I tried to upgrade to 2.4.0, I came across an issue at https://github.com/aws/aws-advanced-jdbc-wrapper/blob/main/wrapper/src/main/java/software/amazon/jdbc/dialect/AuroraPgDialect.java?secureweb=Teams#L133

Because of https://github.com/aws/aws-advanced-jdbc-wrapper/blob/main/wrapper/src/main/java/software/amazon/jdbc/ConnectionPluginChainBuilder.java?secureweb=Teams#L145 , where preference is given to pluginFactories , it's possible to have a workaround and specify

targetDataSourceProperties.setProperty(PropertyDefinition.PLUGINS.name, "failover2");

and get passed this issue.

Expected Behavior

code in AuroraPgDialect should take pluginFactories into account

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

failover2

Current Behavior

wrapperPlugins need to contain "failover2" for AuroraPgDialect to use MonitoringRdsHostListProvider

Reproduction Steps

use failover2 plugin with pluginFactories only

Possible Solution

No response

Additional Information/Context

No response

The AWS Advanced JDBC Driver version used

2.4.0

JDK version used

21

Operating System and version

unix

@sergiyvamz
Copy link
Contributor

Hi @ivankhoosty ,

Could you please verify if the latest changes address the issue for you? You can find the latest change in the snapshot build. More information on how to use the snapshot build is available here.

Thank you!

@ivankhoosty
Copy link
Author

Hi @sergiyvamz , unfortunately it's prob easier to rob a bank than to onboard a snapshot - about 4 weeks process etc :(

I can confirm that 2.4.0 is working great with failover2 plugin and the two workarounds (above, and clusterId), and i am going to close #1026

@sergiyvamz sergiyvamz added the pending release Resolution implemented, pending official release label Oct 15, 2024
@aaron-congo
Copy link
Contributor

Hi @ivankhoosty,

The fix was officially released in the recent 2.5.0 release. Could you please check it out and let us know if it addresses the issue for you? Thanks!

@aaron-congo aaron-congo added question Further information is requested and removed pending release Resolution implemented, pending official release labels Oct 22, 2024
@ivankhoosty
Copy link
Author

@aaron-congo Hi, thanks for the fix, tested in 2.5.2, closing the jira

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants