Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16914

Change HiveMetaStoreClient to AutoCloseable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 3.0.0
    • Metastore
    • None

    Description

      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.

      Attachments

        1. HIVE-16914.01.patch
          0.9 kB
          Xiaomeng Zhang

        Activity

          People

            Xiaomeng Zhang Xiaomeng Zhang
            Xiaomeng Zhang Xiaomeng Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: