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

Broker just stated Ignoring LeaderAndIsr request from controller

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0
    • None
    • core
    • None
    • kfk 2.0
      74 brokers
      3 replica-factors

    Description

      In auto.leader.rebalance.enabled=true 

      Taking a Broker 1013 (with many leader partitions) offline;

      Then, after the leaders of these subdivisions have been elected from other ISRs,

      In theory, 1013 should once again become the leader of those partitions

      Indeed, if you look at the describe command and the information of the corresponding partition in ZK, you can see that the leader has changed back to 1013.

      But if you look at the Controller log and the 1013 log at this point, you'll see that there are some warning messages,

       

       

      It looks like the controller failed to send a LeaderAndIsr request to a 1013 node after it restarted, Then the 1013 node‘s log has been

       

      "Ignoring LeaderAndIsr request from controller 1017 with the correlation id 33 epoch 6 fro partition sp since its associated leader 5 is not who the current leader epoch 5 (state. Change. Logger). "
      

       

       

      After a while,

      the producer reports an error.

      "The server is not The leader for that topically -- partition.. Going to request metadata update now"
      

       

      Attachments

        1. jstack-1013broker-1228-1312
          14.62 MB
          GeoffreyStark
        2. kafka元数据混乱.docx
          2.44 MB
          GeoffreyStark
        3. image-2020-12-28-16-59-03-492.png
          506 kB
          GeoffreyStark
        4. image-2020-12-29-18-00-22-344.png
          310 kB
          GeoffreyStark
        5. server.properties
          4 kB
          GeoffreyStark

        Activity

          People

            Unassigned Unassigned
            gaofeng6 GeoffreyStark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: