Skip to content

Conversation

@ss77892
Copy link
Contributor

@ss77892 ss77892 commented Jan 20, 2026

What changes were proposed in this pull request?

HDDS-13855. Move ACL check in Volume, Bucket and Keys requests to preexecute.

Please describe your PR in detail:
We are moving ACL checks from the validate cache method to the pre-execute stage to avoid multiple executions on all Ratis nodes. That's the second attempt, the first pr : #9297. In this PR all previous comments were addressed.

What is the link to the Apache JIRA

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

How was this patch tested?

Manual tests, UT

@ss77892 ss77892 changed the title HDDS-13855. Move ACL check in Volume, Bucket and Keys requests to pre… HDDS-13855. Move ACL check in Volume, Bucket and Keys requests to preExecute Jan 20, 2026
Copy link
Contributor

@jojochuang jojochuang left a comment

Choose a reason for hiding this comment

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

A lot of request handlers such as OMKeyAclRequest operates on OBS buckets. They have a sibling request like OMKeyAclRequestWithFSO, which operates on FSO buckets.

They are very similar but unfortunately are different request handlers for different buckets, and we need to move the acl check to preExecute() for them too.

bucket = resolvedBucket.realBucket();
key = objectParser.getKey();

// check Acl
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to repeat this for OMKeyAclRequestWithFSO.

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.

2 participants