Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,6 @@ private static class RedundantScheduleTransition
@Override
public void transition(TaskImpl task, TaskEvent event) {
LOG.info("Scheduling a redundant attempt for task " + task.taskId);
task.counters.findCounter(TaskCounter.NUM_SPECULATIONS).increment(1);
TaskAttempt earliestUnfinishedAttempt = null;
for (TaskAttempt ta : task.attempts.values()) {
// find the oldest running attempt
Expand All @@ -1063,6 +1062,7 @@ public void transition(TaskImpl task, TaskEvent event) {
task.getTaskID(), task.commitAttempt);
return;
}
task.counters.findCounter(TaskCounter.NUM_SPECULATIONS).increment(1);
task.addAndScheduleAttempt(earliestUnfinishedAttempt.getTaskAttemptID());
}
}
Expand Down