Author: cos
Date: Fri Jul 23 19:37:08 2010
New Revision: 967220

URL: http://svn.apache.org/viewvc?rev=967220&view=rev
Log:
HADOOP-6875. [Herriot] Cleanup of temp. configurations is needed upon restart 
of a cluster. Contributed by Vinay Thota.

Modified:
    hadoop/common/trunk/CHANGES.txt
    
hadoop/common/trunk/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=967220&r1=967219&r2=967220&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Fri Jul 23 19:37:08 2010
@@ -1732,6 +1732,9 @@ Release 0.21.0 - Unreleased
     HADOOP-6790. Instrumented (Herriot) build uses too wide mask to include
     aspect files. (Konstantin Boudnik)
 
+    HADOOP-6875. [Herriot] Cleanup of temp. configurations is needed upon
+    restart of a cluster (Vinay Thota via cos)
+
 Release 0.20.3 - Unreleased
 
   NEW FEATURES

Modified: 
hadoop/common/trunk/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
URL: 
http://svn.apache.org/viewvc/hadoop/common/trunk/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java?rev=967220&r1=967219&r2=967220&view=diff
==============================================================================
--- 
hadoop/common/trunk/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
 (original)
+++ 
hadoop/common/trunk/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
 Fri Jul 23 19:37:08 2010
@@ -389,6 +389,17 @@ public abstract class AbstractDaemonClus
     waitForClusterToStop();
     start();
     waitForClusterToStart();
+    cleanupNewConf(newConfDir);
+  }
+
+  /**
+   * 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();
   }
   
   /**


Reply via email to