kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Gustafson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-5664) Disable auto offset commit in ConsoleConsumer if no group is provided
Date Wed, 26 Jul 2017 22:34:00 GMT
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)

Mime
View raw message