You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2023/02/08 17:16:06 UTC

[hadoop] branch trunk updated: HDFS-16904. Close webhdfs during TestSymlinkHdfs teardown (#5342)

This is an automated email from the ASF dual-hosted git repository.

stevel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 08f58ecf07f HDFS-16904. Close webhdfs during TestSymlinkHdfs teardown (#5342)
08f58ecf07f is described below

commit 08f58ecf07ffef907b06ee4703374b7a3fc4edf6
Author: Steve Vaughan <em...@stevevaughan.me>
AuthorDate: Wed Feb 8 12:15:42 2023 -0500

    HDFS-16904. Close webhdfs during TestSymlinkHdfs teardown (#5342)
    
    
    Contributed by Steve Vaughan Jr
---
 .../hadoop-hdfs/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 fd81a1e23fb..650a75e5698 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)


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org