[
https://issues.apache.org/jira/browse/HADOOP-5712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12701224#action_12701224
]
Koji Noguchi commented on HADOOP-5712:
--------------------------------------
Looking at the Trash.java,
{noformat}
118 String orig = trashPath.toString();
119 for (int j = 1; fs.exists(trashPath); j++) {
120 trashPath = new Path(orig + "." + j);
121 }
122 if (fs.rename(path, trashPath)) // move to current trash
123 return true;
{noformat}
it seems like fs.exists were called 506 times before the single rename in the
original description.
When user changed his script to simply call dfs -rmr $outdir, namenode came
back to normal.
> Namenode slowed down when many files with same filename were moved to Trash
> ---------------------------------------------------------------------------
>
> Key: HADOOP-5712
> URL: https://issues.apache.org/jira/browse/HADOOP-5712
> Project: Hadoop Core
> Issue Type: Bug
> Components: dfs
> Affects Versions: 0.18.3
> Reporter: Koji Noguchi
> Priority: Minor
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.