Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heartbeat poll expired, leaving group. Leaving consumer group #343

Open
haseebkhawaja opened this issue Jul 31, 2024 · 1 comment
Open

Comments

@haseebkhawaja
Copy link

I am using this docker-compose

version: "3"

services:
  zookeeper:
    image: confluentinc/cp-zookeeper:latest
    container_name: zookeeper
    ports:
      - "2181:2181"
    environment:
      ZOOKEEPER_CLIENT_PORT: 2181
      ZOOKEEPER_TICK_TIME: 2000

  kafka:
    image: confluentinc/cp-kafka:latest
    container_name: kafka
    depends_on:
      - zookeeper
    ports:
      - "9092:9092" # Kafka broker port
    environment:
      KAFKA_BROKER_ID: 1
      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
      # Replace 'your.local.IP.address' with your actual local network IP
      KAFKA_ADVERTISED_LISTENERS: plaintext://10.100.103.201:9092
      KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
      KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
      KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1

I am facing this issue most of the time
2024-07-30 11:06:58,309 - WARNING - Heartbeat poll expired, leaving group
2024-07-30 11:06:58,310 - INFO - Leaving consumer group (os_ai_req_grp_3)

To overcome this issue
I changes the consumer group name after facing the above mentioned issue.. like change from "os_ai_req_grp_3" to "os_ai_req_grp_4"
But the problem is that
I don't know when the consumer group has been left... It may be after some mints, may be after hours or may be after 1 day.... but it leaves....

So, I am interested in the solution as I cannot change the name of consumer group each time... I want automated solution....
<<< Suggest me reliable solution >>>

Thanks in advance

@haseebkhawaja
Copy link
Author

@blaisdellk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant