Skip to content

Commit

Permalink
chore: clear tracked connections before each integration test (#1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiyvamz authored Dec 4, 2024
1 parent 688a448 commit f3245e8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
import software.amazon.jdbc.HikariPooledConnectionProvider;
import software.amazon.jdbc.dialect.DialectManager;
import software.amazon.jdbc.hostlistprovider.monitoring.MonitoringRdsHostListProvider;
import software.amazon.jdbc.plugin.OpenedConnectionTracker;
import software.amazon.jdbc.plugin.customendpoint.CustomEndpointMonitorImpl;
import software.amazon.jdbc.plugin.customendpoint.CustomEndpointPlugin;
import software.amazon.jdbc.plugin.efm.MonitorThreadContainer;
Expand Down Expand Up @@ -238,6 +239,7 @@ private static void clearCaches() {
MonitoringRdsHostListProvider.clearCache();
CustomEndpointPlugin.closeMonitors();
CustomEndpointMonitorImpl.clearCache();
OpenedConnectionTracker.clearCache();
}

private static void checkClusterHealth(final boolean makeSureFirstInstanceWriter)
Expand Down

0 comments on commit f3245e8

Please sign in to comment.