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

hu yongfa commented on HDFS-14586:
----------------------------------

he Xiaoqiao, thanks for your suggestions, as there may be many trashroot dirs, 
so it still may be late to create 2th 3th 4th trashroot dir checkpoint.
{code:java}
for (FileStatus trashRoot : trashRoots) {   // dump each trash
  ...
  try {
    trash.createCheckpoint(trashRoot.getPath(), new Date(now));
    trash.deleteCheckpoint(trashRoot.getPath(), false);
  } 
  ...
}
{code}

> Trash missing delete the folder which near timeout checkpoint
> -------------------------------------------------------------
>
>                 Key: HDFS-14586
>                 URL: https://issues.apache.org/jira/browse/HDFS-14586
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: hu yongfa
>            Assignee: hu yongfa
>            Priority: Major
>         Attachments: HDFS-14586.001.patch
>
>
> when trash timeout checkpoint coming, trash will delete the old folder first, 
> then create a new checkpoint folder.
> as the delete action may spend a long time, such as 2 minutes, so the new 
> checkpoint folder created late.
> at the next trash timeout checkpoint, trash will skip delete the new 
> checkpoint folder, because the new checkpoint folder isĀ 
> less than a checkpoint interval.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to