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

Eli Collins commented on HDFS-254:
----------------------------------

Checking that you get AccessControlExceptions eg when trying to open/reading a 
write-only file via a link or delete a read-only file via a link should really 
go in TestDFSPermission, but that needs to be ported to FileContextFirst. I'll 
file a jira for that. Currently testSetPermission in TestLink checks that 
changing the permissions using the link modifies the permissions of the link 
target not the link itself. Based on your comment I added an additional check 
that getting the permissions object via getFileStatus works equivalently if 
given the path to a file or a symlink to the file, updated the diff. 

> Add more unit test for HDFS symlinks
> ------------------------------------
>
>                 Key: HDFS-254
>                 URL: https://issues.apache.org/jira/browse/HDFS-254
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: dhruba borthakur
>            Assignee: Eli Collins
>         Attachments: SymlinkTestPlan.html, testplanv1.txt
>
>
> HADOOP-4044 introduces symbolic links in HDFS. That patch has some unit tests 
> associated with it. The aim of this JIRA is to add more unit tests (including 
> negative tests):
> deleting a symlink that points to a file
> deleting a symlink that points to a directory
> symlink to a symlink
> any test cases with relative links
> delete linked to file, but not link, access link
> delete linked to file, recreate the same file, access link
> links to other filesystems
> archives containing links
> rename a file to an existing symlink
> rename a symlink to an existing file
> setTimes and setReplication cases should check the result on both the symlink 
> and linked to file
> tests involving lack of permissions to create symlinks
> tests that try to createSymlinks with filesystems that don't support them
> ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to