[ 
https://issues.apache.org/jira/browse/HDDS-14172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Attila Doroszlai reassigned HDDS-14172:
---------------------------------------

    Assignee: Chen-Jheng Sing  (was: Attila Doroszlai)

> Reduce copying in OMFileRequest.getDirectoryInfo
> ------------------------------------------------
>
>                 Key: HDDS-14172
>                 URL: https://issues.apache.org/jira/browse/HDDS-14172
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Manager
>            Reporter: Attila Doroszlai
>            Assignee: Chen-Jheng Sing
>            Priority: Major
>
> {{OMFileRequest.getDirectoryInfo}} creates {{OmDirectoryInfo}} from 
> {{OmKeyInfo}}, copying list of {{acls}}, map of {{metadata}} and {{tags}}.  
> After HDDS-14151 we can skip copying by storing {{OmKeyInfo}}'s immutable 
> collections directly.
> - Change {{OmKeyInfo#getAcls()}} to return {{ImmutableList}}, 
> - Add {{private OmDirectoryInfo.Builder(OmKeyInfo)}}, which should
> -- call {{super(keyInfo)}} to set inherited properties
> -- assign {{acls = AclListBuilder.of(keyInfo.getAcls())}}
> -- assign {{tags = MapBuilder.of(keyInfo.getTags())}}
> -- assign {{name = keyInfo.getFileName()}}, {{OzoneFSUtils.getFileName}} is 
> no longer necessary
> -- set creation/modification time as is
> - Add {{public static OmDirectoryInfo of(OmKeyInfo)}}, and replace 
> {{OMFileRequest.getDirectoryInfo}} implementation with a call to it.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to