0
votes

I already kept auto.offset.reset = earliest

Here my scenario is different;

I have 1 zookeeper and 3 brokers.Now i stopped consumer and started posting messages (lets say 4 messages, later i stopped Kafka server (1 zookeeper and 3 brokers), and now i made consumer up. After some time i made up Kafka server(1 zookeeper and 3 brokers).

Since my 4 messages are not processed with consumer it should processes now,but which is not happening.

1

1 Answers

0
votes

This is normal behaviour. If no broker is available, then you cannot produce messages and so messages are lost. In this case, your producer should receive an error when attempting to produce messages: then he must handle this case and keep not posted messages until at least one Kafka broker is available.