yugabyte / jdbc-yugabytedb

JDBC Driver for Yugabyte SQL (YSQL)
BSD 2-Clause "Simplified" License
17 stars 7 forks source link

Fix for issue 9720 and 9718 #11

Closed kneeraj closed 3 years ago

kneeraj commented 3 years ago

GH-9720 - The new load balancer code was doing a direct string match for determining two same hosts. This is not right specially for localhost and loopback addresses. Therefore this change is doing InetAddress equals now.

GH-9718 - The load balancer code while processing the new load balance properties like 'topology-keys' and 'load-balance' properties was not handling malformed url with empty values therefore the exception. Now the new behaviour is to log a warning and then fallback to original behaviour which connects to the database without using the new load balance behaviour.

All Submissions:

New Feature Submissions:

  1. [✅] Does your submission pass tests?
  2. [✅] Does mvn checkstyle:check pass ?
  3. [ ] Have you added your new test classes to an existing test suite?

Changes to Existing Features: