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.