Skip to content

Commit

Permalink
Fix throttler quota removal for in-progress tasks (#1616)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-falca committed Jul 16, 2021
1 parent 577eedd commit 025ca33
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -1282,8 +1282,12 @@ private void interBrokerMoveReplicas() {
finishedDataMovementInMB, totalDataToMoveInMB,
totalDataToMoveInMB == 0 ? 100 : String.format("%.2f", finishedDataMovementInMB * UNIT_INTERVAL_TO_PERCENTAGE
/ totalDataToMoveInMB));
throttleHelper.clearThrottles(completedTasks,
tasksToExecute.stream().filter(t -> t.state() == ExecutionTaskState.IN_PROGRESS).collect(Collectors.toList()));
List<ExecutionTask> inProgressTasks = tasksToExecute.stream()
.filter(t -> t.state() == ExecutionTaskState.IN_PROGRESS)
.collect(Collectors.toList());
inProgressTasks.addAll(inExecutionTasks());

throttleHelper.clearThrottles(completedTasks, inProgressTasks);
}
// After the partition movement finishes, wait for the controller to clean the reassignment zkPath. This also
// ensures a clean stop when the execution is stopped in the middle.
Expand Down

0 comments on commit 025ca33

Please sign in to comment.