You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "John Zhuge (JIRA)" <ji...@apache.org> on 2016/04/14 08:06:25 UTC
[jira] [Updated] (HDFS-10288) MiniYARNCluster should implement
AutoCloseable
[ https://issues.apache.org/jira/browse/HDFS-10288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Zhuge updated HDFS-10288:
------------------------------
Description:
{{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.
was:
{{MiniDFSCluster}} 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.
> MiniYARNCluster should implement AutoCloseable
> ----------------------------------------------
>
> Key: HDFS-10288
> URL: https://issues.apache.org/jira/browse/HDFS-10288
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: test
> Affects Versions: 2.7.0
> Reporter: John Zhuge
> Assignee: 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)