-
Notifications
You must be signed in to change notification settings - Fork 123
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
[FLINK-32416] initial implementation of DynamicKafkaSource with bound… #44
Conversation
8e8ac92
to
6e2e5ee
Compare
6e2e5ee
to
abf843d
Compare
Hey Mason! Do you want a review for this? |
abf843d
to
9df828e
Compare
@mxm Yes please! I've rebased the PR and working on fixing some flaky unit tests |
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 @mas-chen! The changes look very solid to me and they capture what has been proposed in the FLIP. The only thing we are missing here is documentation. It doesn't have to be much but we should at least outline some basic usage examples.
...r-kafka/src/main/java/org/apache/flink/connector/kafka/source/DynamicKafkaSourceOptions.java
Outdated
Show resolved
Hide resolved
...r-kafka/src/main/java/org/apache/flink/connector/kafka/source/DynamicKafkaSourceOptions.java
Outdated
Show resolved
Hide resolved
...onnector-kafka/src/main/java/org/apache/flink/connector/kafka/source/DynamicKafkaSource.java
Outdated
Show resolved
Hide resolved
flink-connector-kafka/src/test/resources/log4j2-test.properties
Outdated
Show resolved
Hide resolved
...onnector-kafka/src/main/java/org/apache/flink/connector/kafka/source/DynamicKafkaSource.java
Outdated
Show resolved
Hide resolved
...onnector-kafka/src/main/java/org/apache/flink/connector/kafka/source/DynamicKafkaSource.java
Outdated
Show resolved
Hide resolved
612b977
to
f16506a
Compare
f16506a
to
326d133
Compare
3aed0e7
to
8dc9cf3
Compare
be5a71d
to
e63a2aa
Compare
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.
@mas-chen I've been testing this with a real, simple implementation of the KafkaMetadataService over the winter break and it has worked nicely, matching what is described in the FLIP. Added test time to the build is also acceptable. The code overall looks pretty solid as well.
Since this new connector is marked as @Experimental
, I think we're in a good state to merge it to be included for Kafka connector 3.1.0 release. What do you think @mas-chen?
fdc9f8a
to
5c229b3
Compare
...a/src/main/java/org/apache/flink/connector/kafka/source/enumerator/KafkaSourceEnumState.java
Show resolved
Hide resolved
c67cf7a
to
6ccf31d
Compare
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.
Looks good! Cosmetic comment: #44 (comment)
Let me know when you want to merge.
7afb2c5
to
c5f5a33
Compare
Sounds good. Can we get a bare-minimum version of the documentation into this PR? |
Are the Javadocs sufficient in the bare minimum case? Otherwise, I'll just write the documentation into this PR |
A brief one-pager of the feature would be good. We can expand on it later. Just to have something in the web docs. |
c5f5a33
to
8196eb7
Compare
8196eb7
to
65e4c74
Compare
one-pager docs are here: docs/content/docs/connectors/datastream/dynamic-kafka.md. Marked with experimental status. Also copied this into the chinese doc directory. (https://issues.apache.org/jira/browse/FLINK-32417) I will still need to expand on the available config options, observability, and popular setter methods |
…ed/unbounded support and unit/integration tests add dynamic kafka source docs
53447ff
to
86923eb
Compare
Awesome, thanks a lot! Merging once tests pass. |
NB: after this was merged, the CI doesn't work for |
We also noticed that. @mas-chen is looking into fixing this. |
Debug info:
https://github.com/apache/flink-connector-kafka/actions/runs/7504290046/job/20433204351 |
Sorry about that. ^The linked PR should fix this |
…ed/unbounded support and unit/integration tests
What is the purpose of the change
FLIP-246 describes the changes and this PR follows the design illustrated in the doc.
Brief Change Log
Verifying this change