You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Kirk True (Jira)" <ji...@apache.org> on 2025/04/26 01:34:00 UTC

[jira] [Updated] (KAFKA-19206) ConsumerNetworkThread.cleanup() throws NullPointerException if initializeResources() previously failed

     [ https://issues.apache.org/jira/browse/KAFKA-19206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kirk True updated KAFKA-19206:
------------------------------
    Summary: ConsumerNetworkThread.cleanup() throws NullPointerException if initializeResources() previously failed  (was: ConsumerNetworkThread.cleanup() throws NullPointerException if initializeResources() failed)

> ConsumerNetworkThread.cleanup() throws NullPointerException if initializeResources() previously failed
> ------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-19206
>                 URL: https://issues.apache.org/jira/browse/KAFKA-19206
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients, consumer
>    Affects Versions: 4.0.0
>            Reporter: Kirk True
>            Assignee: Kirk True
>            Priority: Major
>              Labels: kip-848-client-support
>             Fix For: 4.1.0
>
>
> The {{ConsumerNetworkThread}} initializes its {{NetworkClientDelegate}} and {{RequestManagers}} objects in {{{}initializeResources(){}}}. If either object fails its initialization, an error is thrown, causing the {{AsyncKafkaConsumer}} to close. During the consumer close process, the {{ConsumerNetworkThread}} calls its {{cleanup()}} method, but a {{NullPointerException}} will be thrown when attempts to dereference either the {{NetworkClientDelegate}} and/or {{RequestManagers}} objects.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)