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)

Reply via email to