authorjapps / zerocode

A community-developed, free, opensource, automated testing framework for microservices APIs, Kafka(Data Streams) and Load testing. Zerocode Open Source enables you to create, change and maintain your automated test scenarios via simple JSON or YAML files. Visit documentation below:

Home Page:https://zerocode-tdd.tddfy.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] seekTo throws NPE when no offset found for a timestamp

authorjapps opened this issue · comments

@a1shadows, Now you have been added as a collaborator, can you please Click here- accept and join ?


reported by @a1shadows :

(1)
If there are partitions for which there is no valid offset corresponding to the timestamp to seek to, the offsetForTimestamp method still includes it in the Map returned, but with a NULL value. We need to skip all partitions that have offset as NULL when subscribing to avoid an error when we try to seek to the offset at a later step.


(2)
There was a bug in the seekTo feature . In situations where there are multiple partitions on the topic and some of the partitions do not have a valid offset corresponding the timestamp to seek to, the seek operation will give an NPE.


More discussions are here:
#630 (comment)