You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by aa...@apache.org on 2022/10/29 19:23:36 UTC
[hadoop] branch trunk updated: MAPREDUCE-7426. Fix typo in StartEndTimeBase (#4894)
This is an automated email from the ASF dual-hosted git repository.
aajisaka pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new e04c9e810bf MAPREDUCE-7426. Fix typo in StartEndTimeBase (#4894)
e04c9e810bf is described below
commit e04c9e810bf7d4a5013a8ce2d466a1345829b317
Author: Samrat <de...@gmail.com>
AuthorDate: Sun Oct 30 00:53:30 2022 +0530
MAPREDUCE-7426. Fix typo in StartEndTimeBase (#4894)
Signed-off-by: Akira Ajisaka <aa...@apache.org>
---
.../apache/hadoop/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<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 @@ 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;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org