[
https://issues.apache.org/jira/browse/HADOOP-12358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14714488#comment-14714488
]
Xiaoyu Yao commented on HADOOP-12358:
-------------------------------------
bq. There's also some danger of client OOMs when trying to delete a large
directory, since getContentSummary is not using the iterator-based listing.
That's an issue we can fix in a different JIRA though.
If the client OOM because of deleting large directory, make it OOM upon
getContentSummary can actually help avoiding an inconsistent (half completed)
deletion states.
> FSShell should prompt before deleting directories bigger than a configured
> size
> -------------------------------------------------------------------------------
>
> Key: HADOOP-12358
> URL: https://issues.apache.org/jira/browse/HADOOP-12358
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Reporter: Xiaoyu Yao
> Assignee: Xiaoyu Yao
> Attachments: HADOOP-12358.00.patch
>
>
> We have seen many cases with customers deleting data inadvertently with
> -skipTrash. The FSShell should prompt user if the size of the data or the
> number of files being deleted is bigger than a threshold even though
> -skipTrash is being used.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)