Skip to content
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

Merged
merged 1 commit into from
May 14, 2024

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

  • Avoid NPE in OzoneAclUtils.isOwner (and simplify condition)
  • Call isOwner lazily

https://issues.apache.org/jira/browse/HDDS-10371

How was this patch tested?

CI:
https://github.com/adoroszlai/ozone/actions/runs/9076402412

@adoroszlai adoroszlai self-assigned this May 14, 2024
@ChenSammi
Copy link
Contributor

@adoroszlai , thanks for working on this. Could you elaborate a bit more that how this lazy call can avoid NPE?

@adoroszlai
Copy link
Contributor Author

NPE is avoided by swapping the order of equals, not by lazy call.

@adoroszlai adoroszlai requested a review from hemantk-12 May 14, 2024 15:52
Copy link
Contributor

@hemantk-12 hemantk-12 left a 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.

@kerneltime
Copy link
Contributor

Thank you for this fix.

@kerneltime kerneltime merged commit 459feac into apache:master May 14, 2024
39 checks passed
@adoroszlai adoroszlai deleted the HDDS-10371 branch May 15, 2024 05:24
@adoroszlai
Copy link
Contributor Author

Thanks @ChenSammi, @kerneltime, @smengcl for the review.

jojochuang pushed a commit to jojochuang/ozone that referenced this pull request May 23, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Jul 17, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Jul 17, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Jul 17, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Jul 18, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants