hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077598 - /hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
Date Fri, 04 Mar 2011 04:34:07 GMT
Author: omalley
Date: Fri Mar  4 04:34:07 2011
New Revision: 1077598

URL: http://svn.apache.org/viewvc?rev=1077598&view=rev
Log:
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

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java?rev=1077598&r1=1077597&r2=1077598&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
Fri Mar  4 04:34:07 2011
@@ -370,6 +370,16 @@ public abstract class AbstractDaemonClus
   }
   
   /**
+   * 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
    * test wants to restarting instead of changing the config in all the 
@@ -415,6 +425,7 @@ public abstract class AbstractDaemonClus
     waitForClusterToStop();
     start();
     waitForClusterToStart();
+    cleanupNewConf(newConfDir);
   }
   
   /**



Mime
View raw message