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

Controller resigned but it also acts as a controller for a long time

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.0.0, 0.9.0.1, 0.10.0.0, 0.10.0.1
    • 0.10.2.0
    • controller
    • Linux Os

    Description

      We have a cluster with 10 nodes,and we execute following operation as below.
      1.we execute some topic partition reassign from one node to other 9 nodes in the cluster, and which triggered controller.
      2.controller invoke PartitionsReassignedListener's handleDataChange and read all partition reassign rules from the zk path, and executed all onPartitionReassignment for all partition that match conditions.
      3.but the controller is expired from zk, after what some nodes of 9 nodes also expired from zk.
      5.then controller invoke onControllerResignation to resigned as the controller.

      we found after the controller is resigned, it acts as controller for about 3 minutes, which can be found in my attachment.

      Attachments

        1. log.tar.gz
          2.73 MB
          tuyang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Json Tu tuyang
              Guozhang Wang Guozhang Wang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: