Hi guys,

Here is a case I observed, I have a single-node 3 broker instance cluster.
I created 1 topic with 2 partitions and 2 replica for each partition. The
initial distribution is like this topic1/partition0 ->(broker0, broker2)
 topic1/partition1 ->(broker1,broker2). So broker0 is leader broker for
partition0 and broker1 is the leader broker for partition1.  I then kill
broker0, broker3 becomes leader broker for partition1, then I kill broker2,
broker1 becomes leader broker of both partition0 and partition1 which is
fine.  But when I restart broker0, broker2, after they synced with broker1,
they are just replica broker for partition0 and partition1. So my
consumers(simple consumer) really don't know which broker it should read
from. I found a command to that will force re-balance after failover, but
isn't there any automatic way to rebalance the lleader broker?

Best regards,
Siyuan

Reply via email to