[
https://issues.apache.org/jira/browse/HADOOP-7430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063534#comment-13063534
]
Daryn Sharp commented on HADOOP-7430:
-------------------------------------
I'm not very fond of the string searches for special casing exception handling.
Almost anything that can go wrong while trashing items will be avoided when
using {{-skipTrash}}. I think the main part of the patch should just be a
short and simple:
{code}
try {
success = Trash.moveToAppropriateTrash(item.fs, item.path, getConf());
} catch (IOException ioe) {
throw new IOException(ioe.getLocalizedMessage() + ". Consider using
-skipTrash option");
}
{code}
> Improve error message when moving to trash fails due to quota issue
> -------------------------------------------------------------------
>
> Key: HADOOP-7430
> URL: https://issues.apache.org/jira/browse/HADOOP-7430
> Project: Hadoop Common
> Issue Type: Improvement
> Components: fs
> Reporter: Ravi Prakash
> Assignee: Ravi Prakash
> Priority: Minor
> Attachments: HADOOP-7430.1.patch, HADOOP-7430.2.patch
>
>
> -rm command doesn't suggest -skipTrash on failure.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira