[
https://issues.apache.org/jira/browse/HIVE-10732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chaoyu Tang updated HIVE-10732:
-------------------------------
Attachment: HIVE-10732.patch
Promptly close the OperationHandle passed from HiveDatabaseMetaData in
HiveQueryResultSet when DatabaseMetaData ResultSet is closed. It can help
reduce HS2 memory usage, though the OperationHandle is eventually removed when
it expires or the jdbc conection is closed at client site.
> Hive JDBC driver does not close operation for metadata queries
> --------------------------------------------------------------
>
> Key: HIVE-10732
> URL: https://issues.apache.org/jira/browse/HIVE-10732
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Reporter: Mala Chikka Kempanna
> Assignee: Chaoyu Tang
> Attachments: HIVE-10732.patch
>
>
> In following file
> http://github.mtv.cloudera.com/CDH/hive/blob/cdh5-0.14.1/jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java
> Line 315 implemented the ResultSet.close() method. Because "DatabaseMetadata"
> operation doesn't have a statement, it doesn't "close" the operation.
> However, regardless whether it has a statement or not, it should close the
> operation through the "stmtHandle".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)