Luke Chen created KAFKA-14695:
---------------------------------
Summary: broker will get LEADER_AND_ISR is not enabled error while
ZK migrating to KRaft
Key: KAFKA-14695
URL: https://issues.apache.org/jira/browse/KAFKA-14695
Project: Kafka
Issue Type: Bug
Components: kraft
Affects Versions: 3.4.0
Reporter: Luke Chen
Assignee: Luke Chen
Following the docs here:
[https://kafka.apache.org/documentation/#kraft_zk_migration]
During the step "Migrating brokers to KRaft", after migrating, the broker will
get a lot of error:
{code:java}
org.apache.kafka.common.errors.InvalidRequestException: Received request api
key LEADER_AND_ISR which is not enabled
[2023-02-08 12:06:25,776] ERROR Exception while processing request from
192.168.1.11:9092-192.168.1.11:57210-107 (kafka.network.Processor) {code}
It blocks further migration.
This can be workaround by explicitly setting the listener host name. That is,
instead of setting listeners value like this (also the default value)
_listeners=PLAINTEXT://:9092_
It should be set as: _listeners=PLAINTEXT://localhost:9092_
Will update the doc first, to unblock other users trying to migrate from ZK to
Kraft, then investigating why this happened.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)