mjsax commented on a change in pull request #8833:
URL: https://github.com/apache/kafka/pull/8833#discussion_r437802329
##########
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:
For eoa-beta, if we commit, we alway need to commit all tasks. And to
not distinguish between non-eos/eos-alpha vs eos-beta, be decided to just
commit all tasks for all cases.
And we don't own `StreamThread#lastCommitMs` so we cannot update it.
For L205: the outter if checks already if `task.isActive`
----------------------------------------------------------------
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]