Forráskód Böngészése

commit 23836bf432781452d436bb2178cf81caedc94b74
Author: Vinay Kumar Thota <vinayt@yahoo-inc.com>
Date: Sun Jul 25 03:00:18 2010 +0000

HADOOP:6875 from https://issues.apache.org/jira/secure/attachment/12450292/6875-ydist-security.patch


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077598 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 éve
szülő
commit
6a34a14355

+ 11 - 0
src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java

@@ -369,6 +369,16 @@ public abstract class AbstractDaemonCluster {
     localFolderObj.delete();
   }
   
+  /**
+   * It uses to delete the new configuration folder.
+   * @param path - configuration directory path.
+   * @throws IOException if an I/O error occurs.
+   */
+  public void cleanupNewConf(String path) throws IOException {
+    File file = new File(path);
+    file.delete();
+  }
+  
   /**
    * The method is used to only restart one daemon with new config
    * and this gives a great flexibility in choosing which daemon the
@@ -415,6 +425,7 @@ public abstract class AbstractDaemonCluster {
     waitForClusterToStop();
     start();
     waitForClusterToStart();
+    cleanupNewConf(newConfDir);
   }
   
   /**