You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Adam Antal (JIRA)" <ji...@apache.org> on 2018/10/02 14:07:00 UTC
[jira] [Commented] (HDFS-13950) ACL documentation update to
indicate that ACL entries are capped by 32
[ https://issues.apache.org/jira/browse/HDFS-13950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16635540#comment-16635540 ]
Adam Antal commented on HDFS-13950:
-----------------------------------
As my understanding is correct of HDFS-7582, max entries rule is checked against access and default entries separately, so the addition to the doc should be reflecting this.
Associated code:
{code:java}
List<AclEntry> accessEntries = scopedEntries.getAccessEntries();
List<AclEntry> defaultEntries = scopedEntries.getDefaultEntries();
if (accessEntries.size() > MAX_ENTRIES) {
throw new AclException("Invalid ACL: ACL has " + accessEntries.size()
+ " access entries, which exceeds maximum of " + MAX_ENTRIES + ".");
}
if (defaultEntries.size() > MAX_ENTRIES) {
throw new AclException("Invalid ACL: ACL has " + defaultEntries.size()
+ " default entries, which exceeds maximum of " + MAX_ENTRIES + ".");
}{code}
> ACL documentation update to indicate that ACL entries are capped by 32
> ----------------------------------------------------------------------
>
> Key: HDFS-13950
> URL: https://issues.apache.org/jira/browse/HDFS-13950
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: hdfs
> Reporter: Adam Antal
> Assignee: Adam Antal
> Priority: Minor
>
> The hadoop documentation does not contain the information that the ACL entries of a file or dir are capped by 32. My proposal is to add a single line to the md file informing the users about this.
> Remark: this is indeed the maximum as (from AclTransformation.java)
> {code:java}
> private static final int MAX_ENTRIES = 32;{code}
> is set as such.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org