Skip to content

offsetsForTimes(toppars, timeout, cb) function is returning the first offset instead of the offset within the given timestampΒ #1109

@Roberto4958

Description

@Roberto4958

I am currently trying to get offset for specified time. I found offsetsForTimes(toppars, timeout, cb) within the documentation. I tried putting the timestamp on the offset, for example.

offsetsForTimes([{topic: <topicName>, partition: <partition>, offset: <timestamp>}], <timeout-time>, <cb>)

But this returns the the very first offset instead of the first offset within the time range.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions