SEPURI-SAI-KRISHNA commented on issue #13469: URL: https://github.com/apache/seatunnel/issues/13469#issuecomment-7211521822
Thanks @DanielLeens. Table from `af812b0b7d` (read, not run; broker rows from Kafka 3.4.0 and Pulsar 2.11.0 source, the pinned clients). It corrects the report: BigQuery and Milvus are not affected, SelectDB Cloud is. | Sink | Commit info | Repeated commit | Restore today | |---|---|---|---| | Kafka `EXACTLY_ONCE` | txn id, producer id, epoch, `Properties` (`DefaultSerializer`) | no-op: `endTransaction` returns `NONE` on CompleteCommit; after a timeout abort it fails | aborts N+1 on, N open until `transaction.timeout.ms` | | Doris, 2PC (default off) | FE, db, txn id, label (own serializer, label optional) | no-op: "already COMMITTED/VISIBLE" accepted | aborts N+1 on, N stays pre-committed | | SelectDB Cloud, 2PC (default on) | host, cluster, `COPY INTO` of staged files (own serializer) | "already committed" accepted; second `COPY INTO` not verified | starts at N+1, N never copied | | Pulsar `EXACTLY_ONCE` | `TxnID` (`DefaultSerializer`) | fails: an ended txn is removed (`MLTransactionMetadataStore` 400-409), so `TransactionNotFound`, same as a timed-out one | state unused, N aborted after `transaction_timeout` (600 s) | | BigQuery batch | stream, offset | | not affected: restore flushes to N (`retireRestoredStream`) | | Milvus | empty | | not affected: no-op committer | Clients: Kafka from the stored `Properties`, the others from sink config. Abort: Kafka, Pulsar and Doris abort the txn by id, SelectDB does nothing. Zeta (read): one checkpoint is pending at a time and notify is joined before the next trigger (`CheckpointCoordinator` 874, 1482-1489), so several pending plain commits do not occur. After a restore, `allTaskReady` notifies the restored checkpoint again (484; in the repro run checkpoint 1 was notified again before 2), but the sink has no commit info then. Smallest design, no API change: 1. `SinkFlowLifeCycle` stores N's commit info under its own state key with `getCommitInfoSerializer`. 2. `restoreState` reads it back; that re-notify, or the normal one, commits it; abort only for its id. 3. Old checkpoints lack the key and restore as today. A repeated commit happens only when restoring N after N was committed: safe for Kafka and Doris; Pulsar needs a choice (WARN on `TransactionNotFound`, or fail), SelectDB a check. Tests: Zeta regression (commit fails once, worker lost after completion) with exact rows, plus Kafka and Doris E2E. Shall I go ahead? -- 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]
