Skip to content

HDDS-13907. Prune ACLs from OmKeyInfo before building purge requests in DirectoryDeletingService#9275

Merged
swamirishi merged 4 commits intoapache:masterfrom
aryangupta1998:HDDS-13907
Nov 11, 2025
Merged

HDDS-13907. Prune ACLs from OmKeyInfo before building purge requests in DirectoryDeletingService#9275
swamirishi merged 4 commits intoapache:masterfrom
aryangupta1998:HDDS-13907

Conversation

@aryangupta1998
Copy link
Contributor

What changes were proposed in this pull request?

During directory deletion, ACL information stored in OmKeyInfo objects is unnecessary for purge operations and can increase memory and log payload size. This change clears ACLs from all OmKeyInfo instances collected in purge requests to optimize memory usage and reduce unnecessary data serialization.

What is the link to the Apache JIRA

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

How was this patch tested?

Tested Manually.

@adoroszlai adoroszlai changed the title HDDS-13907. Prune ACLs from OmKeyInfo before building purge directory requests in DirectoryDeletingService. HDDS-13907. Prune ACLs from OmKeyInfo before building purge requests in DirectoryDeletingService Nov 10, 2025
@adoroszlai adoroszlai marked this pull request as draft November 10, 2025 20:27
@adoroszlai
Copy link
Contributor

adoroszlai commented Nov 11, 2025

Copy link
Contributor

@swamirishi swamirishi left a comment

Choose a reason for hiding this comment

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

LGTM thanks for the patch @aryangupta1998. Do you think we can add some unit test for this?

@aryangupta1998
Copy link
Contributor Author

@swamirishi sure, will add a unit test in a follow up jira!

@aryangupta1998 aryangupta1998 marked this pull request as ready for review November 11, 2025 15:23
@swamirishi swamirishi merged commit 576d5cf into apache:master Nov 11, 2025
55 checks passed
@swamirishi
Copy link
Contributor

thank you @aswinshakil @adoroszlai for reviewing the patch

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