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

Chia-Ping Tsai commented on KAFKA-19990:
----------------------------------------

trunk: 
https://github.com/apache/kafka/commit/c284a92472c37320e67d20259fb72b5e334b40c3
4.1: 
https://github.com/apache/kafka/commit/ed425bab503b58dedb98d1d69f74115a6a47dbc3
4.0: 
https://github.com/chia7712/kafka/commit/ff65f765d4a03f72e19625f358e724b8106a6f1e
4.2: I will backport to 4.2 branch after 4.2.0
3.9: pending

> 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
>             Fix For: 3.9.2, 4.3.0, 4.0.2, 4.1.2, 4.2.1
>
>
> {{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)

Reply via email to