You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "David Jacot (Jira)" <ji...@apache.org> on 2023/02/23 12:37:00 UTC

[jira] [Updated] (KAFKA-14744) NPE while converting OffsetFetch from < 8 to >= 8

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

David Jacot updated KAFKA-14744:
--------------------------------
    Description: 
While refactoring the OffsetFetch handling in KafkaApis, we introduced a NullPointerException (NPE). The NPE arises when the FetchOffset API is called with a client using a version older than version 8 and using null for the topics to signal that all topic-partition offsets must be returned. This means that this bug mainly impacts admin tools. The consumer does not use null.

This NPE is here: https://github.com/apache/kafka/commit/24a86423e9907b751d98fddc7196332feea2b48d#diff-0f2f19fd03e2fc5aa9618c607b432ea72e5aaa53866f07444269f38cb537f3feR237. `topics` can be `null` to signal that all topics must be fetched.

  was:This NPE is here: https://github.com/apache/kafka/commit/24a86423e9907b751d98fddc7196332feea2b48d#diff-0f2f19fd03e2fc5aa9618c607b432ea72e5aaa53866f07444269f38cb537f3feR237. `topics` can be `null` to signal that all topics must be fetched.


> NPE while converting OffsetFetch from < 8 to >= 8
> -------------------------------------------------
>
>                 Key: KAFKA-14744
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14744
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 3.5.0
>            Reporter: David Jacot
>            Assignee: David Jacot
>            Priority: Major
>
> While refactoring the OffsetFetch handling in KafkaApis, we introduced a NullPointerException (NPE). The NPE arises when the FetchOffset API is called with a client using a version older than version 8 and using null for the topics to signal that all topic-partition offsets must be returned. This means that this bug mainly impacts admin tools. The consumer does not use null.
> This NPE is here: https://github.com/apache/kafka/commit/24a86423e9907b751d98fddc7196332feea2b48d#diff-0f2f19fd03e2fc5aa9618c607b432ea72e5aaa53866f07444269f38cb537f3feR237. `topics` can be `null` to signal that all topics must be fetched.



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