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
- is related to
-
HDFS-10287 MiniDFSCluster should implement AutoCloseable
- Resolved
- relates to
-
YARN-4994 Use MiniYARNCluster with try-with-resources in tests
- Resolved