[ https://issues.apache.org/jira/browse/YARN-4959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Zhuge moved HDFS-10288 to YARN-4959: ----------------------------------------- Assignee: (was: John Zhuge) Affects Version/s: (was: 2.7.0) 2.7.0 Target Version/s: 2.8.0 (was: 2.8.0) Component/s: (was: test) test Key: YARN-4959 (was: HDFS-10288) Project: Hadoop YARN (was: Hadoop HDFS) > MiniYARNCluster should implement AutoCloseable > ---------------------------------------------- > > Key: YARN-4959 > URL: https://issues.apache.org/jira/browse/YARN-4959 > Project: Hadoop YARN > Issue Type: Improvement > Components: test > Affects Versions: 2.7.0 > Reporter: John Zhuge > Priority: Trivial > > {{MiniYARNCluster}} should implement {{AutoCloseable}} in order to support > [try-with-resources|https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html]. > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)