zhuxiangyi commented on pull request #3009:
URL: https://github.com/apache/hadoop/pull/3009#issuecomment-842910578


   @ferhui Thank you very much for your suggestion, I will use the first 
solution to improve it.
   
   > 1.When deleting data to the Trash without configuring a mount point for 
the Trash, the Router should recognize and move the data to the Trash.
   
   I found another bug related to Trash, which will cause useless folders to be 
created in other Ns.
   
   for example:
   
   /user/userA Ns1 -> /user/userA
   
   /home/userA Ns2 -> /home/userA
   
   userA : hadoop fs -rm /home/userA/test. This command will create 
baseTrashPath (/user/userA/Trash/Current/home/userA) in Ns1, and we expect it 
to be created in Ns2.
   
   To solve this bug, my idea is to modify the Router mkdir and getFileInfo 
methods. If path.startsWith (TrashRoot) is True, the mkdir method return True 
directly, and getFileInfo return to construct a fake HdfsFileStatus object.


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

Reply via email to