Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-8009

DrillConnectionImpl#isValid() doesn't correspond JDBC API

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.20.0
    • Client - JDBC
    • 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mrymar Maksym Rymar
            mrymar Maksym Rymar
            Paul Rogers Paul Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment