You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/03/15 16:28:00 UTC
[jira] [Updated] (HDDS-7884) ofs: Recursive delete of path of symlink with empty source fails
[ https://issues.apache.org/jira/browse/HDDS-7884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HDDS-7884:
---------------------------------
Labels: pull-request-available (was: )
> 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
> Assignee: Sumit Agrawal
> Priority: Major
> Labels: pull-request-available
>
> 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 -skipTrash 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