[
https://issues.apache.org/jira/browse/HIVE-16914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yongzhi Chen updated HIVE-16914:
--------------------------------
Resolution: Fixed
Fix Version/s: 3.0.0
Status: Resolved (was: Patch Available)
Commit the fix into master, thanks [~Xiaomeng Zhang] for your contribution.
> Change HiveMetaStoreClient to AutoCloseable
> -------------------------------------------
>
> Key: HIVE-16914
> URL: https://issues.apache.org/jira/browse/HIVE-16914
> Project: Hive
> Issue Type: Improvement
> Components: Metastore
> Reporter: Xiaomeng Zhang
> Assignee: Xiaomeng Zhang
> Priority: Trivial
> Fix For: 3.0.0
>
> Attachments: HIVE-16914.01.patch
>
>
> During my usage of HiveMetaStoreClient for testing, I found that this class
> is not AutoCloseable. Adding this change to support
> try(HiveMetaStoreClient hmsClient = HiveEnv.createHMSClient()) {
> ...
> ...
> ...
> ...
> }
> So we don't have to manually close it in finally block.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)