You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Brandon Li (JIRA)" <ji...@apache.org> on 2012/08/04 00:46:02 UTC
[jira] [Created] (HDFS-3763) TestNameNodeMXBean fails on Windows
Brandon Li created HDFS-3763:
--------------------------------
Summary: 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
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
[jira] [Updated] (HDFS-3763) TestNameNodeMXBean fails on Windows
Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Srinivas updated HDFS-3763:
----------------------------------
Fix Version/s: 1-win
> 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
> Fix For: 1-win
>
> 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
[jira] [Resolved] (HDFS-3763) TestNameNodeMXBean fails on Windows
Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Srinivas resolved HDFS-3763.
-----------------------------------
Resolution: Fixed
Hadoop Flags: Reviewed
I committed the patch. Thank you Brandon.
> 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
[jira] [Commented] (HDFS-3763) TestNameNodeMXBean fails on Windows
Posted by "Brandon Li (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (HDFS-3763) TestNameNodeMXBean fails on Windows
Posted by "Brandon Li (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Li updated HDFS-3763:
-----------------------------
Attachment: HADOOP-62.branch-1-win.patch
> 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
[jira] [Commented] (HDFS-3763) TestNameNodeMXBean fails on Windows
Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433882#comment-13433882 ]
Suresh Srinivas commented on HDFS-3763:
---------------------------------------
+1 for the patch.
> 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