Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4959

MiniYARNCluster should implement AutoCloseable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Not A Problem
    • 2.7.0
    • 2.7.0
    • test
    • None

    Description

      MiniYARNCluster 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

        Issue Links

          Activity

            People

              boky01 Andras Bokor
              jzhuge John Zhuge
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: