Fix KafkaRecordSupplier assign#7260
Merged
asdf2014 merged 2 commits intoapache:masterfrom Mar 14, 2019
Merged
Conversation
Contributor
|
@jon-wei I think thi sis failing UT |
Contributor
Author
|
@fjy Ah, I was making some intermediate changes to the PR, it should be good now. |
gianm
approved these changes
Mar 14, 2019
Contributor
gianm
left a comment
There was a problem hiding this comment.
LGTM. There does not seem to be a reason to seek to the earliest offsets at that point in the code.
clintropolis
approved these changes
Mar 14, 2019
clintropolis
pushed a commit
to clintropolis/druid
that referenced
this pull request
Mar 14, 2019
* Fix KafkaRecordSupplier assign * TeamCity fix
gianm
pushed a commit
to implydata/druid-public
that referenced
this pull request
Mar 14, 2019
* Fix KafkaRecordSupplier assign * TeamCity fix
jon-wei
pushed a commit
that referenced
this pull request
Mar 15, 2019
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
KafkaRecordSupplier.assign() has an extraneous call to seekToEarliest(), which can result in situations where a record < startOffset is passed to the task.
If that call is not removed, the unit test added in this PR will fail with:
I believe the extra seekToEarliest call can also cause the issue seen in the following task log snippet: