[
https://issues.apache.org/jira/browse/HDDS-7884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Neil Joshi updated HDDS-7884:
-----------------------------
Description:
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}
was:
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}
> 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
> Priority: Major
>
> 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: [email protected]
For additional commands, e-mail: [email protected]