DanielLeens commented on issue #13469:
URL: https://github.com/apache/seatunnel/issues/13469#issuecomment-7221056938

   # Draft reply: #13469
   
   Classification: A / Zeta plain-committer checkpoint recovery.
   
   Thank you for the connector table. It narrows the affected set: BigQuery and 
Milvus are not demonstrated to share the loss path, while Kafka, Doris, Pulsar 
and SelectDB Cloud still need distinct recovery semantics.
   
   I rechecked current `dev` (`ee0fb0d72f67edbcd6caf08360fd354fa68e002f`). 
`SinkFlowLifeCycle` retains a plain committer's `lastCommitInfo` in task memory 
and commits it from `notifyCheckpointComplete`; that is the state boundary this 
issue must address. The suggested extra state key is not yet approved as a 
generic fix. A replay after restore is safe only where duplicate external 
commit semantics are proven. In the table, Pulsar's `TransactionNotFound` 
cannot distinguish an already-completed transaction from a timed-out/aborted 
one, and SelectDB's second `COPY INTO` behavior is still unverified. Treating 
either as a warning would turn an ambiguous external outcome into silent data 
loss or duplication.
   
   @SEPURI-SAI-KRISHNA, I have assigned the issue to you for the design 
evidence. Please do not open the generic implementation yet. First post a 
revised, fail-closed proposal that:
   
   1. scopes the first implementation to connectors whose replay outcome is 
demonstrably safe, or defines a connector-specific recovery policy rather than 
assuming every `SinkCommitter` is replayable;
   2. identifies the persisted key, serializer, checkpoint id, abort behavior 
and old-checkpoint absence behavior without changing existing checkpoint data 
formats;
   3. states the exact action for Pulsar and unverified SelectDB results—no 
`WARN`-and-continue path; and
   4. proves the selected path with injected commit failure and worker loss 
after checkpoint completion, exact committed rows after restore, plus 
connector-specific Kafka/Doris evidence. Flink and Spark remain out of scope.
   
   Once that contract is agreed, a narrow Zeta PR can be evaluated.
   


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