From 6efb8c9c6018ec688eeba8c61c220009ec350a44 Mon Sep 17 00:00:00 2001 From: Brahma Reddy Battula Date: Mon, 14 Nov 2016 20:39:39 +0530 Subject: [PATCH] HDFS-11135. The tests in TestBalancer run fails due to NPE. Contributed By Yiqun Lin --- .../org/apache/hadoop/hdfs/server/balancer/TestBalancer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java index d0997f1c49..22b48ad12f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java @@ -270,9 +270,9 @@ static void initSecureConf(Configuration conf) throws Exception { public static void destroy() throws Exception { if (kdc != null) { kdc.stop(); - } - FileUtil.fullyDelete(baseDir); + FileUtil.fullyDelete(baseDir); KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir); + } } /* create a file with a length of fileLen */