hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vino...@apache.org
Subject svn commit: r1489287 - /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/MockHistoryContext.java
Date Tue, 04 Jun 2013 04:41:56 GMT
Author: vinodkv
Date: Tue Jun  4 04:41:55 2013
New Revision: 1489287

URL: http://svn.apache.org/r1489287
Log:
YARN-635 and MAPREDUCE-5301. Bug fix as the committed patch ended up being stale.

Modified:
    hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/MockHistoryContext.java

Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/MockHistoryContext.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/MockHistoryContext.java?rev=1489287&r1=1489286&r2=1489287&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/MockHistoryContext.java
(original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/MockHistoryContext.java
Tue Jun  4 04:41:55 2013
@@ -28,7 +28,7 @@ import org.apache.hadoop.mapreduce.v2.ap
 import org.apache.hadoop.mapreduce.v2.app.job.Job;
 import org.apache.hadoop.mapreduce.v2.hs.MockHistoryJobs.JobsPair;
 import org.apache.hadoop.mapreduce.v2.hs.webapp.dao.JobsInfo;
-import org.apache.hadoop.yarn.YarnException;
+import org.apache.hadoop.yarn.YarnRuntimeException;
 import org.apache.hadoop.yarn.api.records.ApplicationId;
 
 public class MockHistoryContext extends MockAppContext implements HistoryContext {
@@ -42,7 +42,7 @@ public class MockHistoryContext extends 
     try {
       jobs = MockHistoryJobs.newHistoryJobs(numJobs, numTasks, numAttempts);
     } catch (IOException e) {
-      throw new YarnException(e);
+      throw new YarnRuntimeException(e);
     }
     partialJobs = jobs.partial;
     fullJobs = jobs.full;
@@ -56,7 +56,7 @@ public class MockHistoryContext extends 
       jobs = MockHistoryJobs.newHistoryJobs(getApplicationID(), numJobs, numTasks,
           numAttempts);
     } catch (IOException e) {
-      throw new YarnException(e);
+      throw new YarnRuntimeException(e);
     }
     partialJobs = jobs.partial;
     fullJobs = jobs.full;
@@ -76,7 +76,7 @@ public class MockHistoryContext extends 
       jobs = MockHistoryJobs.newHistoryJobs(getApplicationID(), numJobs, numTasks,
           numAttempts, hasFailedTasks);
     } catch (IOException e) {
-      throw new YarnException(e);
+      throw new YarnRuntimeException(e);
     }
     partialJobs = jobs.partial;
     fullJobs = jobs.full;



Mime
View raw message