You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Dharmang Makwana (Jira)" <ji...@apache.org> on 2021/03/23 06:00:00 UTC

[jira] [Commented] (KAFKA-7791) Not log retriable exceptions as errors

    [ https://issues.apache.org/jira/browse/KAFKA-7791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17306787#comment-17306787 ] 

Dharmang Makwana commented on KAFKA-7791:
-----------------------------------------

Hello Team,

We are also getting the same issue and below is the detail for your reference.

Version: 2.12-2.5.0

Stack Trace:

Exception in thread "APPLICATION_LOGEVENT_REQ_HANDLER-cf7e832f-0343-4bde-97ff-53eac9dc89ee-StreamThread-1" org.apache.kaf
ka.common.KafkaException: Unexpected error in TxnOffsetCommitResponse: The coordinator is loading and hence can't process
requests.
at org.apache.kafka.clients.producer.internals.TransactionManager$TxnOffsetCommitHandler.handleResponse(TransactionManager.java:1304)
at org.apache.kafka.clients.producer.internals.TransactionManager$TxnRequestHandler.onComplete(TransactionManager.java:907)
at org.apache.kafka.clients.ClientResponse.onComplete(ClientResponse.java:101)
at org.apache.kafka.clients.NetworkClient.completeResponses(NetworkClient.java:482)
at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:474)
at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:216)
at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:163)
at java.lang.Thread.run(Thread.java:745)
Exception in thread "EVENT_LOG_REQ_HANDLER-ee364a84-e5ff-42a7-bd71-a6edc4b8ae53-StreamThread-2" org.apache.kafka.common.K
afkaException: Unexpected error in TxnOffsetCommitResponse: The coordinator is loading and hence can't process requests.
at org.apache.kafka.clients.producer.internals.TransactionManager$TxnOffsetCommitHandler.handleResponse(Transacti
onManager.java:1304)
at org.apache.kafka.clients.producer.internals.TransactionManager$TxnRequestHandler.onComplete(TransactionManager
.java:907)
at org.apache.kafka.clients.ClientResponse.onComplete(ClientResponse.java:101)
at org.apache.kafka.clients.NetworkClient.completeResponses(NetworkClient.java:482)
at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:474)
at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:216)
at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:163)
at java.lang.Thread.run(Thread.java:745)

> Not log retriable exceptions as errors
> --------------------------------------
>
>                 Key: KAFKA-7791
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7791
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>    Affects Versions: 2.1.0
>            Reporter: Yaroslav Klymko
>            Priority: Minor
>
> Background: I've spotted tons of kafka related errors in logs, after investigation I found out that those are harmless as being retried.
> Hence I propose to not log retriable exceptions as errors.
> Examples of what I've see in logs:
>  * Offset commit failed on partition .. at offset ..: The request timed out.
>  * Offset commit failed on partition .. at offset ..: The coordinator is loading and hence can't process requests.
>  * Offset commit failed on partition .. at offset ..: This is not the correct coordinator.
>  * Offset commit failed on partition .. at offset ..: This server does not host this topic-partition.
>  
> Here is attempt to fix this: https://github.com/apache/kafka/pull/5904



--
This message was sent by Atlassian Jira
(v8.3.4#803005)