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

MiniDFSCluster should implement AutoCloseable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.0
    • 2.8.0, 3.0.0-alpha1
    • test
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: