HDFS-16904. Close webhdfs during TestSymlinkHdfs teardown (#5342)

Contributed by Steve Vaughan Jr
This commit is contained in:
Steve Vaughan 2023-02-08 12:15:42 -05:00 committed by Steve Loughran
parent 752f6d8213
commit b6680907f9
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@
import java.io.IOException; import java.io.IOException;
import java.net.URI; import java.net.URI;
import org.apache.commons.io.IOUtils;
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.permission.FsPermission; import org.apache.hadoop.fs.permission.FsPermission;
import org.apache.hadoop.hdfs.DFSConfigKeys; import org.apache.hadoop.hdfs.DFSConfigKeys;
@ -99,6 +100,7 @@ public static void afterClassTeardown() throws Exception {
if (cluster != null) { if (cluster != null) {
cluster.shutdown(); cluster.shutdown();
} }
IOUtils.closeQuietly(webhdfs);
} }
@Test(timeout=10000) @Test(timeout=10000)