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

   Following up on the earlier review points against `0b03a9edf535`. The source 
trace posted above settles some of them and leaves a few concrete asks. Those 
paths were source-traced only, not built or run, so the asks are mostly about 
turning the trace into evidence.
   
   **F1 (guard vs. async completion ordering)**
   The trace says `checkSchemaChangeCanApply` waits while not ready, and the 
typed completion callback sets readiness and calls `notifyAll`. It also says 
`checkpointBarrierHandled` preserves an already completed same-ID BEFORE 
barrier. If that holds, ordinary arrival order should not fail the job, and the 
timeout only fires when completion never arrives.
   - Please add a test for both orders: the schema event arriving before the 
sink's completion callback, and the completion arriving before the barrier.
   
   **F2 / F4 (in-memory drain-ready state, re-delivery after restore)**
   The described path is that `CheckpointCoordinator.allTaskReady` waits for 
READY_START, starts the tasks, then calls 
`notifyCompleted(latestCompletedCheckpoint)` with both checkpoint ID and type. 
That would be the re-delivery path I could not find. Recovery still depends 
entirely on this replay, since the state is not in the sink snapshot.
   - Please confirm the `restoreCoordinator` behaviour ("replays when ready or 
resets readiness") covers every restore route.
   - Please add a test that restores from a schema-change-before checkpoint and 
shows the DDL is applied rather than rejected.
   - Please add a short code comment in the guard noting this dependency.
   
   **F5 (typed abort)**
   Agreed that the production completion path always uses `successful=true`, so 
the typed-abort branch is defensive handling and is not reached by a normal 
coordinator failure today.
   - Please say so explicitly where that branch is documented, so it is not 
read as a working cleanup path after failover.
   
   **F3 / F8 (`CheckpointFinishedOperation` wire format, null/unknown type)**
   The current assessment rests on a same-version cluster upgrade assumption.
   - Please point to where that assumption is stated for users.
   - Independently of that, please either make serialization safe for a null 
`checkpointType` and deserialization safe for an unknown type name, or explain 
why neither can occur.
   
   **F6 (single-slot tracking, type-based abort reset)**
   This rests on schema phases being strictly serialized, and it is explicitly 
not a guarantee against stale typed callbacks from an earlier generation.
   - Please show where that serialization is enforced.
   - Please either key the reset on checkpoint ID rather than type alone, or 
document the assumption in the guard.
   
   **F7 (coverage)**
   The coverage limit is acknowledged: the fresh-guard unit test is not a 
recovered job applying real DDL.
   - Please say which of these land in this PR and which are follow-ups: a 
`CheckpointFinishedOperation` serialization round-trip, the `SinkFlowLifeCycle` 
/ `SeaTunnelTask` fan-out wiring, and an end-to-end 
schema-evolution-with-failover case.
   
   Finally, the thread notes the fork Build is cancelled and the Apache bridge 
is still in progress, so there is no completed passing validation yet. Please 
get a completed run on the current head once the above is addressed.
   
   <!-- streview-comment:2639 -->


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