From 0add6b4edc6055c6b7dddb2992ca0e09ba9c3f76 Mon Sep 17 00:00:00 2001 From: Arun Murthy Date: Mon, 3 Jun 2013 21:35:04 +0000 Subject: [PATCH] MAPREDUCE-5220. Fix backward incompatibility for TaskCompletionEvent by adding back setTaskID. Contributed by Zhijie Shen. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1489187 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-mapreduce-project/CHANGES.txt | 3 +++ .../apache/hadoop/mapred/TaskCompletionEvent.java | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index 3e376779ffc..16b6c90eacd 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -481,6 +481,9 @@ Release 2.1.0-beta - UNRELEASED of the entire Container in the startContainer call - YARN-684. (Vinod Kumar Vavilapalli via sseth) + MAPREDUCE-5220. Fix backward incompatibility for TaskCompletionEvent by + adding back setTaskID. (Zhijie Shen via acmurthy) + BREAKDOWN OF HADOOP-8562 SUBTASKS MAPREDUCE-4739. Some MapReduce tests fail to find winutils. diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/TaskCompletionEvent.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/TaskCompletionEvent.java index 02cba94c4ee..96ab111a5c1 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/TaskCompletionEvent.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/TaskCompletionEvent.java @@ -105,7 +105,17 @@ public class TaskCompletionEvent public void setTaskId(String taskId) { this.setTaskAttemptId(TaskAttemptID.forName(taskId)); } - + + /** + * Sets task id. + * @param taskId + * @deprecated use {@link #setTaskAttemptId(TaskAttemptID)} instead. + */ + @Deprecated + public void setTaskID(TaskAttemptID taskId) { + this.setTaskAttemptId(taskId); + } + /** * Sets task id. * @param taskId