From b6680907f96815950bfdd61974ac4cfc0e7d4e02 Mon Sep 17 00:00:00 2001 From: Steve Vaughan Date: Wed, 8 Feb 2023 12:15:42 -0500 Subject: [PATCH] HDFS-16904. Close webhdfs during TestSymlinkHdfs teardown (#5342) Contributed by Steve Vaughan Jr --- .../src/test/java/org/apache/hadoop/fs/TestSymlinkHdfs.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestSymlinkHdfs.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestSymlinkHdfs.java index 042431e2a6c..6bab4af8ad5 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestSymlinkHdfs.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestSymlinkHdfs.java @@ -23,6 +23,7 @@ import static org.junit.Assert.fail; import java.io.IOException; import java.net.URI; +import org.apache.commons.io.IOUtils; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.permission.FsPermission; import org.apache.hadoop.hdfs.DFSConfigKeys; @@ -99,6 +100,7 @@ abstract public class TestSymlinkHdfs extends SymlinkBaseTest { if (cluster != null) { cluster.shutdown(); } + IOUtils.closeQuietly(webhdfs); } @Test(timeout=10000)