[
https://issues.apache.org/jira/browse/KAFKA-19990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18045929#comment-18045929
]
Chia-Ping Tsai edited comment on KAFKA-19990 at 12/17/25 5:17 PM:
------------------------------------------------------------------
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:
https://github.com/apache/kafka/commit/ca9a1b103755217643500b1f01f4dbc16d7da83d
3.9:
https://github.com/apache/kafka/commit/aaacb5867540cbe81ff4a1ff315f439bc65cc4a8
was (Author: chia7712):
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)