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

Brandon Li commented on HDFS-3763:
----------------------------------

Uploaded a patch for this issue. Basically, the patch provides a new method in 
NN. This new method is used for error injection tests only, which closes the 
edits stream(thus the file is released by NN) and replace it with a mocked 
stream. The mocked stream can inject edits log access errors. 
                
> TestNameNodeMXBean fails on Windows
> -----------------------------------
>
>                 Key: HDFS-3763
>                 URL: https://issues.apache.org/jira/browse/HDFS-3763
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 1-win
>            Reporter: Brandon Li
>            Assignee: Brandon Li
>         Attachments: HADOOP-62.branch-1-win.patch
>
>
> One step of the test is to change the edit directory permission to "000" and 
> then do rolledit. On linux rolledit operation will fail and the edit 
> directory will be considered as failed by NN.
> However, changing the directory permission to 000 on Windows doesn't affect 
> some accessibility of its sub-directories and files. Therefore, the edit 
> files in the edit directory is still accessible and thus is not considered as 
> "failed" by NN, which eventually causes test failure.

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