Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
In ConsoleCosnumer, if no group is provided, we generate a random groupId:
consumerProps.put(ConsumerConfig.GROUP_ID_CONFIG, s"console-consumer-${new Random().nextInt(100000)}")
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.
Attachments
Issue Links
- Is contained by
-
KAFKA-4682 Committed offsets should not be deleted if a consumer is still active (KIP-211)
- Resolved
- links to