Skip to content

Commit

Permalink
Ensure clusterInfoMap does not become empty when external LB is given (
Browse files Browse the repository at this point in the history
…#25)

* Ensure clusterInfoMap does not become empty if host, in yb_servers() response, is same as public_ip
* Update version to 42.7.3-yb-2
  • Loading branch information
ashetkar authored Dec 4, 2024
1 parent a926b7c commit 77b0ee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ kotlin.code.style=official
# This is version for PgJdbc itself
# Note: it should not include "-SNAPSHOT" as it is automatically added by build.gradle.kts
# Release version can be generated by using -Prelease or -Prc=<int> arguments
pgjdbc.version=42.7.3-yb-1
pgjdbc.version=42.7.3-yb-2

lastEditYear=2024
# The options below configures the use of local clone (e.g. testing development versions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ private static synchronized boolean refresh(Connection conn, long refreshInterva
Enumeration<String> hosts = clusterInfoMap.keys();
while (hosts.hasMoreElements()) {
NodeInfo info = clusterInfoMap.get(hosts.nextElement());
clusterInfoMap.put(info.publicIP, info);
clusterInfoMap.remove(info.host);
clusterInfoMap.put(info.publicIP, info);
}
} else if (useHostColumn == null) {
LOGGER.warning("Unable to identify set of addresses to use for establishing connections. "
Expand Down

0 comments on commit 77b0ee8

Please sign in to comment.