SEZ9 commented on PR #10874: URL: https://github.com/apache/seatunnel/pull/10874#issuecomment-7070699724
Thanks for the substantial safety work on the early-close path. Following up on the earlier review points on the multi-table sink writer, here is where they stand based on the latest review pass. **Appear covered by the current design** - **Final `prepareCommit` before close:** the traced path now has checkpoint `prepareCommit` capture committables and `snapshotState` capture state before any child is closed. Only children that opt into `supportsCloseAfterSnapshot` are released, and XA writers stay open with `abortPrepare` still reaching them. That addresses the concern about abandoned transactional data for 2PC sinks. - **In-flight row between queue poll and write:** the drain is now described as counting row requests rather than inspecting queue contents as `hasQueuedRows()` did. The latest pass also notes that the earlier queue-race guidance was carried over without revisiting this, so please treat that point as a carryover correction, not a new data-loss claim. **Still need confirmation** 1. **Bounded drain:** is the counted-request drain in `prepareCommit` / `snapshotState` bounded by a timeout or abort condition, or can it still block the checkpoint barrier indefinitely if a sub-writer stalls? 2. **Interrupt handling:** is `InterruptedException` in the drain wait still wrapped in a `RuntimeException`? If so, please restore the interrupt flag and surface it as the declared `IOException`. 3. **Close-event accounting:** is the aggregation of distinct participant votes atomic, so that the earlier non-atomic merge/get NPE cannot occur? 4. **Late or duplicate close events:** what happens on the sink side when a close-table event arrives for an already-closed table? Please confirm that it does not repopulate the tracking maps and that straggler entries are cleaned up. 5. **Events without source metadata:** do these still trigger an immediate close, or do they now go through the vote aggregation? 6. **Late row for a closed table:** does a write after close still throw a hard `IOException` and fail the task, or does it now honor `MultiTableFailurePolicy`? For each of the six, a short pointer to the code or test that covers it would be enough to close the point. <!-- streview-comment:2512 --> -- 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]
