ableegoldman commented on a change in pull request #8833:
URL: https://github.com/apache/kafka/pull/8833#discussion_r439086416
##########
File path:
streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java
##########
@@ -210,9 +214,8 @@ public void handleAssignment(final Map<TaskId,
Set<TopicPartition>> activeTasks,
tasksToRecycle.add(task);
} else {
try {
- task.prepareCloseClean();
- final Map<TopicPartition, OffsetAndMetadata>
committableOffsets = task
- .committableOffsetsAndMetadata();
+ task.suspend();
Review comment:
@mjsax @guozhangwang why do we need to commit at all during
`handleAssignment`? Shouldn't we have already committed all tasks that _need_
to be committed during `handleRevocation`?
That's not exactly a bug, I'm just wondering if it's necessary?
----------------------------------------------------------------
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]