You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/02/02 17:44:00 UTC

[jira] [Work logged] (HADOOP-18110) ViewFileSystem: Add Support for Localized Trash Root

     [ https://issues.apache.org/jira/browse/HADOOP-18110?focusedWorklogId=719531&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-719531 ]

ASF GitHub Bot logged work on HADOOP-18110:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Feb/22 17:43
            Start Date: 02/Feb/22 17:43
    Worklog Time Spent: 10m 
      Work Description: xinglin opened a new pull request #3956:
URL: https://github.com/apache/hadoop/pull/3956


   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   
   We modified getTrashRoot()/getTrashRoots() in ViewFileSystem to return a localized trash root that is within a mount point when CONFIG_VIEWFS_MOUNT_POINT_LOCAL_TRASH is set.
    
   ### How was this patch tested?
   
   mvn test -Dtest=TestView*
   
   Manually ran three newly added unit tests using intellij. 
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 719531)
    Remaining Estimate: 0h
            Time Spent: 10m

> ViewFileSystem: Add Support for Localized Trash Root
> ----------------------------------------------------
>
>                 Key: HADOOP-18110
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18110
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: common
>            Reporter: Xing Lin
>            Assignee: Xing Lin
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> getTrashRoot() in ViewFileSystem calls getTrashRoot() from underlying filesystem, to return the trash root. Most of the time, we get a trash root in user home dir. This can lead to problems when an application wants to delete a file in a mounted point using moveToTrash() in TrashPolicyDefault, because we can not rename across multiple filesystems/hdfs namenodes. 
>  
> We propose the following extension to getTrashRoot/getTrashRoots in ViewFileSystem: add a flag to return a localized trash root for ViewFileSystem. A localized trash root is a trash root which starts from the root of a mount point (e.g., /mountpointRoot/.Trash/\{user}). 
> * If CONFIG_VIEWFS_MOUNT_POINT_LOCAL_TRASH is not set to true, or
> * when the path p is in a snapshot or an encryption zone, return
> * the default trash root in user home dir.
> *
> * when CONFIG_VIEWFS_MOUNT_POINT_LOCAL_TRASH is set to true,
> * 1) if path p is mounted from the same targetFS as user home dir,
> * return a trash root in user home dir.
> * 2) else, return a trash root in the mounted targetFS
> *



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org