MAPREDUCE-5744. Job hangs because RMContainerAllocator.preemptReduce() violates the comparator contract (Gera Shegalov via kasha)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1565478 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0001e39cf0
commit
914a9709b9
|
@ -230,6 +230,10 @@ Release 2.3.0 - UNRELEASED
|
||||||
MAPREDUCE-5725. Make explicit that TestNetworkedJob relies on the Capacity
|
MAPREDUCE-5725. Make explicit that TestNetworkedJob relies on the Capacity
|
||||||
Scheduler (Sandy Ryza)
|
Scheduler (Sandy Ryza)
|
||||||
|
|
||||||
|
MAPREDUCE-5744. Job hangs because
|
||||||
|
RMContainerAllocator$AssignedRequests.preemptReduce() violates the
|
||||||
|
comparator contract (Gera Shegalov via kasha)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
MAPREDUCE-4680. Job history cleaner should only check timestamps of files in
|
MAPREDUCE-4680. Job history cleaner should only check timestamps of files in
|
||||||
|
|
|
@ -1143,9 +1143,9 @@ public class RMContainerAllocator extends RMContainerRequestor
|
||||||
new Comparator<TaskAttemptId>() {
|
new Comparator<TaskAttemptId>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(TaskAttemptId o1, TaskAttemptId o2) {
|
public int compare(TaskAttemptId o1, TaskAttemptId o2) {
|
||||||
float p = getJob().getTask(o1.getTaskId()).getAttempt(o1).getProgress() -
|
return Float.compare(
|
||||||
getJob().getTask(o2.getTaskId()).getAttempt(o2).getProgress();
|
getJob().getTask(o1.getTaskId()).getAttempt(o1).getProgress(),
|
||||||
return p >= 0 ? 1 : -1;
|
getJob().getTask(o2.getTaskId()).getAttempt(o2).getProgress());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue