Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3766

Fix TestStorageRestore on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1-win
    • 1-win
    • namenode
    • None
    • Reviewed

    Description

      When a storage directory is removed, namenode doesn't close the stream and storage directory is remained locked. This could fail later on the restoring storage directory function because namenode will not be able to format original directory. Unlike Linux, Windows doesn't allow deleting a file or directory which is opened with no share/delete permission by a different process.

      Similar problem also caused TestStorageRestore to fail because it can't delete the directories/files being used by the test itself.

      Attachments

        1. HDFS-3766.patch
          11 kB
          Brandon Li

        Issue Links

          Activity

            People

              brandonli Brandon Li
              brandonli Brandon Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: