hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laxman (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-2346) TestHost2NodesMap & TestReplicasMap tests are failing in 0.23 branch & Trunk
Date Tue, 27 Sep 2011 06:31:13 GMT

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

Laxman commented on HDFS-2346:
------------------------------

{quote}To reduce the inter-test dependency, might it make sense to reinitialize the ReplicasMap
object in the setup() method each time?{quote}

For each testcase (testMethod), TestClass will be instantiated once. i.e, each test method
will be invoked on a new instance of the test class. For every new instance, this map [instance
variables] will be re-instantiated. So, it doesn't make any difference from resetting in setup
method.

I just verified above behavior from eclipse by executing the test methods of these class in
different order. With this patch tests are always passing irrelevant to the execution order.

@atm, I hope this clarifies your concern about execution order dependency.

                
> TestHost2NodesMap & TestReplicasMap tests are failing in 0.23 branch & Trunk
> ----------------------------------------------------------------------------
>
>                 Key: HDFS-2346
>                 URL: https://issues.apache.org/jira/browse/HDFS-2346
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.20.205.0, 0.22.0, 0.23.0, 0.24.0
>            Reporter: Uma Maheswara Rao G
>            Assignee: Laxman
>            Priority: Blocker
>         Attachments: HDFS-2346.20-security.205.Patch, HDFS-2346.22Branch.patch, HDFS-2346.Trunk.patch,
HDFS-2346.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message