SEZ9 commented on PR #11382:
URL: https://github.com/apache/seatunnel/pull/11382#issuecomment-7295404046

   Thanks for keeping this PR moving. Syncing the latest `dev` and resolving 
the content conflicts addresses the cancelled jobs only. It does not close any 
of the source findings, and since the head is still 
`0b03a9edf5357450f4fcc5988150d3884271444b`, all of them remain open. On the 
next head, please answer each with either a code change or a pointer to the 
code that already handles it:
   
   1. **Fail-fast guard vs. async completion notification (HIGH):** What 
guarantees that `SchemaChangeDrainGuard` sees the checkpoint-completion 
notification before it fails fast? As it stands, this looks like it can fail 
the job spuriously on the happy path and after restore.
   2. **Recovery of drain-ready state (HIGH/MEDIUM):** The state is 
process-memory only, and the typed completion notification is sent once at 
checkpoint completion. Please point to the re-delivery path after failover, or 
else persist the state in the sink checkpoint snapshot or re-send on restore. 
Otherwise a restore from a schema-change-before checkpoint looks like a 
permanent DDL rejection loop.
   3. **Typed abort (MEDIUM):** Only the completion path in 
`CheckpointCoordinator` carries the checkpoint type. Which coordinator-side 
call site sends a typed abort? Without one, the guard's abort cleanup after 
failover looks unreachable.
   4. **`CheckpointFinishedOperation` format (HIGH/MEDIUM):** The wire format 
changed without a version guard. Please also handle a null `checkpointType` on 
serialization (currently an NPE) and unknown type names on deserialization.
   5. **Overlapping schema changes (MEDIUM):** How does the single-slot 
checkpoint tracking behave when schema changes overlap? The type-based abort 
reset also looks too broad and should be narrowed.
   6. **Tests (MEDIUM):** Coverage stops at `SchemaChangeDrainGuard` unit 
tests. Please add tests for the actual wiring (`SinkFlowLifeCycle`, 
`SeaTunnelTask` fan-out, `CheckpointFinishedOperation` serialization) and a 
schema-evolution-with-failover scenario.
   
   When you rerun after the sync, please report two things separately: whether 
each affected job actually completes, and whether the failure/recovery 
behaviour above is covered. If a job still fails, keep the exact failing test 
and logs so we can diagnose it.
   
   <!-- streview-comment:2751 -->


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