hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaomeng Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-16914) Change HiveMetaStoreClient to AutoCloseable
Date Fri, 16 Jun 2017 20:40:01 GMT
Xiaomeng Zhang created HIVE-16914:
-------------------------------------

             Summary: 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


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)

Mime
View raw message