Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-653

TestMetadataStore#testIterator fails on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.2.1
    • 0.3.0, 0.4.0
    • test
    • None

    Description

      Running the unit tests for hdds-common module, found one failure UT in Windows.

      java.io.IOException: Unable to delete file: target\test\data\KbmK7CPN1M\MANIFEST-000002
      	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2381)
      	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1679)
      	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1575)
      	at org.apache.hadoop.utils.TestMetadataStore.testIterator(TestMetadataStore.java:166)
      

      Looking into this, we forget to close the db store and this will lead failure of deleting file in Windows.

      Attachments

        1. HDDS-653.001.patch
          0.6 kB
          Yiqun Lin

        Activity

          People

            linyiqun Yiqun Lin
            linyiqun Yiqun Lin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: