[GitHub] [hadoop] ferhui edited a comment on pull request #3009: HDFS-16024: RBF: Rename data to the Trash should be based on src loca…

2021-05-17 Thread GitBox


ferhui edited a comment on pull request #3009:
URL: https://github.com/apache/hadoop/pull/3009#issuecomment-842146030


   @zhuxiangyi Thanks for comments!
   > With this solution, as long as there is a mount point for Trash and the 
Trash directory exists, Router can move data to Trash.
   
   I want to know more details.
   In your example, 
   
   > /user/userA Ns1 -> /user/userA
   > /home/userA Ns2 -> /home/userA
   
   If we want to rm  /home/userA/somefile, TrashPolicyDefault will try to mkdir 
 /user/userA/.Trash/Current/home/userA (called baseTrashPath), the 
baseTrashPath will be create on Ns1. If the baseTrashPath does not exist on 
Ns2, the following rename will fail, is it right? when does the baseTrashPath 
create on Ns2?


-- 
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.

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



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



[GitHub] [hadoop] ferhui edited a comment on pull request #3009: HDFS-16024: RBF: Rename data to the Trash should be based on src loca…

2021-05-17 Thread GitBox


ferhui edited a comment on pull request #3009:
URL: https://github.com/apache/hadoop/pull/3009#issuecomment-842146030


   @zhuxiangyi Thanks for comments!
   > With this solution, as long as there is a mount point for Trash and the 
Trash directory exists, Router can move data to Trash.
   
   I want to know more details.
   In your example, 
   
   > /user/userA Ns1 -> /user/userA
   > /home/userA Ns2 -> /home/userA
   
   If we want to rm  /home/userA/somefile, TrashPolicyDefault will try to mkdir 
 /user/userA/.Trash/Current/home/userA (called baseTrashPath), the 
baseTrashPath will be create on Ns1. If the baseTrashPath does not exist on 
Ns2, the following rename will fail, is it right? when does the baseTrashPath 
create on Ns2?


-- 
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.

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



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