From 5c097a134e6d427d01fd63e440208bffd0dfabff Mon Sep 17 00:00:00 2001 From: Vinod Kumar Vavilapalli Date: Tue, 4 Jun 2013 04:41:55 +0000 Subject: [PATCH] YARN-635 and MAPREDUCE-5301. Bug fix as the committed patch ended up being stale. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1489287 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/hadoop/mapreduce/v2/hs/MockHistoryContext.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/MockHistoryContext.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/MockHistoryContext.java index 93e609589c..048cd8e3a3 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/MockHistoryContext.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/MockHistoryContext.java @@ -28,7 +28,7 @@ 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 MockHistoryContext(int numJobs, int numTasks, int numAttempts) { 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 MockHistoryContext(int appid, int numJobs, int numTasks, 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 MockHistoryContext(int appid, int numJobs, int numTasks, int numAttempts, 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;