Skip to content

Commit

Permalink
KAFKA-3952: Consumer rebalance verifier never succeed due to type mis…
Browse files Browse the repository at this point in the history
…match

Author: Wan Wenli <wwl.990@hotmail.com>

Reviewers: Guozhang Wang <wangguoz@gmail.com>

Closes #1612 from swwl1992/ticket-KAFKA-3952-fix-consumer-rebalance-verifier

(cherry picked from commit 7a70c1a)
Signed-off-by: Guozhang Wang <wangguoz@gmail.com>
  • Loading branch information
wanwenli authored and guozhangwang committed Jul 15, 2016
1 parent 78bd897 commit dfd5946
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -18,7 +18,6 @@
package kafka.tools

import joptsimple.OptionParser
import org.I0Itec.zkclient.ZkClient
import org.apache.kafka.common.security._

import kafka.utils.{Logging, ZKGroupTopicDirs, ZkUtils, CommandLineUtils}
Expand Down Expand Up @@ -117,7 +116,7 @@ object VerifyConsumerRebalance extends Logging {
// check if the owner is a valid consumer id
consumerIdsForTopic match {
case Some(consumerIds) =>
if(!consumerIds.contains(partitionOwner)) {
if(!consumerIds.map(c => c.toString).contains(partitionOwner)) {
error(("Owner %s for partition [%s,%d] is not a valid member of consumer " +
"group %s").format(partitionOwner, topic, partition, group))
rebalanceSucceeded = false
Expand Down

0 comments on commit dfd5946

Please sign in to comment.