wanglijie95 commented on PR #20097:
URL: https://github.com/apache/flink/pull/20097#issuecomment-1328158004

   Hi @eskabetxe, thanks for your reply.
   1. I think the purpose of providing three sink interfaces(Sink, 
StatefulSink, TwoPhaseCommittingSink) is to facilitate developers/users to 
inherit different ones according to their needs, so I prefer to the 2 sinks 
approach, especially we are likely to introduce only the non-xa sink in this pr.
   2. I don't see the actual need to introduce JdbcProducer abstraction at 
present, maybe it's better to do it later when it is really needed (we can 
decide which interfaces/methods need to be abstracted at that time). Even if 
the JdbcProducer is introduced, I think the NonXaJdbcProducer should resue the 
JdbcOutputFormat internally, which will make it easier to fix bugs or add 
feature options later (we don't need to modify in two places).
   3. In view of the current blocking(the RuntimeContext) of xa sink migration 
I think the jdbc sink migration can be disassembled into 2 subtasks (xa and 
non-xa), and we only do the non-xa sink in this ticket/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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to