You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Neil Joshi (Jira)" <ji...@apache.org> on 2023/02/02 23:34:00 UTC

[jira] [Created] (HDDS-7884) ofs: Recursive delete of path of symlink with empty source fails

Neil Joshi created HDDS-7884:
--------------------------------

             Summary: ofs: Recursive delete of path of symlink with empty source fails
                 Key: HDDS-7884
                 URL: https://issues.apache.org/jira/browse/HDDS-7884
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Neil Joshi


There exists a bug in ofs for the recursive delete of paths with symlinks that have empty src bucket. 

Symlinks with empty source src occurs when the src bucket is deleted prior to the linked bucket.  In this case when recursively deleting a path in ofs with a symlink in this state fails with error message in shell,  *_Directory is not empty_* and underlying exception: VOLUME_NOT_EMPTY org.apache.hadoop.ozone.om.exceptions.OMException.\

 

Problem can be reproduced with dev docker cluster:

 
{code:java}
bash-4.2$ ozone sh volume create /vol1
bash-4.2$ ozone sh bucket create /vol1/bucket1
bash-4.2$ ozone sh volume create /linkvol
# link src bucket to target linkvol
bash-4.2$ ozone sh bucket link /vol1/bucket1 /linkvol/bucket1 
# delete src volume and bucket
bash-4.2$ ozone fs -rm -R -f ofs://om/vol1
# recursively delete linked volume and contents
bash-4.2$ ozone fs -rm -R -f -skipTrash ofs://om/linkvol
rm: `ofs://om/linkvol': Directory is not empty
{code}
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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