admin管理员组文章数量:1349744
I am using spring-kafka 3.1.9. Logs printed with ProducerFencedException for all commitTransaction and safeproducer was close. Even for AbortTransaction safe producer was close. This was due to Network outage. We are using Spring kafka transaction management with auto commit false, read committed true , we consume in batch from 1 topic process records and send to another topic, our understanding is message should be rollback and consumer should start with previous offset or offset from where transaction is failing. Behavior we saw is send messages were failed but consumer skipped messages. Due to this we lost few messages. As an application developer what is correct way to handle transactions if fatal errors like ProducerFencedException, OutOfSequenceException are thrown, as I can see default behavior is to close producer, but we have seen message lost as transaction coordinator didnot rollback offset. If producers are closed can we loose messages?
本文标签:
版权声明:本文标题:Spring kafka Transaction manager unable to rollback transaction due to ProducerFencedException - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743865526a2552513.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论