bharatviswa504 commented on a change in pull request #1263: HDDS-1927. 
Consolidate add/remove Acl into OzoneAclUtil class. Contri…
URL: https://github.com/apache/hadoop/pull/1263#discussion_r315467845
 
 

 ##########
 File path: 
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyInfo.java
 ##########
 @@ -235,123 +231,22 @@ public FileEncryptionInfo getFileEncryptionInfo() {
     return encInfo;
   }
 
-  public List<OzoneAclInfo> getAcls() {
+  public List<OzoneAcl> getAcls() {
 
 Review comment:
   > Raw protobuf class can't be extended easily for acl operations. We will 
have to to wrap the acl operations anyway.
   
   Not understood what do you mean by wrap ACL operations anyway.
   
   > Given the scatter logic of ACL ops for volume/bucket/key/prefix, I would 
prefer to have a unified code base that can be maintained/tested easily in the 
long run.
   
   I understand that instead of spreading logic across in multiple places keep 
acl logic in single place, which can be used in all bucket/key/prefix ops. I 
agree with that point. But I have not understood why same cannot be done with 
protobuf acl objects.
   
   3. Agreed thar write acl operations/ will be lesser than read Acls.
   
   But if you think this is the right way to go, I am fine with it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to