[pgjdbc/pgjdbc] 08d812: Make ConnectTimeout test accept NoRouteToHostExcep...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[pgjdbc/pgjdbc] 08d812: Make ConnectTimeout test accept NoRouteToHostExcep...

Sehrope Sarkuni-2
  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 08d81291c69d02d8973d6b39dac82bdaad91f2ee
      https://github.com/pgjdbc/pgjdbc/commit/08d81291c69d02d8973d6b39dac82bdaad91f2ee
  Author: Craig Ringer <[hidden email]>
  Date:   2019-07-11 (Thu, 11 Jul 2019)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/core/QueryExecutorBase.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/ConnectTimeoutTest.java

  Log Message:
  -----------
  Make ConnectTimeout test accept NoRouteToHostException (#1526)

* Fix a NullPointerException in uncommon failure cases

* Skip ConnectTimeout timeout on hosts that throw NoRouteToHostException

If a host throws NoRouteToHostException before the ConnectTimeout, the test
has neither failed nor succeeded.

Github issue #1526