bharatviswa504 opened a new pull request #1256:
URL: https://github.com/apache/hadoop-ozone/pull/1256


   ## What changes were proposed in this pull request?
   
   Rename failed for directory when ozone.om.enable.filesystem.paths is set to 
true.
   
   As rename is not used by ObjectStore API, we don't need to normalize the 
path when ozone.om.enable.filesystem.paths is set to true.
   
   O3FS uses `deleteObjects` for deleting directory and `deleteKey` for delete 
file/key. So, normalizing the path when the config is enabled should be fine, 
as the` deletekey` only used for deleting file. (Note: `deleteObject` does not 
normalize paths)
   
   Still, a fix is required for OFS delete, as it uses `deleteKey` for deleting 
the directory. I will open a Jira to fix the issue.
   
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-4026
   
   ## How was this patch tested?
   
   Added tests for rename and delete.
   
   


----------------------------------------------------------------
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: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to