[
https://issues.apache.org/jira/browse/HDDS-9946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai resolved HDDS-9946.
------------------------------------
Fix Version/s: 1.5.0
Resolution: Implemented
> Move pathComponents calculation to OMFileRequest#getParentID
> ------------------------------------------------------------
>
> Key: HDDS-9946
> URL: https://issues.apache.org/jira/browse/HDDS-9946
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: OM
> Reporter: Ivan Andika
> Assignee: TaiJuWu
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.5.0
>
>
> From [https://github.com/apache/ozone/pull/5753#discussion_r1424861368]
> We can remove this {{pathComponents}} argument from the
> {{OMFileRequest#getParentID}} method and instead call the {{Iterator<Path>
> pathComponents = Paths.get(keyName).iterator()}} inside the
> {{OMFileRequest#getParentID}} instead.
> This will remove duplication of FSO path components calculation.
> After this patch, {{Iterator<Path> pathComponents =
> Paths.get(keyName).iterator() }}should only exist in OMFileRequest#getParentID
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]