flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tzu-Li (Gordon) Tai (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-4722) Consumer group concept not working properly with FlinkKafkaConsumer09
Date Mon, 03 Oct 2016 11:00:25 GMT

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

Tzu-Li (Gordon) Tai commented on FLINK-4722:
--------------------------------------------

Hi [~sudhanshulenka],
I think this is expected behaviour.

Internally, each source subtask of {{FlinkKafkaConsumer09}} uses {{KafkaConsumer#assign()}}
(no consumer group functionality) instead of {{KafkaConsumer#subscribe()}} (has consumer group
functionality). So that's why all 3 FlinkKafkaConsumer09 are getting all records.

Right now, we need to internally use {{KafkaConsumer#assign()}} because partition-to-subtask
assignment must be determinate to achieve exactly-once guarantees using Flink's checkpointing
mechanism.

> Consumer group concept not working properly with FlinkKafkaConsumer09  
> -----------------------------------------------------------------------
>
>                 Key: FLINK-4722
>                 URL: https://issues.apache.org/jira/browse/FLINK-4722
>             Project: Flink
>          Issue Type: Bug
>          Components: Kafka Connector
>    Affects Versions: 1.1.2
>            Reporter: Sudhanshu Sekhar Lenka
>
> When Kafka one Topic has 3 partition and 3 FlinkKafkaConsumer09 connected to that same
topic using "group.id" ,"myGroup" property . Still flink consumer get all data which are push
to each 3   partition . While it work properly with normal java consumer. each consumer get
specific data.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message