This is the 2nd time I have observed that my Spring Boot 4 application has an error while sending a message to Kafka topic
Where it happened: Production (Kafka broker managed by Confluent)
Exact error message: org.apache.kafka.common.errors.TimeoutException: Topic
What fixes it: Pod restart. You just restart the pod and the producer seems to be getting the required topic metadata.
Spring Boot version: 4.0.5
Spring Kafka version: 4.0.5
Broker version: To be checked. Although, the same thing happened on my NONPROD environment, where we have version 3.3.2.
Have others faced this issue and how did you fix it long-term?