If one or more brokers do not work, the producer will try again for a certain period of time (depending on the settings). And during this time, one or more consumers will not be able to read anything until the relevant brokers are reached.
But if the cluster shuts down for a longer period than your total retry period, you may need to find a way to resend these failed messages.
source share