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

Colin Patrick McCabe commented on HDFS-4683:
--------------------------------------------

bq. A. per directory or user trash settings, so that applications which work in 
a specific directory or use a specific user can continue to ignore the trash.

Can't you just continue to put the trash configuration into your client 
configuration XML, and not into the server XML?  I think that still works.  We 
couldn't break it even if we wanted to, due to backwards compatibility concerns.

bq. B. An updated DistributedFileSystem delete() call which allows you to force 
ignoring the trash. I'm not sure how feasible this is due to the FileSystem 
API, but it may be possible.

Doesn't the existing {{DistributedFileSystem#delete}} call ignore the trash?  
Only {{FsShell}} ever implemented trash in the first place.  My understanding 
is that the only thing that HADOOP-8689 changed is that it added a call to 
{{getServerDefaults}} inside {{FsShell}}, so that {{FsShell}} could determine 
whether it should do trash inside {{org.apache.hadoop.fs.shell.Delete}}.

In the long term, this will all be subsumed by snapshots.  You can do 
per-directory snapshots, so it implements everything you want.
                
> Per directory trash settings / trash override
> ---------------------------------------------
>
>                 Key: HDFS-4683
>                 URL: https://issues.apache.org/jira/browse/HDFS-4683
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>         Environment: Hadoop2
>            Reporter: John Vines
>
> With the migration of trash settings to server side, it becomes more 
> complicated for applications built on top of HDFS to properly deal with their 
> trash. Applications like HBase and Accumulo already have a fair amount of 
> trash management, adding the HDFS Trash will simply put more stress on DFS. 
> But fully disabling the trash is overkill, as there still may be use for it 
> in other uses of hadoop.
> I would like to request either:
> A. per directory or user trash settings, so that applications which work in a 
> specific directory or use a specific user can continue to ignore the trash.
> B. An updated DistributedFileSystem delete() call which allows you to force 
> ignoring the trash. I'm not sure how feasible this is due to the FileSystem 
> API, but it may be possible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to