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-12600. Acls should be lazily loaded only when the acls are updated or serialized back OmKeyInfo/OmDirectoryInfo #8077

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

swamirishi
Copy link
Contributor

What changes were proposed in this pull request?

Currently on Deserialization of a bulky OmKeyInfo & OmDirectoryInfo takes a really long time if the key has too many Acls and a good amount of time is spent in the following function while converting a proto KeyInfo to Java OmKeyInfo

public static List<OzoneAcl> fromProtobuf(List<OzoneAclInfo> protoAcls) {

This patch proposes to lazily load the acl info if the object is going to be only read and in most of the flows these ACLs are never used and we end up wasting CPU in deserializing the entire ACL info.

What is the link to the Apache JIRA

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

How was this patch tested?

Existing unit tests & performance benchmarking in progress.

…ed or serialized back OmKeyInfo/OmDirectoryInfo

Change-Id: I632bde0bce5fc0014f5a7e4eca96c6aa8a9f5f99
Change-Id: I848ad170273e855c98c9823d6e0659d5bef69b27
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.

1 participant