topic gets created on target but records stay (or loop) on source #11391
Unanswered
beaufort121
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Can you please share the logs? :) That would help us identify the issue. Cluster Operator, source/target Kafka, and KMM2 logs, thanks. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
MirrorMaker 2: topic gets created on target but records stay (or loop) on source
Behaviour
Topology
Source cluster (Docker Compose, Confluent 7.9.0, PLAINTEXT) → firewall / DNAT → Target cluster (Strimzi, TLS + SCRAM, LB at
188.94.xxx.xxx
).Only ports 9092 / 9095 / 9096 are forwarded; the target cannot open connections back.
MM2 (runs only on the source) connects fine, creates
quelle.<topic>
on the target, then logs exactly oneLEADER_NOT_AVAILABLE
and never produces again.New records appear in the source cluster under the prefixed name instead.
When we forgot the prefix earlier, MM2 produced straight back into the original source topic – endless loop; topic grew huge and became unreadable.
Manual TLS/SCRAM publish into the target topic works, so networking & auth are fine.
Same behaviour with Confluent 7.4 → 7.9.0, fresh connector group IDs, manual pre-creation of target topics, higher retries, shorter refresh intervals, etc.
Any confirmed fix or reliable workaround (producer overrides, multiple tasks, always creating topics beforehand)? Or would you recommend falling back to MirrorMaker 1 / Cluster Linking for one-way replication behind a NAT?
Sanitised configs
1 ·
docker-compose.yml
– source cluster (full)2 ·
mm2-connector.json
(sanitised)3 · Target Strimzi listener (excerpt)
Thanks in advance!
Any idea why MirrorMaker 2 stops after the first
LEADER_NOT_AVAILABLE
, commits offsets but never produces – while direct TLS/SCRAM produce succeeds – and even loops back into the source topic when the prefix is wrong?Beta Was this translation helpful? Give feedback.
All reactions