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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to