hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Mitic (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4584) Fix TestNNWithQJM failures on Windows
Date Thu, 21 Mar 2013 08:15:16 GMT

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

Ivan Mitic commented on HDFS-4584:

Hi Arpit, thanks for the patch. 

I was thinking whether it's possible to alter the problematic test {{testNewNamenodeTakesOverWriter}}
in a way such that it can still run on Windows. What do you think about doing the following:
1. cluster1#format(true)#build() - same as now, this will generate local image file and namespace
2. cluster1#shutdown() - release file locks
3. FileUtil#copy() - 
4. cluster1#format(false)#build()
5. cluster1#FileSystem#mkdirs() - move mkdirs here such that it is saved in the edits log
6. cluster2#format(false)#build()

This should preserve the intent of the test and still allow it to run on Windows I think.
Let me know if this works. I am fine with the current patch if not.
> Fix TestNNWithQJM failures on Windows
> -------------------------------------
>                 Key: HDFS-4584
>                 URL: https://issues.apache.org/jira/browse/HDFS-4584
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.0.0
>         Environment: Windows
>            Reporter: Arpit Agarwal
>            Assignee: Arpit Agarwal
>             Fix For: 3.0.0
>         Attachments: HDFS-4584.1.patch, HDFS-4584.2.patch, HDFS-4584.3.patch
> Multiple test cases fail in TestNNWithQJM.
> List of failing test cases:
> -  testNewNamenodeTakesOverWriter(org.apache.hadoop.hdfs.qjournal.TestNNWithQJM): The
process cannot access the file because another process has locked a portion of the file
> -  testMismatchedNNIsRejected(org.apache.hadoop.hdfs.qjournal.TestNNWithQJM): Could not
format one or more JournalNodes. 1 exceptions thrown:
> -  testWebPageHasQjmInfo(org.apache.hadoop.hdfs.qjournal.TestNNWithQJM): Could not format
one or more JournalNodes. 1 exceptions thrown:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message