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

Two variables should be exchanged.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.9.0.0
    • 0.10.0.0
    • controller
    • NA

    Description

      Two variables should be exchanged in KafkaController.scala as follows:
      val topicsForWhichPartitionReassignmentIsInProgress = controllerContext.partitionsUndergoingPreferredReplicaElection.map(_.topic)
      val topicsForWhichPreferredReplicaElectionIsInProgress = controllerContext.partitionsBeingReassigned.keySet.map(_.topic)
      val topicsIneligibleForDeletion = topicsWithReplicasOnDeadBrokers | topicsForWhichPartitionReassignmentIsInProgress |
      topicsForWhichPreferredReplicaElectionIsInProgress

      Should change to:
      val topicsForWhichPreferredReplicaElectionIsInProgress = controllerContext.partitionsUndergoingPreferredReplicaElection.map(_.topic)
      val topicsForWhichPartitionReassignmentIsInProgress = controllerContext.partitionsBeingReassigned.keySet.map(_.topic)
      val topicsIneligibleForDeletion = topicsWithReplicasOnDeadBrokers | topicsForWhichPartitionReassignmentIsInProgress |
      topicsForWhichPreferredReplicaElectionIsInProgress

      Attachments

        1. Kafka-2965.patch
          2 kB
          Bo Wang

        Activity

          People

            Unassigned Unassigned
            wangbo23 Bo Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: