- list consumer group members
kafka-consumer-groups --describe --bootstrap-server localhost:9092 --group g1 --members
- show consumer group state
kafka-consumer-groups --describe --bootstrap-server localhost:9092 --group g1 --state
-
Phase 1: Joining the Group
-
Phase 2: Synchronizing Group State
- Leader Failures
The leader of each group is responsible for initiating group synchronization when topic metadata changes. A leader failure is detected by the coordinator through the expiration of its session timeout. The coordinator will respond by forcing all members to rejoin, which will allow a new leader to be elected.