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

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

Jason Gustafson created KAFKA-5664:
--------------------------------------

             Summary: 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


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)