Skip to content

Need ability to seek to the beginning of a partition #191

Closed

Description

We need the option to read from the beginning of a partition. Something along the lines of https://stackoverflow.com/questions/49723182/kafka-consumer-seektobeginning but the parallel consumer does not expose seekToBeginning() or assignment(). Is it possible to expose these or provide an overall wrapper for seekToBeginning()?

Blocked by:

Activity

  1. astubbs commented on May 17, 2022

    @astubbs
    Contributor

    This should be achievable from the following workaround:

    • shutdown PC
    • use the raw consumer to seek the raw consumer
    • rebuild pc with the same consumer
    • pc will start receiving records from wherever underlying consumer starts from
  2. rrva commented on May 22, 2022

    @rrva

    Antony Stubbs (@astubbs) I can't figure out how to implement this workaround. Please provide a working example.

  3. astubbs commented on Jul 5, 2022

    @astubbs
    Contributor
  4. astubbs commented on Jul 12, 2022

    @astubbs
    Contributor

    You can try out the consumer interface branch now if you like - it works, and has been used in some experimental tests in other branches.

  5. johnbyrnejb commented on Jul 7, 2023

    @johnbyrnejb
    Contributor

    Closing Issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions