SEZ9 commented on issue #10203: URL: https://github.com/apache/seatunnel/issues/10203#issuecomment-6816848601
@ryanmeowy — thanks for the numbering note and the tightened §7 wording; applying the `tableIds` condition to item 4 and the event condition to item 5 reads as intended, nothing to change there. To close the reading you flagged: I did not mean the second `CompletedSnapshotPhaseEvent` should never exist. You are right that once T's `W_high` becomes the split's new max watermark the emitter fires again, and a test that fails merely on the event being observed would fail against correct code. The invariant I care about is where that later event is handled, not whether it is emitted. So the answer to "which one" is: it is a §3 change — the enumerator path, not reader suppression. Concretely, the post-admission completion must not re-enter `SnapshotSplitAssigner.completedSnapshotPhase` (and its `checkArgument(isCompleted() && allSplitsCompleted())`) after the original snapshot transition, and must not hit `IncrementalSplitAssigner.completedSnapshotPhase`'s `checkArgument(splitAssigned && noMoreSplits())` while the old incremental assignment is still retained. That needs a runtime-admission-specific path — a dedicated event or an explicit phase-aware branch in the enumerat or. With that, your §7 item 5 conditions (a)/(b)/(c) are exactly right as the test contract: the event is driven by reading past T's `W_high`, handling it neither throws nor leaves `assignedSplits`/`splitCompletedOffsets` non-empty, and `isCompleted()` stays true. Item 4's "every pre-existing table plus T" assertion is also the right guard against the `capturedTables − assignedSplits` shrink from §3. Remaining asks: 1. Add the routing rule to §3 (post-admission event allowed; must take a dedicated/phase-aware path; must not re-enter the original snapshot-phase cleanup), and reference it from §7 item 5 so the test and the design point at the same contract. 2. Keep item 4's expected set stated as "prior incremental table set plus T" rather than anything derived from `capturedTables − assignedSplits`. On §5: your check against `c3d11fc6` (`95b4946ee` rename and `c3d11fc64` docs, no production change since `d4faf1ea1`) matches my understanding, so §5 and §8.4 stand. Please keep the implementation queued until that prerequisite work's acceptance gates are settled, and land this as a separate, focused follow-up rather than mixing the two state-machine changes. <!-- streview-comment:2281 --> -- 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]
