Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-3370 nearest offset reset #9006

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

ttapjinda
Copy link

@ttapjinda ttapjinda commented Jul 10, 2020

from discussion in KAFKA-3370

  • Introduce nearest.offset.reset option on the Consumer, which will only be used on OffsetOutOfRangeException.
    On enable, the offset will be reset to the earliest if out-of-range offset is not higher than the earliest offset, otherwise it will be reset to the latest offset.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@ttapjinda
Copy link
Author

This is quite old ticket, we have implemented similar feature and used inside Agoda for a while. so we decided to open a pr here as well.
Could you help with the review @guozhangwang ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant