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

   Following up on the earlier review points, here is where each one stands for 
me based on the latest summary in this thread.
   
   **Settled, pending a test**
   - **F3 / F8 (wire format, null/unknown type):** Failing loudly works for me: 
an `IOException` carrying the `checkpointId` for a null type, and an 
`IllegalArgumentException` from `CheckpointType.fromName` for an unknown name. 
Since the wire change is listed in `incompatible-changes.md` (English and 
Chinese) with the requirement to upgrade Zeta members together, I'm fine 
without a version guard.
   
   **Still open**
   - **F1 (race with async completion notification):** The summary mentions a 
callback-order race case in `SchemaChangeDrainGuardTest` but does not address 
this point directly. Could you confirm which ordering that test covers, and 
that the guard no longer fails the job when the completion notification arrives 
late on the happy path?
   - **F2 / F4 (drain-ready state after failover):** This is my main remaining 
concern. The restore test 
`shouldAllowSchemaChangeAfterRestoredDrainCheckpointCompletes` is described as 
a fresh guard plus a typed completion, not a real restored job. That still 
doesn't show what re-delivers the typed completion after restoring from a 
schema-change-before checkpoint. Please point to that path, or explain how the 
DDL rejection loop is avoided if there is none.
   - **F5 (typed abort):** The coordinator only builds 
`CheckpointFinishedOperation` with `successful=true`, and checkpoint failure 
goes through FAILED and then `CheckpointManager` recovery. So the typed abort 
cleanup in the guard is not reached by that runtime failure route. Please 
either remove that branch or mark it clearly as defensive-only in the code and 
the PR description, so it isn't read as the failover cleanup mechanism.
   - **F6 (single-slot tracking):** I'm okay with a single active schema-change 
window, given `scheduleSchemaChangeBeforeCheckpoint` admits only one schema 
phase via `schemaChanging`. Please document that contract on the guard, 
including that a typed schema abort resets regardless of id and that stale 
cross-generation typed callbacks are not fenced.
   - **F7 (coverage):** The runtime wiring was source-traced, not executed. 
Please add in this PR:
     - a `CheckpointFinishedOperation` wire round-trip test, including the 
null-type and unknown-name cases;
     - a test for the typed fan-out in `SeaTunnelTask`.
   
     A `SinkFlowLifeCycle` integration test and a 
schema-evolution-with-failover scenario can be a follow-up if they are too 
heavy here, but please say which you plan to do.
   
   Once F1 and F2 are answered and the focused tests are in, I'll take another 
look.
   
   <!-- streview-comment:2601 -->


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