You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Lianet Magrans (Jira)" <ji...@apache.org> on 2025/09/08 17:54:00 UTC
[jira] [Resolved] (KAFKA-19585) Avoid noisy NPE logs when closing consumer after constructor failures
[ https://issues.apache.org/jira/browse/KAFKA-19585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lianet Magrans resolved KAFKA-19585.
------------------------------------
Resolution: Fixed
> Avoid noisy NPE logs when closing consumer after constructor failures
> ---------------------------------------------------------------------
>
> Key: KAFKA-19585
> URL: https://issues.apache.org/jira/browse/KAFKA-19585
> Project: Kafka
> Issue Type: Bug
> Components: clients, consumer
> Reporter: Lianet Magrans
> Assignee: Genseric Ghiro
> Priority: Minor
>
> If there's a failure in the kafka consumer constructor, we attempt to close it https://github.com/lianetm/kafka/blob/2329def2ff9ca4f7b9426af159b6fa19a839dc4d/clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java#L540
> In that case, it could be the case that some components may have not been created, so we should consider some null checks to avoid noisy logs about NPE.
> This noisy logs have been reported with the console share consumer in a similar scenario, so this task is to review and do a similar fix for the Async if needed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)