Kafka producer unexpected behaviour
问题 I am running into a strange behaviour with my Kafka producer and consumer. Below is my setup on my local machine 1 zookeper node 2 kafka broker nodes 1 producer (doing async writes) and 1 subscriber written in go using this library I am creating a topic using kafka's command line tool as below ./kafka-topics.sh --zookeeper localhost:2181 --create --topic foo --partitions 1 --replication-factor 2 --config min.insync.replicas=2 The issue is that whenever i kill leader node of the partition, the