I get a message from a source-topic. Then I split the message into 3 parts and send every parts to 3 different topics. Now 2 messages are delivered to 1st 2 topic successfully. But while sending 3rd message we get exceptions (e.g. ProducerFencedException | OutOfOrderSequenceException | AuthorizationException | RecordLengthException)
How to roll back / revert 2 other messages from the previous 2 topics ?
Full Java Code example will be very helpful. Dont want to use producer.initTransactions() kind of methods.
I refer this also - Transactional Kafka Producer but have doubt really we need to - write all the @Bean for Producer, template, factory , Tx - because those can easily e provided in application.yml.