Chia-Ping Tsai created KAFKA-17826:
--------------------------------------
Summary: Consumer#offsetsForTimes should not return null value
Key: KAFKA-17826
URL: https://issues.apache.org/jira/browse/KAFKA-17826
Project: Kafka
Issue Type: Improvement
Reporter: Chia-Ping Tsai
Assignee: Chia-Ping Tsai
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)