Ashish Kumar created HDDS-10397:
-----------------------------------

             Summary: Restrict legacy bucket directory deletion through sh 
command
                 Key: HDDS-10397
                 URL: https://issues.apache.org/jira/browse/HDDS-10397
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: Ashish Kumar
            Assignee: Ashish Kumar


When we create key inside legacy bucket (with enableFileSystemPath)
ozone sh key put vol1/bucket1/xyz//def/key1 file1
It gets normalized and inserted into keyTable as (Parent trailing slash is 
preserved)

xyz/
xyz/def/
xyz/def/key1



We should not allow delete of directory through sh key delete command as it can 
lead to orphan keys.

Instead user should delete legacy bucket directory only through fs command.

And appropriate message can be displayed if user deletes directory belonging to 
legacy bucket using sh.("Use FS interface to delete legacy bucket directory")



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