Skip to content

Marking the coordinator dead #574

@dilipsundarraj1

Description

@dilipsundarraj1

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:

  1. 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 ?
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions