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)