Hi Artem,

yes that's exactly the case!

We're using Spring Kafka 2.7 and the @RetryableTopic has a default replication factor of 1 but our broker is configured with minIsr=2.

In Spring Kafka 3 they changed it to -1 (meaning broker default value) [0].

Thanks!

Andi


[0] https://github.com/spring-projects/spring-kafka/issues/2471


Am 17.05.2024 um 10:02 schrieb Artem Timchenko:
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



Reply via email to