You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Manish Sharma <ma...@gmail.com> on 2015/11/07 21:59:27 UTC

High CPU ~ Shrinking ISR for partition ~ skip updating ISR endless loop

One of my brokers (id 0) is continuously emitting such log entries and
eating up CPU cycles..

*[2015-11-07 12:49:50,677] INFO Partition [Wmt_Thursday_158,12] on broker
0: Shrinking ISR for partition [Wmt_Thursday_158,12] from 0,3 to 0
(kafka.cluster.Partition)*

*[2015-11-07 12:49:50,680] INFO Partition [Wmt_Thursday_158,12] on broker
0: Cached zkVersion [2] not equal to that in zookeeper, skip updating ISR
(kafka.cluster.Partition)*

*[2015-11-07 12:49:50,680] INFO Partition [Wmt_Saturday_139,8] on broker 0:
Shrinking ISR for partition [Wmt_Saturday_139,8] from 0,8 to 0
(kafka.cluster.Partition)*

*[2015-11-07 12:49:50,683] INFO Partition [Wmt_Saturday_139,8] on broker 0:
Cached zkVersion [2] not equal to that in zookeeper, skip updating ISR
(kafka.cluster.Partition)*


*% /usr/local/kafka/bin/kafka-topics.sh --describe --zookeeper
kafka01:2182,kafka05:2182 --topic Wmt_Thursday_158*


*Topic:Wmt_Thursday_158  PartitionCount:15       ReplicationFactor:2
Configs:*

*        Topic: Wmt_Thursday_158 Partition: 0    Leader: 6       Replicas:
6,8   Isr: 6,8*

*        Topic: Wmt_Thursday_158 Partition: 1    Leader: 7       Replicas:
7,0   Isr: 7*

*        Topic: Wmt_Thursday_158 Partition: 2    Leader: 8       Replicas:
8,1   Isr: 1,8*

*        Topic: Wmt_Thursday_158 Partition: 3    Leader: 2       Replicas:
0,2   Isr: 2*

*        Topic: Wmt_Thursday_158 Partition: 4    Leader: 1       Replicas:
1,3   Isr: 1,3*

*        Topic: Wmt_Thursday_158 Partition: 5    Leader: 2       Replicas:
2,4   Isr: 2,4*

*        Topic: Wmt_Thursday_158 Partition: 6    Leader: 3       Replicas:
3,5   Isr: 5,3*

*        Topic: Wmt_Thursday_158 Partition: 7    Leader: 4       Replicas:
4,6   Isr: 6,4*

*        Topic: Wmt_Thursday_158 Partition: 8    Leader: 5       Replicas:
5,7   Isr: 5,7*

*        Topic: Wmt_Thursday_158 Partition: 9    Leader: 6       Replicas:
6,0   Isr: 6*

*        Topic: Wmt_Thursday_158 Partition: 10   Leader: 7       Replicas:
7,1   Isr: 1,7*

*        Topic: Wmt_Thursday_158 Partition: 11   Leader: 8       Replicas:
8,2   Isr: 2,8*

*        Topic: Wmt_Thursday_158 Partition: 12   Leader: 3       Replicas:
0,3   Isr: 3*

*        Topic: Wmt_Thursday_158 Partition: 13   Leader: 1       Replicas:
1,4   Isr: 1,4*

*        Topic: Wmt_Thursday_158 Partition: 14   Leader: 2       Replicas:
2,5   Isr: 2,5*


Any ideas on how can I fix this broker?

Re: High CPU ~ Shrinking ISR for partition ~ skip updating ISR endless loop

Posted by Petri Lehtinen <pe...@digip.org>.
Manish Sharma wrote:
> One of my brokers (id 0) is continuously emitting such log entries and
> eating up CPU cycles..
> 
> *[2015-11-07 12:49:50,677] INFO Partition [Wmt_Thursday_158,12] on broker
> 0: Shrinking ISR for partition [Wmt_Thursday_158,12] from 0,3 to 0
> (kafka.cluster.Partition)*
> 
> *[2015-11-07 12:49:50,680] INFO Partition [Wmt_Thursday_158,12] on broker
> 0: Cached zkVersion [2] not equal to that in zookeeper, skip updating ISR
> (kafka.cluster.Partition)*
> 
> *[2015-11-07 12:49:50,680] INFO Partition [Wmt_Saturday_139,8] on broker 0:
> Shrinking ISR for partition [Wmt_Saturday_139,8] from 0,8 to 0
> (kafka.cluster.Partition)*
> 
> *[2015-11-07 12:49:50,683] INFO Partition [Wmt_Saturday_139,8] on broker 0:
> Cached zkVersion [2] not equal to that in zookeeper, skip updating ISR
> (kafka.cluster.Partition)*

The same thing happened to me, too. There seems to be a related issue
in the issue tracker:

    https://issues.apache.org/jira/browse/KAFKA-3042