mjsax commented on a change in pull request #9835:
URL: https://github.com/apache/kafka/pull/9835#discussion_r552874330
##########
File path:
streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java
##########
@@ -155,13 +151,13 @@ void handleRebalanceComplete() {
rebalanceInProgress = false;
}
- void handleCorruption(final Map<TaskId, Collection<TopicPartition>>
tasksWithChangelogs) throws TaskMigratedException {
+ void handleCorruption(final Map<TaskId, Collection<TopicPartition>>
tasksWithChangelogs) {
final Map<Task, Collection<TopicPartition>> corruptedStandbyTasks =
new HashMap<>();
final Map<Task, Collection<TopicPartition>> corruptedActiveTasks = new
HashMap<>();
for (final Map.Entry<TaskId, Collection<TopicPartition>> taskEntry :
tasksWithChangelogs.entrySet()) {
final TaskId taskId = taskEntry.getKey();
- final Task task = tasks.get(taskId);
+ final Task task = tasks.task(taskId);
Review comment:
The old `tasks` variable is the `Map`; the now one is the `Tasks`
container class.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]