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

TimeoutException when using kafka-preferred-replica-election

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: admin
    • Labels:
      None

      Description

      When running kafka-preferred-replica-election --bootstrap-server xxx:9092

      I'm getting this error:

      Timeout waiting for election resultsTimeout waiting for election resultsException in thread "main" kafka.common.AdminCommandFailedException at kafka.admin.PreferredReplicaLeaderElectionCommand$AdminClientCommand.electPreferredLeaders(PreferredReplicaLeaderElectionCommand.scala:246) at kafka.admin.PreferredReplicaLeaderElectionCommand$.run(PreferredReplicaLeaderElectionCommand.scala:78) at kafka.admin.PreferredReplicaLeaderElectionCommand$.main(PreferredReplicaLeaderElectionCommand.scala:42) at kafka.admin.PreferredReplicaLeaderElectionCommand.main(PreferredReplicaLeaderElectionCommand.scala)Caused by: org.apache.kafka.common.errors.TimeoutException: Aborted due to timeout.

       

      Because we have a big cluster and getting all the data from the zookeeper is taking more the 30 second.

       

      After searching the code I saw that the 30 second is hard-coded can you enable us to set the timeout as parameter?

      https://github.com/confluentinc/kafka/blob/master/core/src/main/scala/kafka/admin/PreferredReplicaLeaderElectionCommand.scala

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hores Or Shemesh
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: