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

KRaft controller should not send LISR to KRaft brokers during migration

    XMLWordPrintableJSON

Details

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

    Description

      During a migration, after a broker is restarted in KRaft mode the KRaft controller is still sending it LISR as if it were a ZK broker. This results in errors like:

      [2023-02-09 14:53:26,892] ERROR Closing socket for 172.19.0.4:9092-172.19.0.9:32876-0 because of error (kafka.network.Processor)
      org.apache.kafka.common.errors.InvalidRequestException: Received request api key LEADER_AND_ISR which is not enabled
      

      This can be observed by running the kafkatest.tests.core.zookeeper_migration_test.TestMigration.test_online_migration ducktape test. Attached are logs from a local run of this test with --debug set.

      It seems these errors do not affect the consistency of metadata during the migration, but the excessive LISR sent out will impact performance on large clusters.

      Attachments

        1. test_online_migration.tar.gz
          14.95 MB
          David Arthur

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mumrah David Arthur
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: