[
https://issues.apache.org/jira/browse/HDFS-6039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13918446#comment-13918446
]
Chris Nauroth commented on HDFS-6039:
-------------------------------------
The problem here is that we're mishandling renames. hdfs dfs -copyFromLocal
first creates the file in a temporary location. In this case it's
/tmp/HDFSAcls/Dir-0/Child_file.COPYING. Then, after creation is successful, it
renames to the final destination. The problem is that we copied the default ACL
during the initial create, and then we tried to copy it again during the
rename, resulting in this Duplicated ACLFeature error.
> Uploading a File under a Dir with default acls throws "Duplicated ACLFeature"
> -----------------------------------------------------------------------------
>
> Key: HDFS-6039
> URL: https://issues.apache.org/jira/browse/HDFS-6039
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Yesha Vora
> Assignee: Chris Nauroth
>
> Steps followed:
> 1) Create a Dir /tmp/HDFSAcls/Dir-0 and set default acl
> hdfs dfs -setfacl -m default:user:user_1:rw- /tmp/HDFSAcls/Dir-0
> 2) Upload a File under Dir-0 using copyFromLocal command
> hdfs dfs -copyFromLocal /tmp/file-11 /tmp/HDFSAcls/Dir-0/Child_file
> copyFromLocal: Duplicated ACLFeature
> The upload of file fails with Duplicated Acl Feature Error.
--
This message was sent by Atlassian JIRA
(v6.2#6252)