Hi Chris,

What version of Streams are you referring to?

On the current trunk the group.id property is removed from the config
for the global consumer that populates the GlobalKTable.

See the following code line
https://github.com/apache/kafka/blob/065411aa2273fd393e02f0af46f015edfc9f9b55/streams/src/main/java/org/apache/kafka/streams/StreamsConfig.java#L1149

Best,
Bruno

On Tue, Oct 29, 2019 at 8:12 PM Chris Toomey <ctoo...@gmail.com> wrote:
>
> We have some simple Kafka streams apps that populate GlobalKTables to use
> as caches for topic contents. When running them with info-level logging
> enabled, I noticed unexpected activity around group coordination (joining,
> rebalancing, leaving, rejoining) that I didn't expect given that they need
> to consume from all topic partitions vs. use the group load balancing
> feature.
>
> I tracked this down to the way the consumer config. is generated for
> a GlobalKTable consumer -- the groupId is set to the Kafka streams
> application id instead of to null -- the consumer needlessly creates a
> ConsumerCoordinator and thus intiiates all the needless associated
> messaging and overhead.
>
> I was going to file a bug for this but per the contributing page am
> bringing this up here first. Is there a reason why GlobalKTable consumers
> should bear this group coordination overhead or should I go ahead and file
> a ticket to remove it?
>
> thanks,
> Chris

Reply via email to