-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDDS-1538. Update ozone protobuf message for ACLs. Contributed by Ajay Kumar. #828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
💔 -1 overall
This message was automatically generated. |
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConsts.java
Show resolved
Hide resolved
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConsts.java
Show resolved
Hide resolved
| <property> | ||
| <name>ozone.om.group.rights</name> | ||
| <value>READ_WRITE</value> | ||
| <value>ALL</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please use the new config style ..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rest/RestClient.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java
Show resolved
Hide resolved
| try { | ||
| aclRights.add(OzoneAclRights.valueOf(right.name())); | ||
| } catch (IllegalArgumentException iae) { | ||
| LOG.error("ACL:{} right is not recognized.", acl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be more than a LOG.Error? if we don't recognize an ACL shouldn't we return an error to the caller instead of ignoring and continue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this involves a list of acls IMO a single bad acl type should not halt the usage of remaining ones. But i am open to change if you think we should throw error at this point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with @anuengineer based on offline discussion with @ajayydv . We should stop here instead of catch and let the parsing continue.
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/protocolPB/OMPBHelper.java
Show resolved
Hide resolved
| for(OzoneAclRights acl:aclInfo.getRightsList()) { | ||
| try { | ||
| aclRights.add(ACLType.valueOf(acl.name())); | ||
| } catch(IllegalArgumentException iae) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the try catch. Same as above.
|
💔 -1 overall
This message was automatically generated. |
|
Thanks @ajayydv for working on this. +1, please confirm unit test failure are not related. |
|
test failures look unrelated. All failed tests passed locally. |
|
@xiaoyuyao thanks for review. |
No description provided.