Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7182

ResultSet is not closed in JDBCStatsPublisher#init()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.14.0
    • None
    • None

    Description

              ResultSet rs = dbm.getTables(null, null, JDBCStatsUtils.getStatTableName(), null);
              boolean tblExists = rs.next();
      

      rs is not closed upon return from init()

      If stmt.executeUpdate() throws exception, stmt.close() would be skipped - the close() call should be placed in finally block.

      Attachments

        1. HIVE-7182.patch
          2 kB
          steve, Oh
        2. HIVE-7182.2.patch
          2 kB
          steve, Oh
        3. HIVE-7182.1.patch
          2 kB
          steve, Oh

        Activity

          People

            skoh5 steve, Oh
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: