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

Bikas Saha commented on HADOOP-8973:
------------------------------------

Thats is a good idea to do if we need to find out if the current process user 
has certain permissions. But I guess the point we are debating on currently is 
whether we can make checkDisk(File) do what checkDisk(FS, Path, Perm) does. 
Perhaps by simply calling the second function. If checkDisk(FS, Path, Perm) 
meets our other needs then it should be enough. I think currently, the code 
checks for expected permissions, implicitly assuming the daemon processes to be 
running as the users who are supposed to have those permissions.
                
> 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
>         Attachments: HADOOP-8973-branch-trunk-win.patch
>
>
> 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

Reply via email to