Error after consumer reconnect "Transaction offset Commit failed due to consumer group metadata mismatch: Specified group generation id is not valid." #295
Labels
❓need-triage
This issue needs triage, hasn't been looked at by a team member yet
Hey! I have an issue after consumer has reconnected to broker.
This error has appeared since version 1.3.9 after this commit: 2ff59b3
Looks like
groupMetadata
is not thread-safe in org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.This error is hard to reproduce, i only got this error in some tests in CI pipeline.
What's happened by logs:
First, the consumer connected with generationId = 1
Then consumer disconnected from kafka and successfully reconnected with generationId = 2:
But ConsumerGroupMetadata still has generationId = 1:
Environment
The text was updated successfully, but these errors were encountered: