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
[BEAM-11325] Kafka Dynamic Read #13750
Conversation
cc: @aromanenko-dev It is a really early stage PR but just in case you are interested in : ) |
2940091
to
3a6dc14
Compare
Hi Alexey, this PR is ready to review. I mark |
@boyuanzz Thanks! I'll take a look on this in the next week. |
Kindly pinging : ) |
Run Java PreCommit |
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.
Thanks, sorry for delay. I took a quick first look and it's fine to me, just a minor notes.
Did you test it against real Kafka cluster with adding/removing topics and/or partitions?
CC: @chamikaramj Could you take a look as well if you have a time?
* | ||
* For a given kafka bootstrap_server, KafkaIO is also able to detect and read from available {@link | ||
* TopicPartition} dynamically. For more design details, please refer to | ||
* https://docs.google.com/document/d/1FU3GxVRetHPLVizP3Mdv6mP5tpjZ3fd99qNjUI5DT5k/. To enable |
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.
Please, put the details here (at least in a short form) instead of the link since it can be expired or disappeared along the time.
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.
Will do. Thanks for pointing this out.
@@ -553,6 +587,9 @@ | |||
abstract Builder<K, V> setValueDeserializerProvider( | |||
DeserializerProvider deserializerProvider); | |||
|
|||
abstract Builder<K, V> setCheckStopReadingFn( |
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.
Wasn't this functionality added in #13710 ?
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.
Yeah, I opened this PR prior to mergeing #13710. I'll rebase them. Thanks for catching it : )
|
||
/** | ||
* A stateful {@linkl DoFn} that emits new available {@link TopicPartition} regularly. Please refer | ||
* to https://docs.google.com/document/d/1FU3GxVRetHPLVizP3Mdv6mP5tpjZ3fd99qNjUI5DT5k/edit# for more |
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.
The same note about the link to details.
Also, ptal on "Java PreCommit" test
|
3a6dc14
to
0fbb21f
Compare
I added most javadoc to |
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.
Thanks! LGTM
I think we can merge it if there are no other objections/comments
Run Java PostCommit |
Thanks for your quick review! I'm going to merge this PR. Cham, feel free to drop any comments if you have concerns around this. I'll follow up if any. |
@boyuanzz I think we forgot one small but important thing - update |
Thanks for the remainder! I'll update |
I just checked |
design doc: https://docs.google.com/document/d/1FU3GxVRetHPLVizP3Mdv6mP5tpjZ3fd99qNjUI5DT5k/edit#
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username
).[BEAM-XXX] Fixes bug in ApproximateQuantiles
, where you replaceBEAM-XXX
with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.