From e04c9e810bf7d4a5013a8ce2d466a1345829b317 Mon Sep 17 00:00:00 2001 From: Samrat Date: Sun, 30 Oct 2022 00:53:30 +0530 Subject: [PATCH] MAPREDUCE-7426. Fix typo in StartEndTimeBase (#4894) Signed-off-by: Akira Ajisaka --- .../mapreduce/v2/app/speculate/StartEndTimesBase.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/speculate/StartEndTimesBase.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/speculate/StartEndTimesBase.java index 8eda00528f1..be35b68a56f 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/speculate/StartEndTimesBase.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/speculate/StartEndTimesBase.java @@ -61,7 +61,7 @@ abstract class StartEndTimesBase implements TaskRuntimeEstimator { = new HashMap(); - private final Map slowTaskRelativeTresholds + private final Map slowTaskRelativeThresholds = new HashMap(); protected final Set doneTasks = new HashSet(); @@ -89,7 +89,7 @@ abstract class StartEndTimesBase implements TaskRuntimeEstimator { 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 @@ abstract class StartEndTimesBase implements TaskRuntimeEstimator { long result = statistics == null ? Long.MAX_VALUE - : (long)statistics.outlier(slowTaskRelativeTresholds.get(job)); + : (long)statistics.outlier(slowTaskRelativeThresholds.get(job)); return result; }