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 <[email protected]>
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);
}
/**