Broker Failover, Minute by Minute

Setup: 3 brokers (B1=leader, B2=ISR, B3=ISR), rf=3, min.isr=2, acks=all

TimeEventWhat Kafka doesImpact on producersImpact on consumers
T+0B1 crashesKRaft/ZK detects missing heartbeatNotLeaderForPartitionExceptionFetch disconnect
T+10sElection beginsController selects new leader from ISR——
T+10–15sB2 electedController writes metadata, propagatesProducers retry → B2Reconnect to B2
T+15–20sReconnectProducers resume with acks=all to B2Latency spikeLag stabilizes
T+20sB3 catches upISR restored to {B2, B3}Normal throughput—
T+??B1 restartsB1 rejoins as follower, truncates to HWNo impactNo impact

What did NOT happen: no data loss, no consumer rebalance, no EOS transaction abort (unless producer had open transaction at T+0).