It sounds like replicas will not be allotted to other brokers in case of broker failures. I created simple test set up with 3 brokers. I created a topic with partition = 13, replicas = 3.
I brought down one broker(broker 1) , I see "ISR" and "Leader" got updated to reflect that fact ( Though, the replica list still shows broker id of the broker that got shut down just now ) .
I bootstrapped another brand new broker with id 4. At this point, I was assuming, the kafka could create replicas on this broker of the above topic which doesn't seem so, any reason why?
So, why is that Kafka designed NOT to create the replica on other available machines if one of the brokers is down that holds the replicas. It just merely switches leader flag
PS : I understand from the documentation that - replicas will NOT auto heal by themselves. But, what is the reasoning behind as the implicit assumption in distributed system is to create the replicas on available machines to circumvent the fact the some of the replicas are not available.
Looking closely through the documentation
The Kafka cluster will automatically detect any broker shutdown or failure and elect new leaders for the partitions on that machine.
Confirms that, kafka will not do anything with respect to creating additional replicas if broker(s) down.
what was the reasoning behind replica is not created in any available machine ?
will it not be created at all? If yes, replica count might be different than original count ?