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

Change HiveMetaStoreClient to AutoCloseable

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: Metastore
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: