We are using Spring boot kafka listener the prblem is whenever the pod stops or restarts it looses the offset and then stop processing the messages where it left, this happens with a single pod(if it goes down for some reason) as well as all the pods when restarted. The configuration we are using for the consumer are:
consumerProperties:
max.poll.records: 300
auto.offset.reset: earliest
session.timeout.ms: 300000
request.timeout.ms: 400000
allow.auto.create.topics: false
heartbeat.interval.ms: 80000
bindings:
input:
destination: some-input
group: somegroup
consumer:
maxAttempts: 2
autoCommitOffset: false
We are manually acknowledging using header. Auto commit is set to false When the pods are restarted we see a spike on grafana but it does not processes any of the pending messages of the first run, however when i push new messages those start to get processed, which means that the offset is lost between restarts, is there a missing property. Any help or suggestion is greatly welcomed.
EDIT: It seems like the acknowledgement header is not received in the consumers.. not sure why though
-Vaibhav