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
KAFKA-13397: Honor 'replication.policy.separator' configuration when creating MirrorMaker2 internal topics #11431
Conversation
…replication policy separator. 2. Honor replication.policy.separator when creating MM2 internal offsets, status, config topics.
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 for the PR, it looks like you uncovered some real issues with driver mode. I left a few comments.
connect/mirror-client/src/main/java/org/apache/kafka/connect/mirror/MirrorClientConfig.java
Outdated
Show resolved
Hide resolved
connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorMakerConfig.java
Outdated
Show resolved
Hide resolved
connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorMakerConfig.java
Outdated
Show resolved
Hide resolved
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 for your pr and for spotting this. I left a few comments.
connect/mirror-client/src/main/java/org/apache/kafka/connect/mirror/MirrorClientConfig.java
Outdated
Show resolved
Hide resolved
connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorMakerConfig.java
Outdated
Show resolved
Hide resolved
connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorMakerConfig.java
Outdated
Show resolved
Hide resolved
So, We can now organize the issues like the following:
My approach focuses on standalone mode with 1 and 2, and @OmniaGM 's approach (i.e., fixing |
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.
So in the end I don't think we want Kafka Connect internal topics to reuse the configured separator of MirrorMaker topics. Or if it's something you want to do then we'll need a KIP.
See my comment in #11431 (comment)
…sInternalTopic. 2. Add ReplicationPolicyTest.
@mimaison Here is the fix. I added @OmniaGM Thanks for suggesting the right alternative. 🙇 |
@dongjinleekr I think it's probably something we want in 3.1 otherwise KIP-690 may break some users, WDYT? |
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.
LGTM, thanks
@dajac Can we apply with on 3.1? Without this fix, when using MirrorMaker in dedicated mode and overriding the replication policy separator, Connect internal topics get mirrored. |
@dongjinleekr I'll rename KAFKA-13397 to match the fix. Then if you want to propose a further KIP/PR to actually honor the separator we can use a new JIRA. |
…nal` (#11431) When running in dedicated mode, Connect runtimes are configured to use the `.internal` suffix for their topics. Reviewers: Mickael Maison <mickael.maison@gmail.com>, Omnia G H Ibrahim <o.g.h.ibrahim@gmail.com>
Backported to 3.1: 417630d |
…nal` (apache#11431) When running in dedicated mode, Connect runtimes are configured to use the `.internal` suffix for their topics. Reviewers: Mickael Maison <mickael.maison@gmail.com>, Omnia G H Ibrahim <o.g.h.ibrahim@gmail.com>
…nal` (apache#11431) When running in dedicated mode, Connect runtimes are configured to use the `.internal` suffix for their topics. Reviewers: Mickael Maison <mickael.maison@gmail.com>, Omnia G H Ibrahim <o.g.h.ibrahim@gmail.com>
I found this issue while working on KAFKA-13365. Since KAFKA-10777 is scheduled to be shipped with 3.1.0, this issue would be better to be fixed.
cc/ @ryannedolan @mimaison @OmniaGM
Committer Checklist (excluded from commit message)