You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Narayan Periwal (JIRA)" <ji...@apache.org> on 2018/04/02 11:24:00 UTC

[jira] [Comment Edited] (KAFKA-6681) Two instances of kafka consumer reading the same partition within a consumer group

    [ https://issues.apache.org/jira/browse/KAFKA-6681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16422150#comment-16422150 ] 

Narayan Periwal edited comment on KAFKA-6681 at 4/2/18 11:23 AM:
-----------------------------------------------------------------

[~yuzhihong@gmail.com]
I assume you are asking about this config partition.assignment.strategy. For this, we are using the default class that is there in the consumer configs -  org.apache.kafka.clients.consumer.RangeAssignor 
Will this have the issue?



was (Author: nperiwal):
[~yuzhihong@gmail.com]
I assume you are asking about this config partition.assignment.strategy. For this, we are using the default class class org.apache.kafka.clients.consumer.RangeAssignor 
Will this have the issue?


> Two instances of kafka consumer reading the same partition within a consumer group
> ----------------------------------------------------------------------------------
>
>                 Key: KAFKA-6681
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6681
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients, consumer
>    Affects Versions: 0.10.2.1
>            Reporter: Narayan Periwal
>            Priority: Critical
>         Attachments: server-1.log, server-2.log
>
>
> We have seen this issue with the Kafka consumer, the new library that got introduced in 0.9
> With this new client, the group management is done by kafka coordinator, which is one of the kafka broker.
> We are using Kafka broker 0.10.2.1 and consumer client version is also 0.10.2.1 
> The issue that we have faced is that, after rebalancing, some of the partitions gets consumed by 2 instances within a consumer group, leading to duplication of the entire partition data. Both the instances continue to read until the next rebalancing, or the restart of those clients. 
> It looks like that a particular consumer goes on fetching the data from a partition, but the broker is not able to identify this "stale" consumer instance. 
> We have hit this twice in production. Please look at it the earliest. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)