Skip to content

Commit

Permalink
TEZ-4585: Fix counters for speculation
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengchenyu committed Oct 31, 2024
1 parent 607b2bc commit f788008
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit f788008

Please sign in to comment.