Hi, this could be the case if you have a topic with min.insync.replicas > replication factor.
On Fri, May 17, 2024 at 10:37 AM Andi Büchler <a...@buechlers.ch> wrote: > Hello, > > using the JmxTool I discovered that one can have _no_ under replicated > partitions, but have an under minISR partition count > 0. Does anyone > know, how that can be? I was expecting that when a partition is below > the minimum in sync replica count, it would be defined as under > replicated as well. > > > This is how I was checking it: > > > [appuser@kafka-0 ~]$ > > jmx_metric="kafka.server:type=ReplicaManager,name=UnderReplicatedPartitions" > [appuser@kafka-0 ~]$ /bin/kafka-run-class kafka.tools.JmxTool > --object-name $jmx_metric --one-time true --jmx-url > "service:jmx:rmi:///jndi/rmi://:5555/jmxrmi" > Trying to connect to JMX url: service:jmx:rmi:///jndi/rmi://:5555/jmxrmi. > > "time","kafka.server:type=ReplicaManager,name=UnderReplicatedPartitions:Value" > 1715928561345,0 > [appuser@kafka-0 ~]$ > [appuser@kafka-0 ~]$ > > jmx_metric="kafka.server:type=ReplicaManager,name=UnderMinIsrPartitionCount" > [appuser@kafka-0 ~]$ /bin/kafka-run-class kafka.tools.JmxTool > --object-name $jmx_metric --one-time true --jmx-url > "service:jmx:rmi:///jndi/rmi://:5555/jmxrmi" > Trying to connect to JMX url: service:jmx:rmi:///jndi/rmi://:5555/jmxrmi. > > "time","kafka.server:type=ReplicaManager,name=UnderMinIsrPartitionCount:Value" > 1715928602545,1 > > > Regards, > > Andi > > >