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

Francis Godinho commented on KAFKA-19585:
-----------------------------------------

Hi [~lianetm], I'm new to contributing to Kafka and would be happy to take a 
stab at this. Can I assign this ticket to myself?

> 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)

Reply via email to