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

Aaron T. Myers commented on HDFS-2346:
--------------------------------------

To reduce the inter-test dependency, might it make sense to reinitialize the 
{{ReplicasMap}} object in the {{setup()}} method each time? Even though 
{{ReplicasMap}} is no longer static, it's still shared between the test methods 
in the class. The original code would only add the block to the map once, since 
it was annotated with {{@BeforeClass}}, but now the {{setup()}} method will be 
executed for each test method.
                
> 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

        

Reply via email to