[
https://issues.apache.org/jira/browse/HDFS-4584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13599181#comment-13599181
]
Arpit Agarwal commented on HDFS-4584:
-------------------------------------
The most problematic failure is the one in testNewNamenodeTakesOverWriter.
Exception details:
{code}testNewNamenodeTakesOverWriter(org.apache.hadoop.hdfs.qjournal.TestNNWithQJM)
Time elapsed: 2089 sec <<< ERROR!
java.io.IOException: The process cannot access the file because another process
has locked a portion of the file
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:198)
at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:80)
at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:54)
at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:100)
at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:423)
at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:414)
at
org.apache.hadoop.hdfs.qjournal.TestNNWithQJM.testNewNamenodeTakesOverWriter(TestNNWithQJM.java:122){code}
This tests starts one namenode and then attempts to copy the image files. It
fails on Windows since the files are open without shared read permissions.
Fixing it would require changing the name node to use native File IO.
I propose fixing testMismatchedNNIsRejected and testWebPageHasQjmInfo and
skipping testNewNamenodeTakesOverWriter on Windows for now.
We can file a separate JIRA for the name node change which I expect to be a
more involved fix.
> 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
> Fix For: 3.0.0
>
>
> 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