-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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-10342] Filter restored partitions with discovered partitions b… #7726
Conversation
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. Bot commandsThe @flinkbot bot supports the following commands:
|
cc @tzulitai |
...a-base/src/main/java/org/apache/flink/streaming/connectors/kafka/FlinkKafkaConsumerBase.java
Show resolved
Hide resolved
@tzulitai Do you think you can review this small patch? (Do let me know if there are still prior steps before the review process). |
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.
Hi @fengli, thank you for the contribution.
I sincerely apologize for the bumpy contribution experience you had so far. I've been hard blocked on some Flink 1.8.0 development work, and didn't find time to look at this until now.
Please let me know what you think about the comment, most importantly whether or not we should really be filtering based on external system returned results.
...a-base/src/main/java/org/apache/flink/streaming/connectors/kafka/FlinkKafkaConsumerBase.java
Outdated
Show resolved
Hide resolved
*/ | ||
@Test | ||
public void testSetFilterRestoredParitionsNoChange() throws Exception { | ||
checkFilterRestoredPartitionsWithDisovered(Arrays.asList(new String[]{"kafka_topic_1", "kafka_topic_2"}), |
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.
nit: I would also let the first argument be a new line, just for consistency and readability.
Same for the other 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.
Done.
@flinkbot approve quality |
a1485dd
to
0161094
Compare
@fengli one comment about addressing reviews: |
...a-base/src/main/java/org/apache/flink/streaming/connectors/kafka/FlinkKafkaConsumerBase.java
Outdated
Show resolved
Hide resolved
There seems to be failing tests that are related:
|
This looks good to merge now! I'll proceed to clean this PR up and merge this for 1.8.0 .. |
…titionsWithSubscribedTopics method in FlinkKafkaConsumerBase This closes apache#7726.
…titionsWithSubscribedTopics method in FlinkKafkaConsumerBase This closes apache#7726.
…titionsWithSubscribedTopics method in FlinkKafkaConsumerBase This closes apache#7726.
…titionsWithSubscribedTopics method in FlinkKafkaConsumerBase This closes #7726.
…titionsWithSubscribedTopics method in FlinkKafkaConsumerBase This closes apache#7726.
What is the purpose of the change
Filter restored partitions with current discovered partitions. It's enabled by default since it'll result unexpected behaviors - e.g. When changing the topic name, or remove some topics, The removed/renamed partitions will be still consumed.
Brief change log
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation