You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Vahid Hashemian (JIRA)" <ji...@apache.org> on 2017/07/26 22:43:00 UTC

[jira] [Assigned] (KAFKA-5664) Disable auto offset commit in ConsoleConsumer if no group is provided

     [ https://issues.apache.org/jira/browse/KAFKA-5664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vahid Hashemian reassigned KAFKA-5664:
--------------------------------------

    Assignee: Vahid Hashemian

> Disable auto offset commit in ConsoleConsumer if no group is provided
> ---------------------------------------------------------------------
>
>                 Key: KAFKA-5664
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5664
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Jason Gustafson
>            Assignee: Vahid Hashemian
>
> In ConsoleCosnumer, if no group is provided, we generate a random groupId:
> {code}
> consumerProps.put(ConsumerConfig.GROUP_ID_CONFIG, s"console-consumer-${new Random().nextInt(100000)}")
> {code}
> In this case, since the group is not likely to be used again, we should disable automatic offset commits. This avoids polluting the coordinator cache with offsets that will never be used.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)