bshashikant edited a comment on pull request #2881:
URL: https://github.com/apache/hadoop/pull/2881#issuecomment-819258964


   > I think We should hold this off, I think the code has issues, as I said. 
Earlier I thought, there is some catch but I don’t think. It is misbehaving 
only. Ideally such features should go in a branch first....
   
   @ayushtkn , IMO its not a misbehaviour here. Once the snapshotTrash feature 
is enabled, the .Trash directory has to be present to make the feature work. As 
you can have pre existing snapshottable directories , one way to create the 
.Trash inside these was to create right after the startup is done. The other 
solution was to explicitly provision the .Trash  using a cmd line option. The 
choice was made to do it automatically on restart, and fail the Namenode in 
case any any issues occur.
   
   The other solution is not fail the namenode , but log an warning and later, 
if any Trash operations gets performed inside the snapshottable root, will fail.
   
   The discussion is here: 
https://github.com/apache/hadoop/pull/2682#discussion_r570461526


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