guozhangwang commented on a change in pull request #8872: URL: https://github.com/apache/kafka/pull/8872#discussion_r440348339
########## File path: streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorStateManager.java ########## @@ -509,11 +509,12 @@ void transitionTaskType(final TaskType newType, final LogContext logContext) { throw new IllegalStateException("Tried to recycle state for task type conversion but new type was the same."); } + TaskType oldType = taskType; taskType = newType; log = logContext.logger(ProcessorStateManager.class); logPrefix = logContext.logPrefix(); - log.debug("Transitioning state manager for {} task {} to {}", taskType, taskId, newType); + log.debug("Transitioning state manager for {} task {} to {}", oldType, taskId, newType); Review comment: I think using oldType/newType is fine here since then we do not need to keep in mind of the ordering of each call? ---------------------------------------------------------------- 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