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

1701 use last offset from fetch v4 if available #1724

Conversation

keithks
Copy link
Contributor

@keithks keithks commented Mar 1, 2019

We can reproduce #1701 locally

This PR fixes the issue where sometimes a consumer is stuck reading past certain offsets from a compacted topic if the last few messages from a partition have been removed by compaction and the server supports fetch V4 or above.


This change is Reviewable

@dpkp
Copy link
Owner

dpkp commented Mar 13, 2019

@tvoinarovskyi thoughts on this? (lgtm)

@tvoinarovskyi
Copy link
Collaborator

@dpkp we can merge to mitigate the problem. I wanted to make it same as Java's approuch, but I can do that for the release after.

@dpkp dpkp merged commit 7965460 into dpkp:master Mar 13, 2019
@dpkp
Copy link
Owner

dpkp commented Mar 13, 2019

Sounds good to me -- thanks for the PR!

@keithks
Copy link
Contributor Author

keithks commented Mar 13, 2019

Thanks all. Wasn't too familiar with the code so happy to have it refactored later -- just needed something to work for right now.

@keithks keithks deleted the 1701-use-last-offset-from-fetch-v4-if-available branch March 21, 2019 07:57
@keithks keithks restored the 1701-use-last-offset-from-fetch-v4-if-available branch March 21, 2019 07:57
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.

3 participants