[
https://issues.apache.org/jira/browse/HDDS-653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16648744#comment-16648744
]
Yiqun Lin edited comment on HDDS-653 at 10/13/18 4:46 AM:
----------------------------------------------------------
Attach the patch for adding close operation.
I have verified this test in my local. It can pass after this change.
{noformat}
[INFO] Running org.apache.hadoop.utils.TestMetadataStore
[WARNING] Tests run: 26, Failures: 0, Errors: 0, Skipped: 13, Time elapsed:
{noformat}
was (Author: linyiqun):
Attach the patch for adding close operation.
I have verified this test in my local. It can pass after this change.
> TestMetadataStore#testIterator fails in Windows
> -----------------------------------------------
>
> Key: HDDS-653
> URL: https://issues.apache.org/jira/browse/HDDS-653
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Components: test
> Affects Versions: 0.2.1
> Reporter: Yiqun Lin
> Assignee: Yiqun Lin
> Priority: Major
> Attachments: HDDS-653.001.patch
>
>
> Running the unit tests for hdds-common module, found one failure UT in
> Windows.
> {noformat}
> 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)
> {noformat}
> Looking into this, we forget to close the db store and this will lead failure
> of deleting file in Windows.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]