Skip to content

Commit 08f58ec

Browse files
authored
HDFS-16904. Close webhdfs during TestSymlinkHdfs teardown (#5342)
Contributed by Steve Vaughan Jr
1 parent 3ba058a commit 08f58ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestSymlinkHdfs.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.io.IOException;
2424
import java.net.URI;
2525

26+
import org.apache.commons.io.IOUtils;
2627
import org.apache.hadoop.conf.Configuration;
2728
import org.apache.hadoop.fs.permission.FsPermission;
2829
import org.apache.hadoop.hdfs.DFSConfigKeys;
@@ -99,6 +100,7 @@ public static void afterClassTeardown() throws Exception {
99100
if (cluster != null) {
100101
cluster.shutdown();
101102
}
103+
IOUtils.closeQuietly(webhdfs);
102104
}
103105

104106
@Test(timeout=10000)

0 commit comments

Comments
 (0)