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/12/15 01:50:12 UTC
[jira] [Updated] (HADOOP-9146) failure to set sticky bit regression
on branch-trunk-win
[ https://issues.apache.org/jira/browse/HADOOP-9146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Nauroth updated HADOOP-9146:
----------------------------------
Attachment: HADOOP-9146-branch-trunk-win.1.patch
The attached patch restores sticky bit functionality on branch-trunk-win.
> failure to set sticky bit regression on branch-trunk-win
> --------------------------------------------------------
>
> Key: HADOOP-9146
> URL: https://issues.apache.org/jira/browse/HADOOP-9146
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: trunk-win
> Reporter: Chris Nauroth
> Assignee: Chris Nauroth
> Fix For: trunk-win
>
> Attachments: HADOOP-9146-branch-trunk-win.1.patch
>
>
> The problem is visible by running {{TestDFSShell#testFilePermissions}}. The test fails on trying to set sticky bit. The problem is that branch-trunk-win accidentally merged in a branch-1 change in {{RawLocalFileSystem#setPermission}} to call {{FileUtil#setPermission}}, which sets permissions using Java {{File}} API. There is no way to set sticky bit through this API. We need to switch back to the trunk implementation of {{RawLocalFileSystem#setPermission}}, which uses either native code or a shell call to external chmod.
--
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