flink kafkaproducer send duplicate message in exactly once mode when checkpoint restore
问题 I am writing a case to test flink two step commit, below is overview. sink kafka is exactly once kafka producer. sink step is mysql sink extend two step commit . sink compare is mysql sink extend two step commit , and this sink will occasionally throw a exeption to simulate checkpoint failed. When checkpoint is failed and restore, I find mysql two step commit will work fine, but kafka consumer will read offset from last success and kafka producer produce messages even he was done it before