MAPREDUCE-7426. Fix typo in StartEndTimeBase (#4894)

Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
Samrat 2022-10-30 00:53:30 +05:30 committed by GitHub
parent c096803387
commit e04c9e810b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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>();
@ -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));
}
}
@ -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;
}