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-6948. MultiTenantAccessAuthorizerRangerPlugin#deletePolicyByName should log and exit if getAccessPolicyByName returns null #3551

Merged
merged 1 commit into from Jun 28, 2022

Conversation

ghuangups
Copy link
Contributor

@ghuangups ghuangups commented Jun 26, 2022

What changes were proposed in this pull request?

Check whether return policy is null. If so, we should log and exit instead of still trying to delete the policy.

What is the link to the Apache JIRA

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

How was this patch tested?

N/A

…yName should log and exit if getAccessPolicyByName returns null
@swagle swagle requested a review from smengcl June 27, 2022 18:08
Copy link
Contributor

@smengcl smengcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ghuangups for the improvement!

Note once RangerClient work is done this whole class will very likely be removed (as RangerClient will handle the request logic and we don't need to manually handle this part in Ozone anymore), during HDDS-6909 or after it.

@smengcl smengcl changed the title HDDS-6948. MultiTenantAccessAuthorizerRangerPlugin.java#deletePolicyB… HDDS-6948. MultiTenantAccessAuthorizerRangerPlugin#deletePolicyB… Jun 27, 2022
@smengcl smengcl changed the title HDDS-6948. MultiTenantAccessAuthorizerRangerPlugin#deletePolicyB… HDDS-6948. MultiTenantAccessAuthorizerRangerPlugin#deletePolicyByName should log and exit if getAccessPolicyByName returns null Jun 27, 2022
@smengcl smengcl merged commit f7bd665 into apache:master Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants