[pgjdbc/pgjdbc] 08d812: Make ConnectTimeout test accept NoRouteToHostExcep...
Craig Ringer <[email protected]> Thu, 11 Jul 2019 12:36:35 -0700
| Newsgroups | gmane.comp.db.postgresql.jdbc |
|---|---|
| Message-ID | <pgjdbc/pgjdbc/push/refs/heads/master/[email protected]> |
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 08d81291c69d02d8973d6b39dac82bdaad91f2ee
https://github.com/pgjdbc/pgjdbc/commit/08d81291c69d02d8973d6b39dac82bdaad91f2ee
Author: Craig Ringer <[email protected]>
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