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

黃竣陽 updated KAFKA-17826:
------------------------
    External issue URL: 
https://cwiki.apache.org/confluence/display/KAFKA/KIP-1140%3A+Avoid+to+return+null+value+in+Map+from+public+api+of+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: 黃竣陽
>            Priority: Minor
>              Labels: need-kip
>
> [https://github.com/apache/kafka/pull/17353#discussion_r1795032707]
>  
> KIP: https://cwiki.apache.org/confluence/x/mIuMEw
> 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