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

Ethan Rose commented on HDDS-7592:
----------------------------------

Adding a clarifying comment for future reference: the key name from the active 
namespace was being used as the key in the deleted directory table with nothing 
else to make it unique. If a user did create, delete, create, delete on a 
directory with the same name, the second entry would overwrite the first one in 
the deleted table and all the original child entries would become orphaned.

> Recursive delete of directory multiple time impacts some directory not removed
> ------------------------------------------------------------------------------
>
>                 Key: HDDS-7592
>                 URL: https://issues.apache.org/jira/browse/HDDS-7592
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Sumit Agrawal
>            Assignee: Sumit Agrawal
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>
> When recursive directory create and delete is happening continuously, its 
> observed certain child directory and files remains in table untracked.
>  
> {code:java}
> ./ozone fs -mkdir -p /vol/bucket/d1/d2/d3/d
> ./ozone fs -copyFromLocal <src file> /vol/bucket/d1/d2/test.file
> ./ozone fs -rm -r -skipTrace /vol/bucket/d1
>  
> {code}
>  
> Here possible scenario,
>  # deletedDirTable is having duplicate entry for multiple dir path, 
> eg:"/-9223372036854773504/-9223372036854772992/-9223372036854757631/d1" -> { 
> ...
>  # But when this path is deleted for deletedDirTable (for all multiple 
> cases), it will leave hanging sub-files and sub-dir with no track for deletion
>  
> As solution, we need add uniqueness in key name as extension,, like objectId



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to