nandakumar131 commented on PR #6780:
URL: https://github.com/apache/ozone/pull/6780#issuecomment-2154356505

   > If user1 runs below command
   ozone fs -rm -r -skipTrash ofs://om/tmp/
   It will just delete user1 files inside user1 hashed bucket
   
   > But if same user1 runs below command
   ozone sh volume delete -r -y tmp
   In this case it will delete all users file.
   
   We should not have such inconsistent behaviour, we can throw error if the 
user performing the delete doesn't have permission. Here the user is explicitly 
 performing delete operation on the whole `tmp` directory (`ozone fs -rm -r 
-skipTrash ofs://om/tmp/`), but we are returning success without deleting the 
whole data.
   
   If we are allowing same operation via both Object Store API and Filesystem 
API, we should be consistent.


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