kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Richardson <ch...@chrisrichardson.net>
Subject Re: Kafka cluster behavior: broker no longer belonging to ISR, offsets reset to middle of partition
Date Wed, 21 Sep 2016 15:35:43 GMT
Turns out that ntp was not correctly setup and so the clocks were incorrect.
I'd imagine that this would explain why brokers left the ISRs.

On Mon, Sep 19, 2016 at 2:50 PM, Chris Richardson <chris@chrisrichardson.net
> wrote:

> Hi,
> One of my Kafka clusters (3 brokers, default.replication.factor=2) that
> has been working fine until yesterday. The message volume was pretty low.
> There were no obvious problems except....
> The first symptom was *kafka-consumer-groups.sh* failing with an
> empty.head exception.
> When I used *kafka-topics --describe* I saw that one of the brokers was
> no longer part of the appropriate ISRs.
> Restarting that broker appeared not solve the problem.
> In fact, I got the impression that the broker was temporarily in the ISR
> and then left again.
> I think I restarted each broker and eventually things returned to normal.
> The problem then reoccurred a couple of hours later.
> During this time, I also had a problem with one of the Kafka
> clients:
> ERROR kafka.consumer.ConsumerFetcherThread - [ConsumerFetcherThread-
> mytopic-consumer-81a939d49903-1474231957102-90b6fc16-0-6], Current offset
> 5488 for partition [mytopic,5] out of range; reset offset to
> 2340\n","stream":"stdout","time":"2016-09-18T21:13:54.151815047Z"}
> This topic partition had >5488 messages so there offset was definitely not
> out of range. The result was that the consumer reprocessed old messages.
> The lag as reported by kafka-consumer-groups.sh when from <10 to > 2500
> Thoughts? Recommendations for debugging this problem when it occurs again?
> Chris

Learn microservices - http://learnmicroservices.io
Microservices application platform http://eventuate.io

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message