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

Mit Desai commented on HDFS-5023:
---------------------------------

Sure Jing.
-Main reason for the test failure was JAVA Version. The test were written 
keeping in mind the nature of Java 6 where it would work fine. But with Java 7 
running the tests in a random order, the tests would start failing.
-The test creates files/snapshots during the entire test series. The problem 
was not cleaning these up.
-When a test that created a snapshot ends, it was not actually deleting the 
snapshot and that was being misinterpreted by the test that would be running 
next and the assert was failing due to inconsistent values.
-I think, making sure that the tests are independent of each other and that 
every test that makes any modification is just limited to that test would not 
give rise to such issues in future.

> TestSnapshotPathINodes.testAllowSnapshot is failing in branch-2
> ---------------------------------------------------------------
>
>                 Key: HDFS-5023
>                 URL: https://issues.apache.org/jira/browse/HDFS-5023
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: snapshots, test
>    Affects Versions: 2.4.0
>            Reporter: Ravi Prakash
>            Assignee: Mit Desai
>              Labels: test
>         Attachments: HDFS-5023.patch, HDFS-5023.patch, HDFS-5023.patch, 
> TEST-org.apache.hadoop.hdfs.server.namenode.TestSnapshotPathINodes.xml, 
> org.apache.hadoop.hdfs.server.namenode.TestSnapshotPathINodes-output.txt
>
>
> The assertion on line 91 is failing. I am using Fedora 19 + JDK7. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to