You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Maksym Rymar (Jira)" <ji...@apache.org> on 2021/10/13 14:53:00 UTC

[jira] [Created] (DRILL-8009) DrillConnectionImpl#isValid() doesn't correspond JDBC API

Maksym Rymar created DRILL-8009:
-----------------------------------

             Summary: DrillConnectionImpl#isValid() doesn't correspond JDBC API
                 Key: DRILL-8009
                 URL: https://issues.apache.org/jira/browse/DRILL-8009
             Project: Apache Drill
          Issue Type: Bug
          Components: Client - JDBC
            Reporter: Maksym Rymar
            Assignee: Maksym Rymar


{{DrillConnectionImpl#isValid()}} doesn't correspond [Java JDBC API documentation|https://docs.oracle.com/javase/7/docs/api/java/sql/Connection.html#isValid(int)]. 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)