DanielLeens commented on PR #10874:
URL: https://github.com/apache/seatunnel/pull/10874#issuecomment-7130317923

   Thanks, @SEZ9. Several of these six descriptions are from an older version; 
here is their status on cca9cf4:
   
   1. **Drain:** the table-specific wait at MultiTableSinkWriter.java:844-869 
has a 300-second deadline, checks worker errors, restores interruption and 
throws IOException. The pre-existing shared checkQueueRemain drain still has no 
overall deadline; the table bound is not an end-to-end checkpoint deadline. I 
am not claiming otherwise.
   2. **Final commit:** checkpoint prepareCommit precedes snapshot/retirement; 
initResourceManager:327-329 retains writers whose supportsCloseAfterSnapshot is 
false. XA/2PC writers must remain until task close, rather than being retired 
merely because a close event arrived. This closes the blanket claim that every 
transactional writer is abandoned without its final commit.
   3. **Polled/in-flight row:** closeTable:777 takes the same runnable monitor 
used for the poll/write section before removing/closing its writers. Queue 
emptiness alone is not the synchronization proof. The shared counted drain 
precedes snapshot, and the in-flight regression is 
testCloseTableEventAllowsInFlightRowsUntilFinalSnapshot:97.
   4. **Aggregation:** the merge/get pair is not an arbitrary-concurrent-call 
transaction. Normal sink events/snapshots are serialized on the task owner; 
queue workers do not remove those maps. I found no actual normal-path NPE 
interleaving. closedTableIds is checked before aggregation at 594-603; close 
cleans both maps at 826-827. 
testStragglerCloseEventAfterCloseDoesNotLeakAggregationState:324 asserts no 
repopulation.
   5. **Missing metadata:** null/negative source identity or 
missing/nonpositive expected count returns without authorizing close at 
607-613. testUnattributedCloseEventDoesNotShortCircuitActiveAggregation:192 
covers it.
   6. **Late rows:** current write handling distinguishes CONTINUE_OTHER_TABLES 
(log/drop that table) and FAIL_FAST (table-context IOException). 
testCloseTableWriteContinuesOtherTablesInsteadOfThrowing:284 covers the former. 
The hard-error-only description is outdated.
   
   The remaining required items are unchanged: Issue5's real protocol/state 
acceptance assertions and the SPI/upgrade documentation. Optional Issues7/8 
concern fixture cleanup and the finite early-close observation window. CI is 
still the same wrapper404/Hana startup failure/cancelled LocalFile result 
explained above; latest dev has no verified matching repair, so rerun those 
lanes after prerequisites recover rather than adding unrelated source changes.
   
   This is a discussion follow-up on unchanged head 
`cca9cf4241cd47336ccaa0dab16b9f1dbbc85820`, not a new full source review. I 
inspected the named local source paths; no local build, test or SeaTunnel 
runtime was executed. Daniel has READ permission; effective maintainer approval 
and historical review dismissal remain separate repository actions.


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