HDFS-11135. The tests in TestBalancer run fails due to NPE. Contributed By Yiqun Lin

(cherry picked from commit 6efb8c9c60)
This commit is contained in:
Brahma Reddy Battula 2016-11-14 20:39:39 +05:30
parent ea74c7b7ae
commit 399abe7c74
1 changed files with 2 additions and 2 deletions

View File

@ -252,10 +252,10 @@ public class TestBalancer {
public static void destroy() throws Exception { public static void destroy() throws Exception {
if (kdc != null) { if (kdc != null) {
kdc.stop(); kdc.stop();
}
FileUtil.fullyDelete(baseDir); FileUtil.fullyDelete(baseDir);
KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir); KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
} }
}
/* create a file with a length of <code>fileLen</code> */ /* create a file with a length of <code>fileLen</code> */
static void createFile(MiniDFSCluster cluster, Path filePath, long fileLen, static void createFile(MiniDFSCluster cluster, Path filePath, long fileLen,