hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "steve, Oh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-7182) ResultSet is not closed in JDBCStatsPublisher#init()
Date Mon, 16 Jun 2014 03:29:01 GMT

     [ https://issues.apache.org/jira/browse/HIVE-7182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

steve, Oh updated HIVE-7182:
----------------------------

    Attachment: HIVE-7182.2.patch

I reattached the patch after fix compile error and rebase. HIVE-7182.2.patch rebased against
current trunk.

> ResultSet is not closed in JDBCStatsPublisher#init()
> ----------------------------------------------------
>
>                 Key: HIVE-7182
>                 URL: https://issues.apache.org/jira/browse/HIVE-7182
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: steve, Oh
>            Priority: Minor
>         Attachments: HIVE-7182.1.patch, HIVE-7182.2.patch, HIVE-7182.patch
>
>
> {code}
>         ResultSet rs = dbm.getTables(null, null, JDBCStatsUtils.getStatTableName(), null);
>         boolean tblExists = rs.next();
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message