[ 
https://issues.apache.org/jira/browse/HDDS-7884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17683590#comment-17683590
 ] 

Neil Joshi commented on HDDS-7884:
----------------------------------

cc [~smeng] , it would great if you would comment on this.  Thanks.

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

Reply via email to