hadoop-hdfs-issues 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-9728) TestDFSShell should not create MiniDFSCluster in each test case
Date Mon, 01 Feb 2016 05:31:39 GMT
John Zhuge created HDFS-9728:
--------------------------------

             Summary: TestDFSShell should not create MiniDFSCluster in each test case
                 Key: HDFS-9728
                 URL: https://issues.apache.org/jira/browse/HDFS-9728
             Project: Hadoop HDFS
          Issue Type: Improvement
            Reporter: John Zhuge
            Assignee: John Zhuge
            Priority: Critical


Create the MiniDFSCluster in @BeforeClass method, and shut it down in @AfterClass method.
This fix will speed up unit testing of HDFS component.

When a test case needs 2 clusters, use the default one, and create a second one in the test
case. If there are too many test cases that need 2 clusters, move them to a different test
file.

Only when a custom cluster specific to that test case is needed, create the cluster in the
test case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message