You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by tg...@apache.org on 2012/11/30 04:40:33 UTC
svn commit: r1415489 - in
/hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common:
CHANGES.txt src/main/java/org/apache/hadoop/util/ExitUtil.java
Author: tgraves
Date: Fri Nov 30 03:40:32 2012
New Revision: 1415489
URL: http://svn.apache.org/viewvc?rev=1415489&view=rev
Log:
HADOOP-9108. Add a method to clear terminateCalled to ExitUtil for test cases (Kihwal Lee via tgraves)
Modified:
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java
Modified: hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt?rev=1415489&r1=1415488&r2=1415489&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt Fri Nov 30 03:40:32 2012
@@ -10,6 +10,9 @@ Release 0.23.6 - UNRELEASED
HADOOP-8931. Add Java version to startup message. (eli)
+ HADOOP-9108. Add a method to clear terminateCalled to ExitUtil for test
+ cases (Kihwal Lee via tgraves)
+
OPTIMIZATIONS
BUG FIXES
Modified: hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java?rev=1415489&r1=1415488&r2=1415489&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java (original)
+++ hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java Fri Nov 30 03:40:32 2012
@@ -50,6 +50,13 @@ public final class ExitUtil {
}
/**
+ * Clear the previous exit record.
+ */
+ public static void clearTerminateCalled() {
+ terminateCalled = false;
+ }
+
+ /**
* @return true if terminate has been called
*/
public static boolean terminateCalled() {
@@ -80,4 +87,4 @@ public final class ExitUtil {
public static void terminate(int status) throws ExitException {
terminate(status, "ExitException");
}
-}
\ No newline at end of file
+}