hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Kolbasov (JIRA)" <>
Subject [jira] [Commented] (HIVE-17730) Queries can be closed automatically
Date Wed, 11 Oct 2017 03:56:00 GMT


Alexander Kolbasov commented on HIVE-17730:

There are also many cases where {{QueryWrapper}} isn't used and instead {{rollbackAndCleanup()}}
is called directly to close the query. This should be converted to {{QueryWrapper}} as well.

> Queries can be closed automatically
> -----------------------------------
>                 Key: HIVE-17730
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Alexander Kolbasov
>            Assignee: Alexander Kolbasov
>         Attachments: HIVE-17730.01.patch
> HIVE-16213 made QueryWrapper AutoCloseable, but queries are still closed manually and
not by using try-with-resource. And now Query itself is auto closeable, so we don't need the
wrapper at all.
> So we should get rid of QueryWrapper and use try-with-resource to create queries.

This message was sent by Atlassian JIRA

View raw message