[
https://issues.apache.org/jira/browse/KAFKA-19206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kirk True updated KAFKA-19206:
------------------------------
Description: 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. (was: The ConsumerNetworkThread creates a new NetworkClient, which
connects to and authenticates against a broker. If the authentication fails,
the NetworkClient throws an error, causing the AsyncKafkaConsumer to close.
During the consumer close process the ConsumerNetworkThread is closed, but it
throws a NullPointerException when it attempts to use the requestManagers
and/or networkClientDelegate objects.)
> ConsumerNetworkThread.cleanup() throws NullPointerException if
> initializeResources() 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)