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

Received request api key LEADER_AND_ISR which is not enabled

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.4.0
    • None
    • kraft
    • None

    Description

      I started from a Kafka cluster (with ZooKeeper) with 2 brokers. There's a single topic "test" with 2 partitions and 2 replicas and the internal __consumer_offsets topics.

      While following the ZooKeeper to KRaft migration steps from https://kafka.apache.org/documentation/#kraft_zk_migration, I'm hitting issues at the Migrating brokers to KRaft step.

      When I restart a broker as KRaft, it repetitively prints the following error:

      org.apache.kafka.common.errors.InvalidRequestException: Received request api key LEADER_AND_ISR which is not enabled
      [2023-02-09 16:14:30,334] ERROR Closing socket for 192.168.1.11:9092-192.168.1.11:63737-371 because of error (kafka.network.Processor)
      

      The controller repetitively prints the following error:

      [2023-02-09 16:12:27,456] WARN [Controller id=1000, targetBrokerId=0] Connection to node 0 (mmaison-mac.home/192.168.1.11:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
      [2023-02-09 16:12:27,456] INFO [Controller id=1000, targetBrokerId=0] Client requested connection close from node 0 (org.apache.kafka.clients.NetworkClient)
      [2023-02-09 16:12:27,560] INFO [Controller id=1000, targetBrokerId=0] Node 0 disconnected. (org.apache.kafka.clients.NetworkClient)
      

      Attached the controller logs and logs from broker-0

       

      Attachments

        1. test_online_migration.tar.gz
          14.95 MB
          David Arthur
        2. controller.log
          329 kB
          Mickael Maison
        3. broker0.log
          246 kB
          Mickael Maison

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            akhileshchg Akhilesh Chaganti
            mimaison Mickael Maison
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment