-
Notifications
You must be signed in to change notification settings - Fork 509
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
HDDS-10371. NPE in OzoneAclUtils.isOwner #6676
Conversation
@adoroszlai , thanks for working on this. Could you elaborate a bit more that how this lazy call can avoid NPE? |
NPE is avoided by swapping the order of |
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.
Thanks, @adoroszlai for the change.
LGTM+1.
Thank you for this fix. |
Thanks @ChenSammi, @kerneltime, @smengcl for the review. |
(cherry picked from commit 459feac)
(cherry picked from commit 459feac)
(cherry picked from commit 459feac)
(cherry picked from commit 459feac)
(cherry picked from commit 459feac)
What changes were proposed in this pull request?
OzoneAclUtils.isOwner
(and simplify condition)isOwner
lazilyhttps://issues.apache.org/jira/browse/HDDS-10371
How was this patch tested?
CI:
https://github.com/adoroszlai/ozone/actions/runs/9076402412