You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Gaurav Narula (Jira)" <ji...@apache.org> on 2025/12/12 13:41:00 UTC
[jira] [Updated] (KAFKA-19990) NPE on handling an AllocateProducerIdsResponse
[ https://issues.apache.org/jira/browse/KAFKA-19990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gaurav Narula updated KAFKA-19990:
----------------------------------
Description:
{{RPCProducerIdManager}} attempts to invoke {{handleAllocateProducerIdsResponse}} without checks for {{authenticationException}} and {{versionMismatch}} which can cause NPE at {{response.data()}} since {{response}} might be {{null}}.
Update: The NPE is only in the Scala implmentation of {{RPCProducerIdManager}}. Trunk is not impacted by the NPE but the broker will not retry the request on auth failure.
was:{{RPCProducerIdManager}} attempts to invoke {{handleAllocateProducerIdsResponse}} without checks for {{authenticationException}} and {{versionMismatch}} which can cause NPE at {{response.data()}} since {{response}} might be {{null}}.
> NPE on handling an AllocateProducerIdsResponse
> -----------------------------------------------
>
> Key: KAFKA-19990
> URL: https://issues.apache.org/jira/browse/KAFKA-19990
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 3.9.1, 4.1.1
> Reporter: Gaurav Narula
> Assignee: Gaurav Narula
> Priority: Major
>
> {{RPCProducerIdManager}} attempts to invoke {{handleAllocateProducerIdsResponse}} without checks for {{authenticationException}} and {{versionMismatch}} which can cause NPE at {{response.data()}} since {{response}} might be {{null}}.
> Update: The NPE is only in the Scala implmentation of {{RPCProducerIdManager}}. Trunk is not impacted by the NPE but the broker will not retry the request on auth failure.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)