Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAPREDUCE-7426. Fix typo in StartEndTimeBase #4894

Merged
merged 1 commit into from
Oct 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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