Skip to content

Commit

Permalink
MAPREDUCE-7426. Fix typo in StartEndTimeBase (apache#4894)
Browse files Browse the repository at this point in the history
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
  • Loading branch information
Samrat002 authored and HarshitGupta11 committed Nov 28, 2022
1 parent 856f8a5 commit 97caa3b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ abstract class StartEndTimesBase implements TaskRuntimeEstimator {
= new HashMap<Job, DataStatistics>();


private final Map<Job, Float> slowTaskRelativeTresholds
private final Map<Job, Float> slowTaskRelativeThresholds
= new HashMap<Job, Float>();

protected final Set<Task> doneTasks = new HashSet<Task>();
Expand Down Expand Up @@ -89,7 +89,7 @@ public void contextualize(Configuration conf, AppContext context) {
final Job job = entry.getValue();
mapperStatistics.put(job, new DataStatistics());
reducerStatistics.put(job, new DataStatistics());
slowTaskRelativeTresholds.put
slowTaskRelativeThresholds.put
(job, conf.getFloat(MRJobConfig.SPECULATIVE_SLOWTASK_THRESHOLD,1.0f));
}
}
Expand Down Expand Up @@ -141,7 +141,7 @@ public long thresholdRuntime(TaskId taskID) {

long result = statistics == null
? Long.MAX_VALUE
: (long)statistics.outlier(slowTaskRelativeTresholds.get(job));
: (long)statistics.outlier(slowTaskRelativeThresholds.get(job));
return result;
}

Expand Down

0 comments on commit 97caa3b

Please sign in to comment.