-
-
Notifications
You must be signed in to change notification settings - Fork 527
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
Discard messages for toppars that saw a seek operation during a fetch or batch processing #367
Merged
Merged
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a1c48de
Filter partition data from fetch response that during the fetch has g…
JaapRood cb446e0
Expose `isStale` method to `eachBatch` handler
JaapRood 011feb7
Discard a batch of messages queued for processing with `eachMessage` …
JaapRood d7facd6
Verify received responses are discarded for partitions with pending s…
JaapRood cb28fe1
Verify `isStale` is exposed as part of `eachBatch`
JaapRood 6974e80
Fix and verify the discarding of messages consumed through `consumer.…
JaapRood 9a5cf87
Amend the documentation to detail seeking behaviour and the `isStale`…
JaapRood d30061f
Resolve a markdown formatting issue.
JaapRood 692ab80
Merge branch 'master' into fix/seek-stale-batches
JaapRood a0c2c2c
Remove console.log
tulios 0516eb6
Merge branch 'master' into fix/seek-stale-batches
tulios File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe
isStale
isn't clear enough, what do you think? I can't offer a better name now, let me think about this.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming is always hard :/ I tried to reason from a person implementing
eachBatch
and how the name of the method should hint at what they can or cannot do. In this case we'd want to imply that one could continue processing, but that messages have gone outdated. MaybeisCanceled
makes more sense?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sitting on
isCanceled
for a bit, I think it might be confusing in combination withisRunning
. What would be the difference between the two? WhileisStale
in isolation is maybe less obvious, I do think it avoids that confusion.