Skip to content

HDDS-15982. Fix UnsupportedOperationException and add idempotency to RangerClientMultiTenantAccessController#10872

Open
MahmoudHassanen99 wants to merge 4 commits into
apache:masterfrom
MahmoudHassanen99:HDDS-15982
Open

HDDS-15982. Fix UnsupportedOperationException and add idempotency to RangerClientMultiTenantAccessController#10872
MahmoudHassanen99 wants to merge 4 commits into
apache:masterfrom
MahmoudHassanen99:HDDS-15982

Conversation

@MahmoudHassanen99

Copy link
Copy Markdown

What changes were proposed in this pull request?

  1. Fixed UnsupportedOperationException when initializing policy items/accesses in RangerClientMultiTenantAccessController by using explicit mutable ArrayList instances.
  2. Added idempotency to createRole and createPolicy operations (gracefully catches HTTP 400 duplicate errors and fetches the existing resource).
  3. Added tolerant deletion to deleteRole and deletePolicy operations (gracefully catches HTTP 404 missing errors).

What is the link to the Apache JIRA issue?

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

How was this patch tested?

Verified via code inspection and integration flow testing for multi-tenant Ranger client access management.

…RangerClientMultiTenantAccessController

Co-authored-by: sallmayasser <sallmayasser512@gmail.com>
@adoroszlai
adoroszlai requested a review from smengcl July 26, 2026 04:28

@adoroszlai adoroszlai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @MahmoudHassanen99 for the patch. Please enable workflows in your fork.

@MahmoudHassanen99

Copy link
Copy Markdown
Author

Thanks @adoroszlai and @ayushtkn for the review

I have pushed a new commit addressing all the feedback (cleaned up Javadoc/license, removed internal tags, and kept single-line logging). Ready for another look

MahmoudHassanen99 and others added 2 commits July 26, 2026 14:20
Co-authored-by: Amr ElBoridy <amrelboridy7@gmail.com>
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.

3 participants