Skip to content

Commit

Permalink
TEZ-4585: Fix counters for speculation (#377). (Chenyu Zheng, Reviewe…
Browse files Browse the repository at this point in the history
…d by Ayush Saxena, Shohei Okumiya)
  • Loading branch information
zhengchenyu authored Nov 4, 2024
1 parent 607b2bc commit 3ad97e0
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 3ad97e0

Please sign in to comment.