Kafka
  1. Kafka
  2. KAFKA-743

PreferredReplicaLeaderElectionCommand has command line error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.8.0
    • Component/s: tools
    • Labels:
      None

      Description

      bin/kafka-preferred-replica-election.sh
      Exception in thread "main" joptsimple.IllegalOptionSpecificationException: ' ' is not a legal option character
      at joptsimple.ParserRules.ensureLegalOptionCharacter(ParserRules.java:81)
      at joptsimple.ParserRules.ensureLegalOption(ParserRules.java:71)
      at joptsimple.ParserRules.ensureLegalOptions(ParserRules.java:76)
      at joptsimple.OptionParser.acceptsAll(OptionParser.java:309)
      at joptsimple.OptionParser.accepts(OptionParser.java:271)
      at kafka.admin.PreferredReplicaLeaderElectionCommand$.main(PreferredReplicaLeaderElectionCommand.scala:29)
      at kafka.admin.PreferredReplicaLeaderElectionCommand.main(PreferredReplicaLeaderElectionCommand.scala)

        Activity

        Hide
        Jun Rao added a comment -

        Attach a fix.

        Show
        Jun Rao added a comment - Attach a fix.
        Hide
        Maxime Brugidou added a comment -

        Same thing for CheckReassignmentStatus and ReassignPartitionsCommand

        Show
        Maxime Brugidou added a comment - Same thing for CheckReassignmentStatus and ReassignPartitionsCommand
        Hide
        Jun Rao added a comment -

        Thanks for the review. Committed to 0.8 after fixing the same problem in the other 2 command line tools.

        Show
        Jun Rao added a comment - Thanks for the review. Committed to 0.8 after fixing the same problem in the other 2 command line tools.

          People

          • Assignee:
            Jun Rao
            Reporter:
            Jun Rao
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development