mjsax commented on a change in pull request #8833:
URL: https://github.com/apache/kafka/pull/8833#discussion_r437800551



##########
File path: 
streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamTask.java
##########
@@ -504,88 +438,66 @@ public void update(final Set<TopicPartition> 
topicPartitions, final Map<String,
 
     @Override
     public void closeAndRecycleState() {
-        prepareClose(true);
-
+        suspend();
+        prepareCommit();

Review comment:
       Assuming rebalancing does not happen often (in a stable deployment) it 
might be re-mature optimization?




----------------------------------------------------------------
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]


Reply via email to