DanielLeens commented on PR #11382: URL: https://github.com/apache/seatunnel/pull/11382#issuecomment-7190087773
Thanks, @SEZ9. Here are the concrete runtime pointers for the two ordering questions, checked on unchanged `0b03a9edf535`. - **F1, late completion:** `SchemaChangeDrainGuard.checkSchemaChangeCanApply` waits while not ready (lines 194-208); Object.wait releases the guard monitor. The typed completion callback sets readiness and notifyAll (lines 140-146), so a source event arriving before the sink's completion callback is not rejected immediately. `checkpointBarrierHandled` also preserves an already completed same-ID BEFORE barrier (lines 105-110), covering the opposite callback order. The timeout still represents an absent completion, not ordinary arrival order. - **F2/F4, runtime replay:** `CheckpointCoordinator.allTaskReady` waits for READY_START, starts the tasks, then calls notifyCompleted(latestCompletedCheckpoint) (lines 458-475). notifyCompleted calls notifyCheckpointCompleted and joins its operations (lines 485-501); those operations include both checkpoint ID and checkpoint type (lines 1476-1488). The restoreCoordinator path either replays when ready or resets readiness for this allTaskReady route. That is the runtime source of the typed completion; it is not the fresh-guard UT somehow restoring state by itself. - **F5:** Agreed: the production completion construction here always uses successful=true. The typed-abort guard branch is defensive/tested API handling, not proof that a normal coordinator failure currently sends an abort notification. The comment should state that distinction. - **F3/F8 and F6:** The documented same-version cluster upgrade and serialized schema phase are the assumptions of the existing assessment; it is not a guarantee for arbitrary stale cross-generation typed callbacks. - **F7:** Agreed on the coverage limit. The fresh-guard typed-completion UT is not a recovered job applying real DDL, and I have not claimed dedicated operation wire-round-trip/worker-fan-out integration tests exist. Those end-to-end acceptance assertions remain useful focused follow-ups; the paths above were source-traced, not locally executed. My existing source assessment remains limited to that serialized current protocol. The current-head fork Build is cancelled and the Apache bridge is still in progress; neither is passing completed validation. Effective maintainer review remains independent. This is a targeted discussion reply, not a new full source review; no local build/test/runtime was run. -- 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]
