Sobes.tech
Junior — Middle

What are the consequences if a leadership replica in Kafka fails?

sobes.tech AI

Answer from AI

If the leader replica in Kafka fails, the following occurs:

  • Kafka automatically elects a new leader from the available ISR (in-sync replicas) for the corresponding partition.
  • Until a new leader is elected, read and write operations to this partition may be unavailable, leading to a brief period of data inaccessibility.
  • If the ISR is empty or no replicas are available, the partition becomes unavailable until replicas are restored.

Thus, a leader failure can cause a brief downtime, but thanks to the replication mechanism and automatic leadership election, the system maintains data availability and integrity.

What are the consequences if a leadership replica in… - sobes.tech