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

kafka-metadata-quorum.sh add-controller cause the new added controller to crash with java.lang.IllegalArgumentException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.9.0
    • 3.9.1
    • controller, kraft
    • None

    Description

      `kafka-metadata-quorum.sh --bootstrap-server 127.0.0.1:9092 --command-config controller.properties add-controller` update the metadata successfully and if I ran `kafka-metadata-quorum.sh --bootstrap-server 127.0.0.1:9092 describe --status` I can see the new controller get upgraded from observer to voter.
      However the new added controller crashes immediately once we ran `add-controller` with `java.lang.IllegalArgumentException`

      ```
      2024-11-12 14:38:21 java.lang.IllegalArgumentException: Unexpected type for requestData: UpdateRaftVoterRequestData(clusterId='3zaK3YKRQtm3deDECgnj3w', currentLeaderEpoch=1, voterId=204, voterDirectoryId=VnSWz2WLHLz6xiY9lA2Z9g, listeners=[Listener(name='CONTROLLER', host='controller-4', port=9093)], kRaftVersionFeature=KRaftVersionFeature(minSupportedVersion=0, maxSupportedVersion=1))
      2024-11-12 14:38:21     at org.apache.kafka.raft.KafkaNetworkChannel.buildRequest(KafkaNetworkChannel.java:194)
      2024-11-12 14:38:21     at org.apache.kafka.raft.KafkaNetworkChannel.send(KafkaNetworkChannel.java:119)
      2024-11-12 14:38:21     at org.apache.kafka.raft.KafkaRaftClient.maybeSendRequest(KafkaRaftClient.java:2664)
      2024-11-12 14:38:21     at org.apache.kafka.raft.KafkaRaftClient.maybeSendUpdateVoterRequest(KafkaRaftClient.java:3116)
      2024-11-12 14:38:21     at org.apache.kafka.raft.KafkaRaftClient.pollFollowerAsVoter(KafkaRaftClient.java:3042)
      2024-11-12 14:38:21     at org.apache.kafka.raft.KafkaRaftClient.pollFollower(KafkaRaftClient.java:3022)
      2024-11-12 14:38:21     at org.apache.kafka.raft.KafkaRaftClient.pollCurrentState(KafkaRaftClient.java:3157)
      2024-11-12 14:38:21     at org.apache.kafka.raft.KafkaRaftClient.poll(KafkaRaftClient.java:3299)
      2024-11-12 14:38:21     at org.apache.kafka.raft.KafkaRaftClientDriver.doWork(KafkaRaftClientDriver.java:64)
      2024-11-12 14:38:21     at org.apache.kafka.server.util.ShutdownableThread.run(ShutdownableThread.java:136)
      ```

      Attachments

        Activity

          People

            omnia_h_ibrahim Omnia Ibrahim
            omnia_h_ibrahim Omnia Ibrahim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: