You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2012/10/24 23:02:12 UTC
[jira] [Commented] (HADOOP-8973) DiskChecker cannot reliably detect
an inaccessible disk on Windows with NTFS ACLs
[ https://issues.apache.org/jira/browse/HADOOP-8973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483589#comment-13483589 ]
Chris Nauroth commented on HADOOP-8973:
---------------------------------------
Here is the JVM bug report:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6203387
This was closed as Won't Fix with suggestions to code work-arounds that involve actually attempting file system operations or using JNI to call a Windows API. The bug report also says that the new file APIs in JDK7 will address this.
The problem is visible when running TestDiskChecker, which fails on Windows. I suspect no one noticed the problem on branch-1-win, because that version of the code does not have a test suite for DiskChecker.
> DiskChecker cannot reliably detect an inaccessible disk on Windows with NTFS ACLs
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-8973
> URL: https://issues.apache.org/jira/browse/HADOOP-8973
> Project: Hadoop Common
> Issue Type: Bug
> Components: util
> Affects Versions: trunk-win
> Reporter: Chris Nauroth
> Assignee: Chris Nauroth
>
> DiskChecker.checkDir uses File.canRead, File.canWrite, and File.canExecute to check if a directory is inaccessible. These APIs are not reliable on Windows with NTFS ACLs due to a known JVM bug.
--
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