hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1363596 - /hadoop/common/branches/HDFS-3077/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java
Date Fri, 20 Jul 2012 00:25:52 GMT
Author: todd
Date: Fri Jul 20 00:25:50 2012
New Revision: 1363596

URL: http://svn.apache.org/viewvc?rev=1363596&view=rev
Log:
HDFS-3077. Quorum-based protocol for reading and writing edit logs. Contributed by Todd Lipcon
based on initial work from Brandon Li and Hari Mankude.

Modified:
    hadoop/common/branches/HDFS-3077/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java

Modified: hadoop/common/branches/HDFS-3077/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-3077/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java?rev=1363596&r1=1363595&r2=1363596&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-3077/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java
(original)
+++ hadoop/common/branches/HDFS-3077/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ExitUtil.java
Fri Jul 20 00:25:50 2012
@@ -63,6 +63,15 @@ public final class ExitUtil {
   public static ExitException getFirstExitException() {
     return firstExitException;
   }
+  
+  /**
+   * Reset the tracking of process termination. This is for use
+   * in unit tests where one test in the suite expects an exit
+   * but others do not.
+   */
+  public static void resetFirstExitException() {
+    firstExitException = null;
+  }
 
   /**
    * Terminate the current process. Note that terminate is the *only* method



Mime
View raw message