[
https://issues.apache.org/jira/browse/KAFKA-17826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai reassigned KAFKA-17826:
--------------------------------------
Assignee: Chia-Chuan Yu (was: Chia-Ping Tsai)
> 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-Chuan Yu
> Priority: Minor
> Labels: need-kip
>
> 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)