SEPURI-SAI-KRISHNA commented on issue #13469:
URL: https://github.com/apache/seatunnel/issues/13469#issuecomment-7189696955

   I would like to work on this. Proposed direction, for Zeta only (Flink and 
Spark unchanged):
   
   1. Preferred: run a plain `SinkCommitter` through the aggregated committer 
path. Zeta wraps it in an adapter whose `combine` keeps the list of commit 
infos and whose `commit` and `restoreCommit` call the committer. 
`SinkAggregatedCommitterTask` already checkpoints the combined infos and 
commits them again on restore, so no new state format is needed. The five plain 
committers (Kafka, Doris, Pulsar, BigQuery, Milvus) build their clients from 
the config and the commit info, so they can run in the committer task.
   2. Alternative: keep the commit in the sink task, store the commit info next 
to the writer state, and commit it again in `restoreState` before the writer 
starts.
   
   Both commit a checkpoint's info again after a restore, which the 
`SinkCommitter` Javadoc allows (commit must be idempotent). Each connector gets 
a test that a second commit of the same info succeeds; Kafka may need to treat 
an already committed transaction as success.
   
   Test: the scenario above in `seatunnel-engine-server` (the commit of one 
checkpoint fails once, and every row ends up committed exactly once).
   
   @nzw921rx does option 1 look right to you, or would you prefer option 2?
   


-- 
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