[ https://issues.apache.org/jira/browse/KAFKA-9540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17034918#comment-17034918 ]
ASF GitHub Bot commented on KAFKA-9540: --------------------------------------- guozhangwang commented on pull request #8092: KAFKA-9540: Move "Could not find the standby task while closing it" log to debug level URL: https://github.com/apache/kafka/pull/8092 ---------------------------------------------------------------- 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 > Application getting "Could not find the standby task 0_4 while closing it" > error > -------------------------------------------------------------------------------- > > Key: KAFKA-9540 > URL: https://issues.apache.org/jira/browse/KAFKA-9540 > Project: Kafka > Issue Type: Bug > Components: streams > Reporter: Badai Aqrandista > Priority: Minor > > Because of this the following line, there is a possibility that some standby > tasks might not be created: > https://github.com/apache/kafka/blob/2.4.0/streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java#L436 > Then causing this line to not adding the task to standby task list: > https://github.com/apache/kafka/blob/2.4.0/streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java#L299 > But this line assumes that all standby tasks are to be created and add it to > the standby list: > https://github.com/apache/kafka/blob/2.4.0/streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java#L168 > This results in user getting this error message on the next > PARTITION_ASSIGNMENT state: > {noformat} > Could not find the standby task 0_4 while closing it > (org.apache.kafka.streams.processor.internals.AssignedStandbyTasks:74) > {noformat} > But the harm caused by this issue is minimal: No standby task for some > partitions. And it is recreated on the next rebalance anyway. So, I suggest > lowering this message to WARN. Or probably check to WARN when standby task > could not be created. -- This message was sent by Atlassian Jira (v8.3.4#803005)