You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/09/23 03:28:41 UTC

[GitHub] [ozone] xichen01 commented on pull request #3774: HDDS-7253. Fix exception when '/' in key name

xichen01 commented on PR #3774:
URL: https://github.com/apache/ozone/pull/3774#issuecomment-1255763985

   when '/' in key name the `listSatus` will create a `fake directory` return to the client. The client will get the fake directory info through `getfileStatus`, but currently `getfileStatus` has no logic for `fake directory`, this is inconsistent with `listStatus `behavior, So some exceptions occur.
   This PR is to make `listStatus` and `getFileStatus` have the same behavior.
   https://github.com/apache/ozone/blob/6c1a5ee07eedfee3e40405bc2d36a7c07e66ab76/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java#L1700-L1711
   
   The problem I'm currently having is that I can't use the `-du/-count` command. Since some keys have '/' in their names.
   For some already created and used buckets whose layout is LEGACY, some file system commands cannot be used due to the `fake directory` returned by `listStatus`. This should not be expected behavior, we should be able to handle this situation correctly
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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