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

Siyao Meng updated HDDS-9072:
-----------------------------
    Fix Version/s: 1.4.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> CreateFile is not setting isFile flag in OmKeyInfo
> --------------------------------------------------
>
>                 Key: HDDS-9072
>                 URL: https://issues.apache.org/jira/browse/HDDS-9072
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Hemant Kumar
>            Assignee: Hemant Kumar
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>
> While looking into CreateFile code path, I found an issue that we don’t set 
> *_isFile_* in 
> [createFileInfo|https://github.com/apache/ozone/blob/f2ef43b638e2df94af2a8e30fcef3849697195dc/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyRequest.java#L689]
>  because of that OzoneBucket.listKeys’s response say that key is not file but 
> in actual it is file.
> Response form OzoneBucket.getKey()
> {code}
> Volume: volume15890, Bucket: 0af48caf-0327-495f-bca1-eda33a3f7c18, keyName: 
> 5ba8996a-0679-4ef3-8458-c522d8c0cfb0, isFile: true
> {code}
> While response from OzoneBucket.listKeys()
> {code}
> Volume: volume15890, Bucket: 0af48caf-0327-495f-bca1-eda33a3f7c18, keyName: 
> 5ba8996a-0679-4ef3-8458-c522d8c0cfb0, isFile: false
> {code}



--
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