hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaoyu Yao (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-12358) FSShell should prompt before deleting directories bigger than a configured size
Date Tue, 01 Sep 2015 23:13:46 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-12358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xiaoyu Yao updated HADOOP-12358:
--------------------------------
    Attachment: HADOOP-12358.07.patch

Thanks [~andrew.wang] for the review. Attach patch v7 to address your feedback.

Delta of change from v6:
* Revert unrelated white space only change in Trash.java
* Remove unused variable DELETE_PROMPT in Delete.java
* Rename checkDeleteLimit() to canBeSafelyDeleted() in Delete.java
* Rename config key to HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES =
"hadoop.shell.safely.delete.limit.num.files"
* Add comment to -rm help text as suggested. 

> 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, HADOOP-12358.01.patch, HADOOP-12358.02.patch,
HADOOP-12358.03.patch, HADOOP-12358.04.patch, HADOOP-12358.05.patch, HADOOP-12358.06.patch,
HADOOP-12358.07.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)

Mime
View raw message