hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andras Bokor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10287) MiniDFSCluster should implement AutoCloseable
Date Mon, 25 Apr 2016 17:05:13 GMT

    [ https://issues.apache.org/jira/browse/HDFS-10287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15256594#comment-15256594

Andras Bokor commented on HDFS-10287:

You are right. This was linked to YARN-4959 as clone so I did not listen to the class name
carefully enough. Either my comment or my patch is not applicable here but for YARN-4959.
Do you think the patch is needed (note that it was done for MiniYARNCluster)?

> MiniDFSCluster should implement AutoCloseable
> ---------------------------------------------
>                 Key: HDFS-10287
>                 URL: https://issues.apache.org/jira/browse/HDFS-10287
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: test
>    Affects Versions: 2.7.0
>            Reporter: John Zhuge
>            Assignee: John Zhuge
>            Priority: Trivial
>         Attachments: HDFS-10287.01.patch
> {{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.

This message was sent by Atlassian JIRA

View raw message