[jira] [Commented] (HDFS-15982) Deleted data on the Web UI must be saved to the trash

2021-04-22 Thread Mingliang Liu (Jira)


[ 
https://issues.apache.org/jira/browse/HDFS-15982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Commented] (HDFS-15982) Deleted data on the Web UI must be saved to the trash

2021-04-19 Thread Bhavik Patel (Jira)


[ 
https://issues.apache.org/jira/browse/HDFS-15982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17324868#comment-17324868
 ] 

Bhavik Patel commented on HDFS-15982:
-

Thank you [~vjasani] for working on it. Provided PR#2927 looking good to me.

[~ste...@apache.org] [~weichiu] any thoughts?

> 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
>  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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Commented] (HDFS-15982) Deleted data on the Web UI must be saved to the trash

2021-04-16 Thread Viraj Jasani (Jira)


[ 
https://issues.apache.org/jira/browse/HDFS-15982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17324175#comment-17324175
 ] 

Viraj Jasani commented on HDFS-15982:
-

FYI [~ayushtkn] [~weichiu]

> 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
>Priority: Major
>
> 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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Commented] (HDFS-15982) Deleted data on the Web UI must be saved to the trash

2021-04-16 Thread Viraj Jasani (Jira)


[ 
https://issues.apache.org/jira/browse/HDFS-15982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17324072#comment-17324072
 ] 

Viraj Jasani commented on HDFS-15982:
-

+1 to this improvement. Does it make sense to keep "moving file to .Trash" 
logic as part of FileSystem's Delete implementation rather than keeping at 
individual client interface (shell, webhdfs etc)?

> 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
>Priority: Major
>
> 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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org