Re: Kafka bug ISR expands/shrinks "Count" JMX attribute doesn't work as expected

2018-04-20 Thread Stanislav Antic
I'm checking with prometheus using prometheus jmx exporter. When I shutdown one broker I don't have any line with: "Shrinking ISR from %s to %s" even though that ISR have been shrinked: Topic:test-topicPartitionCount:4ReplicationFactor:2 Configs: Topic: test-topic Part

Re: Kafka bug ISR expands/shrinks "Count" JMX attribute doesn't work as expected

2018-04-17 Thread Ismael Juma
How are you checking these metrics? They are per leader. That is, if broker A is the leader for topic partition topic-0 and broker B is a follower, then shutting down broker B should cause the IsrShrinksPerSec for broker A to be updated. You would also something like the following in the server.log

Kafka bug ISR expands/shrinks "Count" JMX attribute doesn't work as expected

2018-04-17 Thread Stanislav Antic
Problems are: * JMX attribute: `kafka.server` Is always 0 for `Count` and all other attributes. If I shutdown any broker I would expect that this would increase. * JMX attribute: `kafka.server` Have random behavior sometimes on shutting down broker it increases and on starting it also incr