Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-10287

MiniDFSCluster should implement AutoCloseable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      MiniDFSCluster should implement AutoCloseable in order to support try-with-resources. It will make test code a little cleaner and more reliable.

      Since AutoCloseable is only in Java 1.7 or later, this can not be backported to Hadoop version prior to 2.7.

        Attachments

        1. HDFS-10287.01.patch
          7 kB
          Andras Bokor
        2. HDFS-10287.02.patch
          7 kB
          Andras Bokor
        3. HDFS-10287.03.patch
          6 kB
          Andras Bokor

          Issue Links

            Activity

              People

              • Assignee:
                boky01 Andras Bokor
                Reporter:
                jzhuge John Zhuge
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: