Getting this error :
2020-11-12 20:16:35.463 ERROR 17552 --- [ extractor-3] o.s.k.support.LoggingProducerListener : Exception thrown when sending a message with key='abcdefghi' and payload='{"header": {"id": "ururirehdjd", "Env": "88"}, "etc...' to topic <TOPIC_NAME>:
org.apache.kafka.common.errors.TimeoutException: Topic <TOPIC_NAME> not present in metadata after 60000 ms.
MY spring batch job is by passing this error and updates the writeCount even though message is not published on the topic. How to throw exception in such scenarios.?