[
https://issues.apache.org/jira/browse/HDFS-2128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060909#comment-13060909
]
Usman Masood commented on HDFS-2128:
------------------------------------
The issue is to choose the right interface for pluggable Trash modules.
Currently the public methods are:
- moveToTrash(..)
- getEmptier()
- checkpoint()
- expunge()
The first two methods should be part of the Trash interface, but I'm not sure
about the last two. Not every Trash policy should be required to implement a
checkpoint mechanism.
Currently expunge() and checkpoint() are used by FsShell for the "-expunge"
arg.
> Support for pluggable Trash policies
> ------------------------------------
>
> Key: HDFS-2128
> URL: https://issues.apache.org/jira/browse/HDFS-2128
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: name-node
> Reporter: dhruba borthakur
> Assignee: dhruba borthakur
>
> It would be beneficial to make the Trash policy pluggable. One primary
> use-case for this is to archive files (in some remote store) when they get
> removed by Trash emptier.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira