You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Kirk True (Jira)" <ji...@apache.org> on 2025/12/04 01:32:00 UTC

[jira] [Reopened] (KAFKA-19891) AsyncKafkaConsumer logs "Unexpected exception" for timeouts during close

     [ https://issues.apache.org/jira/browse/KAFKA-19891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kirk True reopened KAFKA-19891:
-------------------------------

> AsyncKafkaConsumer logs "Unexpected exception" for timeouts during close
> ------------------------------------------------------------------------
>
>                 Key: KAFKA-19891
>                 URL: https://issues.apache.org/jira/browse/KAFKA-19891
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients, consumer
>            Reporter: Lucas Brutschy
>            Assignee: Anton Vasanth
>            Priority: Minor
>             Fix For: 4.2.0
>
>
> The new consumer (in share, consumer and streams groups) log "unexpected exception" at error log level when hitting a timeout during consumer close:
> [https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractHeartbeatRequestManager.java#L318]
> [https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManager.java#L489]
> This is confusing, since this is not really unexpected, and should probably be logged at warn level at most.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)