guozhangwang commented on a change in pull request #8988:
URL: https://github.com/apache/kafka/pull/8988#discussion_r500521516



##########
File path: 
streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorContextImpl.java
##########
@@ -65,10 +65,6 @@ public ProcessorContextImpl(final TaskId id,
 
     @Override
     public void transitionToActive(final StreamTask streamTask, final 
RecordCollector recordCollector, final ThreadCache newCache) {
-        if (stateManager.taskType() != TaskType.ACTIVE) {

Review comment:
       Actually I realized that we call this function sometimes (e.g. upon 
initialization) even when the task is already active, so we cannot just reject 
and fail if it was not in standby




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to