m1a2st opened a new pull request, #19575: URL: https://github.com/apache/kafka/pull/19575
The `offsetsForTimes()`, `beginningOffsets()`, `endOffsets()`method in Consumer has a flawed return value design. When no matching record is found, it returns a Map containing `null` values, which breaks developers' expectations that `Map.containsKey()` implies a non-null value from `Map.get()`. This can easily lead to NPE if null checks are omitted. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org