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

Two variables should be exchanged.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.0.0
    • Fix Version/s: 0.10.0.0
    • Component/s: controller
    • Labels:
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: