Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-2823 SCM HA Support
  3. HDDS-6101

use `Fileutils.move` instead of `Files.move` when installing snapshot

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      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 it, When moving a directory requires that its entries be moved then this method fails (by throwing an IOException). 

      Attachments

        Issue Links

          Activity

            People

              jacksonyao Jie Yao
              jacksonyao Jie Yao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: