You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Carsten Lohmann (Jira)" <ji...@apache.org> on 2022/02/25 10:27:00 UTC

[jira] [Commented] (KAFKA-12260) PartitionsFor should not return null value

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

Carsten Lohmann commented on KAFKA-12260:
-----------------------------------------

It looks like this is fixed in Kafka client 3.0.0 and 3.1.0:
https://github.com/apache/kafka/commit/e4f2f6f6e82cafbdea785d53521b96fe062e172d

> PartitionsFor should not return null value
> ------------------------------------------
>
>                 Key: KAFKA-12260
>                 URL: https://issues.apache.org/jira/browse/KAFKA-12260
>             Project: Kafka
>          Issue Type: Improvement
>          Components: consumer
>            Reporter: Boyang Chen
>            Assignee: Boyang Chen
>            Priority: Minor
>
> consumer.partitionsFor() could return null value when topic was not found. This was not properly documented and was error-prone when the return type was a list. We should fix the logic internally to prevent partitionsFor returning null result.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)