How to recover from exceptions sent by producer.send() in Spring Cloud Stream
问题 We experienced the following scenario : We have a Kafka cluster composed of 3 nodes, each topic created has 3 partitions A message is sent through MessageChannel.send() , producing a record for, let's say, partition 1 The broker acting as the partition leader for that partition fails By default, MessageChannel.send() returns true and doesn't throw any exception, even if, eventually, the KafkaProducer can't send successfully the message. We observe, about 30 seconds after this call, the