Hive
  1. Hive
  2. HIVE-3481

<Resource leak>: Hiveserver is not closing the existing driver handle before executing the next command. It results in to file handle leaks.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.1, 0.10.0
    • Fix Version/s: 0.10.0
    • Labels:
      None

      Description

      Close the driver object if it exists before creating another driver object. Bunch of HiveServer & JDBC related unit tests are failing because of these file handle leaks.

        Activity

        Hide
        Kanna Karanam added a comment -

        Attached the patch

        Show
        Kanna Karanam added a comment - Attached the patch
        Hide
        Carl Steinbach added a comment -

        Please submit a review request. Thanks.

        Show
        Carl Steinbach added a comment - Please submit a review request. Thanks.
        Hide
        Kanna Karanam added a comment -

        Please find the review request at https://reviews.apache.org/r/7151/. Thanks.

        Show
        Kanna Karanam added a comment - Please find the review request at https://reviews.apache.org/r/7151/ . Thanks.
        Hide
        Ashutosh Chauhan added a comment -

        +1 will commit if tests pass.

        Show
        Ashutosh Chauhan added a comment - +1 will commit if tests pass.
        Hide
        Ashutosh Chauhan added a comment -

        Committed to trunk. Thanks, Kanna!

        Show
        Ashutosh Chauhan added a comment - Committed to trunk. Thanks, Kanna!
        Hide
        Hudson added a comment -

        Integrated in Hive-trunk-h0.21 #1717 (See https://builds.apache.org/job/Hive-trunk-h0.21/1717/)
        HIVE-3481: <Resource leak>: Hiveserver is not closing the existing driver handle before executing the next command. It results in to file handle leaks. (Kanna Karanam via Ashutosh Chauhan) (Revision 1393051)

        Result = FAILURE
        hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1393051
        Files :

        • /hive/trunk/service/src/java/org/apache/hadoop/hive/service/HiveServer.java
        Show
        Hudson added a comment - Integrated in Hive-trunk-h0.21 #1717 (See https://builds.apache.org/job/Hive-trunk-h0.21/1717/ ) HIVE-3481 : <Resource leak>: Hiveserver is not closing the existing driver handle before executing the next command. It results in to file handle leaks. (Kanna Karanam via Ashutosh Chauhan) (Revision 1393051) Result = FAILURE hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1393051 Files : /hive/trunk/service/src/java/org/apache/hadoop/hive/service/HiveServer.java
        Hide
        Hudson added a comment -

        Integrated in Hive-trunk-hadoop2 #54 (See https://builds.apache.org/job/Hive-trunk-hadoop2/54/)
        HIVE-3481: <Resource leak>: Hiveserver is not closing the existing driver handle before executing the next command. It results in to file handle leaks. (Kanna Karanam via Ashutosh Chauhan) (Revision 1393051)

        Result = ABORTED
        hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1393051
        Files :

        • /hive/trunk/service/src/java/org/apache/hadoop/hive/service/HiveServer.java
        Show
        Hudson added a comment - Integrated in Hive-trunk-hadoop2 #54 (See https://builds.apache.org/job/Hive-trunk-hadoop2/54/ ) HIVE-3481 : <Resource leak>: Hiveserver is not closing the existing driver handle before executing the next command. It results in to file handle leaks. (Kanna Karanam via Ashutosh Chauhan) (Revision 1393051) Result = ABORTED hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1393051 Files : /hive/trunk/service/src/java/org/apache/hadoop/hive/service/HiveServer.java
        Hide
        Ashutosh Chauhan added a comment -

        This issue is fixed and released as part of 0.10.0 release. If you find an issue which seems to be related to this one, please create a new jira and link this one with new jira.

        Show
        Ashutosh Chauhan added a comment - This issue is fixed and released as part of 0.10.0 release. If you find an issue which seems to be related to this one, please create a new jira and link this one with new jira.

          People

          • Assignee:
            Kanna Karanam
            Reporter:
            Kanna Karanam
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development