linyu003 commented on PR #4469:
URL: 
https://github.com/apache/incubator-seatunnel/pull/4469#issuecomment-1492826884

   > `ReflectionUtils.setField(transactionManager, "transactionStarted", 
true);` we need to additionally persist this transactionStarted flag in 
checkpoints as part of the KafkaCommitInfo metadata. And then set this flag 
appropriately to what is stored in the checkpoint. If it is an empty 
transaction, the transactionStarted flag should be set to false.
   
   I think that's a better way to fix the Problem 3, and tested well in my 
machine.
   
   When transactionStarted is set to false,  KafkaProducer will close the 
transaction locally without sending the EndTxn request to kafka servers, so the 
problem will not appear.
   
   I will change my pr. 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to