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

MM2 rolling restart can drop configuration changes silently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.7.0, 3.6.2
    • mirrormaker
    • None

    Description

      When MM2 is restarted, it tries to update the Connector configuration in all flows. This is a one-time trial, and fails if the Connect worker is not the leader of the group.

      In a distributed setup and with a rolling restart, it is possible that for a specific flow, the Connect worker of the just restarted MM2 instance is not the leader, meaning that Connector configurations can get dropped.

      For example, assuming 2 MM2 instances, and one flow A->B:

      1. MM2 instance 1 is restarted, the worker inside MM2 instance 2 becomes the leader of A->B Connect group.
      2. MM2 instance 1 tries to update the Connector configurations, but fails (instance 2 has the leader, not instance 1)
      3. MM2 instance 2 is restarted, leadership moves to worker in MM2 instance 1
      4. MM2 instance 2 tries to update the Connector configurations, but fails

      At this point, the configuration changes before the restart are never applied. Many times, this can also happen silently, without any indication.

      Attachments

        Issue Links

          Activity

            People

              gharris1727 Greg Harris
              durban Daniel Urban
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: