MAPREDUCE-5220. Setter methods in TaskCompletionEvent are public in MR1 and protected in MR2. (sandyr via tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1482143 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alejandro Abdelnur 2013-05-13 23:09:05 +00:00
parent 3d615b6573
commit 7db8233722
2 changed files with 12 additions and 4 deletions

View File

@ -245,6 +245,9 @@ Release 2.0.5-beta - UNRELEASED
MAPREDUCE-5208. Modified ShuffleHandler to use SecureIOUtils for reading MAPREDUCE-5208. Modified ShuffleHandler to use SecureIOUtils for reading
local files. (Omkar Vinit Joshi via vinodkv) local files. (Omkar Vinit Joshi via vinodkv)
MAPREDUCE-5220. Setter methods in TaskCompletionEvent are public in MR1 and
protected in MR2. (sandyr via tucu)
Release 2.0.4-alpha - 2013-04-25 Release 2.0.4-alpha - 2013-04-25
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -19,6 +19,7 @@
package org.apache.hadoop.mapred; package org.apache.hadoop.mapred;
import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceAudience.Private;
import org.apache.hadoop.classification.InterfaceStability; import org.apache.hadoop.classification.InterfaceStability;
/** /**
@ -117,7 +118,8 @@ public class TaskCompletionEvent
* Set task status. * Set task status.
* @param status * @param status
*/ */
protected void setTaskStatus(Status status) { @Private
public void setTaskStatus(Status status) {
super.setTaskStatus(org.apache.hadoop.mapreduce. super.setTaskStatus(org.apache.hadoop.mapreduce.
TaskCompletionEvent.Status.valueOf(status.name())); TaskCompletionEvent.Status.valueOf(status.name()));
} }
@ -126,7 +128,8 @@ public class TaskCompletionEvent
* Set the task completion time * Set the task completion time
* @param taskCompletionTime time (in millisec) the task took to complete * @param taskCompletionTime time (in millisec) the task took to complete
*/ */
protected void setTaskRunTime(int taskCompletionTime) { @Private
public void setTaskRunTime(int taskCompletionTime) {
super.setTaskRunTime(taskCompletionTime); super.setTaskRunTime(taskCompletionTime);
} }
@ -134,7 +137,8 @@ public class TaskCompletionEvent
* set event Id. should be assigned incrementally starting from 0. * set event Id. should be assigned incrementally starting from 0.
* @param eventId * @param eventId
*/ */
protected void setEventId(int eventId) { @Private
public void setEventId(int eventId) {
super.setEventId(eventId); super.setEventId(eventId);
} }
@ -142,7 +146,8 @@ public class TaskCompletionEvent
* Set task tracker http location. * Set task tracker http location.
* @param taskTrackerHttp * @param taskTrackerHttp
*/ */
protected void setTaskTrackerHttp(String taskTrackerHttp) { @Private
public void setTaskTrackerHttp(String taskTrackerHttp) {
super.setTaskTrackerHttp(taskTrackerHttp); super.setTaskTrackerHttp(taskTrackerHttp);
} }
} }