-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
We are using the below spring client version in our consumer.
gradle dependency:
compile('org.springframework.kafka:spring-kafka':1.1.7.RELEASE)
We often get the error in our consumer logs.
Marking the coordinator <broker>:9093 (id: 12345 rack: null) dead for group group1
Discovered coordinator <broker>:9093 (id: 12345 rack: null) for group group1
Sometimes this leads to losing some messages in the topic.
Our consumer config have the below values :
heartbeat.interval.ms : 3000
session.timeout.ms: 15000
Questions:
- My understanding is that Spring kafka version that we are using sends the heartbeats in the background. Hearbeats are sent only when the poll method is invoked. Does this mean the consumer polls the topic even though no new messages in the topic ? Is that correct ?
- We receive the messages only every 5 mins to the topic(4 partitions). We have two instances of the consumer running and each consumer listens to two partitions in that topic.
Would really like to understand , under what scenarios this can happen ?
Any inputs on this issue is much appreciated. Thanks in advance!
Metadata
Metadata
Assignees
Labels
No labels