1

I have a topic which is consumed by two consumer groups. There are 10 messages in the topic.

Application 1 (Consumer group 1)has finished processing of messages from topic and when i describe kafka-consumer-groups (with --group consumerGroup1) then it correctly shows CURRENT-OFFSET =10 and LOG-END-OFFSET =10.

Now i start application 2 (Consumer group 2) which is consuming same topic. It is not processing messages . When i describe kafka-consumer-groups (with --group consumerGroup2) , it surprisingly shows CURRENT-OFFSET =10 and LOG-END-OFFSET =10.

Ideally this should not happen and kafka should be able to recognize that for the consumer group 2 there are no message processed and it should process all messages.

What could be wrong here.

1

1 Answer 1

2

You have to set earliest property in your KafkaStreams Properties

Kafka consumer not returning any events

Sign up to request clarification or add additional context in comments.

1 Comment

All heroes don't wear capes . It Worked like a charm. Thanks a lot

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.