Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
DrillConnectionImpl#isValid() doesn't correspond Java JDBC API documentation. Current implementation doesn't do actual connection verify and doesn't cover cases like drillbit termination and network issues.
java.sql.Connection#isValid() (which extends DrillConnectionImpl) widely used in JDBC connection pools like HikariCP and without right implementation, Drill JDBC driver cannot be used with them, because connections will keep alive forever.