[
https://issues.apache.org/jira/browse/HIVE-10895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14596679#comment-14596679
]
Aihua Xu commented on HIVE-10895:
---------------------------------
[~vgumashta] I was looking into two solutions. 1. a wapper class for the JDO
query result which will dispose the resources when the wrapper class gets
garbage collected automatically. But this approach could still cause issues
that resources like cursors may not get released soon enough. 2. Clone query
result to a new list to force iterating the result and return that new list and
then call query.closeAll() immediately. I will work on the second approach,
> ObjectStore does not close Query objects in some calls, causing a potential
> leak in some metastore db resources
> ---------------------------------------------------------------------------------------------------------------
>
> Key: HIVE-10895
> URL: https://issues.apache.org/jira/browse/HIVE-10895
> Project: Hive
> Issue Type: Bug
> Components: Metastore
> Affects Versions: 0.14.0, 1.0.0, 1.2.0, 1.1.0, 0.13
> Reporter: Takahiko Saito
> Assignee: Aihua Xu
> Attachments: HIVE-10895.1.patch
>
>
> During testing, we've noticed Oracle db running out of cursors. Might be
> related to this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)