[ https://issues.apache.org/jira/browse/HDFS-15982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17339287#comment-17339287 ]
Ayush Saxena commented on HDFS-15982: ------------------------------------- Yahh, means anybody coming to HDFS via REST will move to trash, So, this is a change in behaviour, so this shouldn't be true anyway and regarding shell, FsShell is a different concept, Can not be confused as synonym to RPC calls. So, yeps we need to go back to the default behaviour. So the consensus is lost... I was following the older jira. [~daryn] had a comment: {quote}You cannot or should not create a default fs and parse a path in the NN. It's very dangerous. Give me some time (that I don't have) and I'd likely come up with a nasty exploit. {quote} Do we have an answer to this and what was the danger actually? There was another concern raised, that the FileSystem is formed using defaultFs URI, not of the Path, How that got sorted? What if both are different? Router part needs to be checked again and confirmed, Trash itself has issues with Router(There are Jiras). So, if Trash becomes true by default, I doubt delete through Router don't break or moves to some weird place. > Deleted data using HTTP API should 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, hdfs-client, httpfs, webhdfs > Reporter: Bhavik Patel > Assignee: Viraj Jasani > Priority: Major > Labels: pull-request-available > Attachments: Screenshot 2021-04-23 at 4.19.42 PM.png, Screenshot > 2021-04-23 at 4.36.57 PM.png > > Time Spent: 12h 10m > 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. > Similarly we should provide "Skip Trash" option in HTTP API as well which > should be accessible through 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