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

Kirk True updated KAFKA-17826:
------------------------------
    Component/s: clients
                 consumer

> Consumer#offsetsForTimes should not return null value
> -----------------------------------------------------
>
>                 Key: KAFKA-17826
>                 URL: https://issues.apache.org/jira/browse/KAFKA-17826
>             Project: Kafka
>          Issue Type: Improvement
>          Components: clients, consumer
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Minor
>
> https://github.com/apache/kafka/pull/17353#discussion_r1795032707
> The map returned by Consumer#offsetsForTimes can have null value if the 
> specific timestamp is not mapped to any offset. That is a anti-pattern due to 
> following reasons.
> 1. most java11+ collection can't accept null value
> 2. the other similar methods in consumer does not do that
> 3. admin does not do that



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

Reply via email to