You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2024/05/09 20:20:00 UTC

[jira] [Updated] (HDDS-10781) Do not use OFSPath in O3FS BasicOzoneClientAdapterImpl

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

Attila Doroszlai updated HDDS-10781:
------------------------------------
    Summary: Do not use OFSPath in O3FS BasicOzoneClientAdapterImpl  (was: [hsync] BasicOzoneClientAdapterImpl#isFileClosed using OFSPath which is an Utility class for OFS not O3FS)

> Do not use OFSPath in O3FS BasicOzoneClientAdapterImpl
> ------------------------------------------------------
>
>                 Key: HDDS-10781
>                 URL: https://issues.apache.org/jira/browse/HDDS-10781
>             Project: Apache Ozone
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Chung En Lee
>            Assignee: Chung En Lee
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.5.0
>
>
> In BasicOzoneClientAdapterImpl#isFileClosed we use OFSPath to check if the path was a key, but it Utility class for OFS not O3FS. That is to say, the pathStr doen't include volume and bucket but the OFSPath still setting the first two levels of directories or key as volume and bucket. If the path was less than two level it comes out an error.
> [https://github.com/apache/ozone/blob/HDDS-7593/hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneClientAdapterImpl.java#L774]
>  
>  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org