JacksonYao287 opened a new pull request #2918:
URL: https://github.com/apache/ozone/pull/2918


   ## What changes were proposed in this pull request?
   
   in our cluster , we put scm db and ratis in different directories which in 
different disk partitions. but when bootstraping this cluster , we found the 
ozone cluster does not work well because the follower scm fail to install 
snapshot. after investigating, we found the db checkpoint will be downloaded to 
the directory the same as the ratis log by default. when replacing the old db, 
scm will use `files.move` to move the checkpoint to the db directory. but 
according to the description of `files.move`, When moving a directory requires 
that its entries be moved then this method fails (by throwing an IOException). 
so we should use fileutils.moveDirectory here as om does
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-6101
   
   ## How was this patch tested?
   
   current UT
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to