[
https://issues.apache.org/jira/browse/KAFKA-19585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18013220#comment-18013220
]
Lianet Magrans edited comment on KAFKA-19585 at 8/11/25 1:38 PM:
-----------------------------------------------------------------
Hi [~francisgodinho]! Thanks for your interest! There is already someone from
the team working on this :S
But stay on the lookout for new issue that we create, and also maybe check
what's already out with minor/trivial complexity (ex. [this
filter|https://issues.apache.org/jira/browse/KAFKA-15642?jql=project%20%3D%20KAFKA%20AND%20status%20in%20(Open%2C%20%22In%20Progress%22%2C%20Reopened%2C%20%22Patch%20Available%22)%20AND%20priority%20in%20(Minor%2C%20Trivial)%20AND%20component%20%3D%20clients]
for the clients space, but also check other components). Welcome to the
community!
was (Author: JIRAUSER300183):
Hi [~francisgodinho]! Thanks for your interest! There is already someone from
the team working on this :S
But stay on the lookout for new issue that we create, and also maybe check
what's already out with minor/trivial complexity (ex.
[https://issues.apache.org/jira/browse/KAFKA-15642?jql=project%20%3D%20KAFKA%20AND%20status%20in%20(Open%2C%20%22In%20Progress%22%2C%20Reopened%2C%20%22Patch%20Available%22)%20AND%20priority%20in%20(Minor%2C%20Trivial)%20AND%20component%20%3D%20clients|http://example.com]
for the clients space, but also check other components). Welcome to the
community!
> 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
> 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)