MAPREDUCE-4800. Cleanup o.a.h.mapred.MapTaskStatus - remove unused code. (kkambatl via tucu)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1410701 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cd3e17fb0a
commit
63d27f591c
|
@ -48,6 +48,9 @@ Release 2.0.3-alpha - Unreleased
|
||||||
MAPREDUCE-4777. In TestIFile, testIFileReaderWithCodec relies on
|
MAPREDUCE-4777. In TestIFile, testIFileReaderWithCodec relies on
|
||||||
testIFileWriterWithCodec. (Sandy Ryza via tomwhite)
|
testIFileWriterWithCodec. (Sandy Ryza via tomwhite)
|
||||||
|
|
||||||
|
MAPREDUCE-4800. Cleanup o.a.h.mapred.MapTaskStatus - remove unused
|
||||||
|
code. (kkambatl via tucu)
|
||||||
|
|
||||||
Release 2.0.2-alpha - 2012-09-07
|
Release 2.0.2-alpha - 2012-09-07
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -25,8 +25,7 @@ import java.io.IOException;
|
||||||
|
|
||||||
class MapTaskStatus extends TaskStatus {
|
class MapTaskStatus extends TaskStatus {
|
||||||
|
|
||||||
private long mapFinishTime;
|
private long mapFinishTime = 0;
|
||||||
private long sortFinishTime;
|
|
||||||
|
|
||||||
public MapTaskStatus() {}
|
public MapTaskStatus() {}
|
||||||
|
|
||||||
|
@ -49,10 +48,10 @@ class MapTaskStatus extends TaskStatus {
|
||||||
@Override
|
@Override
|
||||||
void setFinishTime(long finishTime) {
|
void setFinishTime(long finishTime) {
|
||||||
super.setFinishTime(finishTime);
|
super.setFinishTime(finishTime);
|
||||||
if (mapFinishTime == 0) {
|
// set mapFinishTime if it hasn't been set before
|
||||||
mapFinishTime = finishTime;
|
if (getMapFinishTime() == 0) {
|
||||||
|
setMapFinishTime(finishTime);
|
||||||
}
|
}
|
||||||
setSortFinishTime(finishTime);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -74,16 +73,6 @@ class MapTaskStatus extends TaskStatus {
|
||||||
void setMapFinishTime(long mapFinishTime) {
|
void setMapFinishTime(long mapFinishTime) {
|
||||||
this.mapFinishTime = mapFinishTime;
|
this.mapFinishTime = mapFinishTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public long getSortFinishTime() {
|
|
||||||
return sortFinishTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
void setSortFinishTime(long sortFinishTime) {
|
|
||||||
this.sortFinishTime = sortFinishTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
synchronized void statusUpdate(TaskStatus status) {
|
synchronized void statusUpdate(TaskStatus status) {
|
||||||
|
|
Loading…
Reference in New Issue