You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Lianet Magrans (Jira)" <ji...@apache.org> on 2025/08/07 12:32:00 UTC
[jira] [Created] (KAFKA-19585) Avoid noisy NPE logs when closing consumer after constructor failures
Lianet Magrans created KAFKA-19585:
--------------------------------------
Summary: 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: Lianet Magrans
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)