Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10332

MirrorMaker2 fails to detect topic if remote topic is created first

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0, 2.5.2, 2.6.1
    • mirrormaker
    • None

    Description

      Setup:

      • 2 clusters: source and target
      • Mirroring data from source to target
      • create a topic called source.mytopic on the target cluster
      • create a topic called mytopic on the source cluster
        At this point, MM2 does not start mirroring the topic.

      This also happens if you delete and recreate a topic that is being mirrored.

      The issue is in refreshTopicPartitions() which basically does a diff between the 2 clusters.
      When creating the topic on the source cluster last, it makes the partition list of both clusters match, hence not triggering a reconfiguration

      Attachments

        Issue Links

          Activity

            People

              mimaison Mickael Maison
              mimaison Mickael Maison
              Randall Hauch Randall Hauch
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: