hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tgra...@apache.org
Subject 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
Date Fri, 30 Nov 2012 03:40:33 GMT
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
+}



Mime
View raw message