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

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

Hi Uma, the patch looks fine, and is a good change to make, but I don't see how 
this addresses the cause of these failures. I believe the test cases are run in 
separate JVMs, which should result in all file locks being released before the 
next test is run.

Were you able to reproduce these failures in your own environment? If so, how? 
And can you verify that this patch fixes the issue?
                
>  TestDFSClientExcludedNodes is failing in trunk.
> ------------------------------------------------
>
>                 Key: HDFS-2531
>                 URL: https://issues.apache.org/jira/browse/HDFS-2531
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.24.0
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>         Attachments: HDFS-2531.patch
>
>
> FAILED:  org.apache.hadoop.hdfs.TestDFSClientExcludedNodes.testExcludedNodes
> Error Message:
> Cannot lock storage 
> /home/jenkins/jenkins-slave/workspace/Hadoop-Hdfs-trunk/trunk/hadoop-hdfs-project/hadoop-hdfs/target/test/data/dfs/name1.
>  The directory is already locked.
> Stack Trace:
> java.io.IOException: Cannot lock storage 
> /home/jenkins/jenkins-slave/workspace/Hadoop-Hdfs-trunk/trunk/hadoop-hdfs-project/hadoop-hdfs/target/test/data/dfs/name1.
>  The directory is already locked.
> at 
> org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.lock(Storage.java:586)
> at 
> org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.analyzeStorage(Storage.java:435)
> at 
> org.apache.hadoop.hdfs.server.namenode.FSImage.recoverStorageDirs(FSImage.java:253)
> at 
> org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:169)
> at 
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:371)
> at 
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:314)
> at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:298)
> at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:332)

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