Skip to content

Commit 73c6dc6

Browse files
authored
use custom endpoint as cluster ID (#1619)
1 parent 3b14be0 commit 73c6dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrapper/src/main/java/software/amazon/jdbc/hostlistprovider/RdsHostListProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ protected void init() throws SQLException {
186186
final String clusterIdSetting = CLUSTER_ID.getString(this.properties);
187187
if (!StringUtils.isNullOrEmpty(clusterIdSetting)) {
188188
this.clusterId = clusterIdSetting;
189-
} else if (rdsUrlType == RdsUrlType.RDS_PROXY) {
189+
} else if (rdsUrlType == RdsUrlType.RDS_PROXY || rdsUrlType == RdsUrlType.RDS_CUSTOM_CLUSTER) {
190190
// Each proxy is associated with a single cluster, so it's safe to use RDS Proxy Url as cluster
191191
// identification
192192
this.clusterId = this.initialHostSpec.getUrl();

0 commit comments

Comments
 (0)