diff --git a/hadoop-hdds/common/src/test/java/org/apache/hadoop/utils/TestMetadataStore.java b/hadoop-hdds/common/src/test/java/org/apache/hadoop/utils/TestMetadataStore.java index 30fc7f313a..a91bc80188 100644 --- a/hadoop-hdds/common/src/test/java/org/apache/hadoop/utils/TestMetadataStore.java +++ b/hadoop-hdds/common/src/test/java/org/apache/hadoop/utils/TestMetadataStore.java @@ -163,6 +163,8 @@ public void testIterator() throws Exception { GenericTestUtils.assertExceptionContains("Store has no more elements", ex); } + dbStore.close(); + dbStore.destroy(); FileUtils.deleteDirectory(dbDir); }