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

Viraj Jasani commented on HADOOP-17639:
---------------------------------------

{quote}I think changes to the CLI is going to be trouble as there's some 
guarantees of consistency over time, with command line, behaviour and of output.
{quote}
I agree on this [~ste...@apache.org]. However, if we think about this case, we 
already have *fs.trash.interval* to decide whether delete operation should keep 
files in trash at least until trash interval expires. Now we have another 
decision making param *-skipTrash* at command line. If skipTrash is really 
required, we should provide such option in UI as well? (a new button along side 
delete, with name: *skip-trash* maybe) provided we will have trash support 
through web ui as well with HDFS-15982. But perhaps skipTrash is redundant to 
override decision already configured by fs.trash.interval? Maybe yes, maybe 
not. If yes, we can gradually nullify it's effect internally and with next 
major release remove the support (with big enough release notes for users). If 
not, we should have it in ui as well. Thoughts?

> Restrict the "-skipTrash" param for accidentally deletes data
> -------------------------------------------------------------
>
>                 Key: HADOOP-17639
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17639
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Bhavik Patel
>            Priority: Major
>
> Suppose the user tries to delete the data from CLI with the "-skipTrash" 
> param but by mistake, he deleted a couple of directories but actually, that 
> directory user want to retain then their is no way to retrieve the delete 
> data.
> It will be good to have a confirm message like: "Skip the trash for the 
> hdfs:///dri1/file.txt files? (Y or N)" ro we can completely disable the 
> "-skipTrash" param.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to