hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Zhuge (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-10287) MiniDFSCluster should implement AutoCloseable
Date Thu, 14 Apr 2016 05:52:25 GMT
John Zhuge created HDFS-10287:

             Summary: 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

{{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