Skip to content

Conversation

@aaron-congo
Copy link
Contributor

This PR removes the old non-monitoring RdsHostListProvider so that the default HostListProvider is a monitoring one.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

aaron-congo and others added 30 commits October 21, 2025 09:20
…bility requirements (#1565)

Co-authored-by: Adnan Khan <AdnaneKhan@users.noreply.github.com>
Co-authored-by: Karen <64801825+karenc-bq@users.noreply.github.com>
This reverts commit 9ce95e5.
This reverts commit 9fdae84.
@aaron-congo aaron-congo changed the title refactor: remove non-monitoring RdsHostListProvider refactor: use monitoring RdsHostListProvider by default Dec 10, 2025
@EnableOnTestFeature(TestEnvironmentFeatures.NETWORK_OUTAGES_ENABLED)
@EnableOnNumOfInstances(min = 2)
// Multi-AZ tests already simulate this in other tests instead of sending server failover requests.
@EnableOnDatabaseEngineDeployment(DatabaseEngineDeployment.AURORA)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test passes on multi-AZ now

if (conn == null) {
// We cannot fetch the latest topology since we do not have access to a connection, so we return the original
// hosts parsed from the connection string.
if (!this.pluginService.isDialectConfirmed()) {
Copy link
Contributor Author

@aaron-congo aaron-congo Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed because without it, cluster topology monitors are created before the db dialect has been updated. This causes errors because the queries that the topology monitors execute are not aligned with the actual database dialect

}

protected ClusterTopologyMonitor getOrCreateMonitor() throws SQLException {
ClusterTopologyMonitor monitor = this.servicesContainer.getMonitorService()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

monitor is unused.

return this.topologyUtils.queryForTopology(conn, initialHostSpec, this.instanceTemplate);
}

protected List<HostSpec> getFreshTopology(boolean shouldVerifyWriter, long timeoutMs) throws SQLException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boolean shouldVerifyWriter, long timeoutMs - not in use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants