[
https://issues.apache.org/jira/browse/HDFS-15982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17329927#comment-17329927
]
Mingliang Liu commented on HDFS-15982:
--------------------------------------
Let's rename the JIRA subject and also PR by replacing "Web UI" with "HTTP
API". HDFS "Web UI" is usually about the web portal that one can browse for
information purpose. This JIRA is to change the "RESTful HTTP API", not about
the Web UI.
My only concern about this is that, the "Trash" concept is not a part of the
FileSystem DELETE API. Changing this behavior may break existing applications
that assumes storage will be released. It seems counter-intuitive that one can
skipTrash from command line but can not using WebHDFS. Since keeping data in
Trash for a while is usually a good idea, I think I'm fine with this feature
proposal. Ideally we can expose -skipTrash parameter so users can choose.
Meanwhile the default value should be true for all existing released branches
(<=3.3) to make it backward-compatible. We can change default value from 3.4
though to make it enabled by default.
When I explore I found [[HDFS-14320]] is all about the same idea and similar
implementation. Do you guys want to post there and try with a collaboration to
get this in? I did not look into that closely.
CC: [~vjasani] [~bpatel]
> Deleted data on the Web UI must be saved to the trash
> ------------------------------------------------------
>
> Key: HDFS-15982
> URL: https://issues.apache.org/jira/browse/HDFS-15982
> Project: Hadoop HDFS
> Issue Type: New Feature
> Components: hdfs
> Reporter: Bhavik Patel
> Assignee: Viraj Jasani
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> If we delete the data from the Web UI then it should be first moved to
> configured/default Trash directory and after the trash interval time, it
> should be removed. currently, data directly removed from the system[This
> behavior should be the same as CLI cmd]
>
> This can be helpful when the user accidentally deletes data from the Web UI.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]