[
https://issues.apache.org/jira/browse/HDFS-2128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doug Cutting reassigned HDFS-2128:
----------------------------------
Assignee: Usman Masood (was: dhruba borthakur)
I think the patch looks generally good and this is a fine direction to pursue.
But the Trash API is declared Stable, and removing the public constructor is an
incompatible API change. Perhaps instead the default implementation should
remain on the base class, but the factory should be used. That way, so long as
folks are using the default implementation, existing code that calls 'new
Trash()' will still work. That constructor can be deprecated, and the
refactoring of the default implementation could be made later.
> 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: Usman Masood
> Attachments: PluggableTrash.patch
>
>
> 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