zhangshenghang opened a new pull request, #13438:
URL: https://github.com/apache/seatunnel/pull/13438

   ### Purpose of this pull request
   
   Yes, I am contributing to Apache SeaTunnel.
   
   Adds a Zeta engine E2E regression test for controlled recovery after a 
**full cluster restart**: stop a streaming job with a savepoint, shut down 
every node, start a fresh cluster with no in-memory job state, and restore the 
job from that savepoint.
   
   The test pins down one engine contract with real regression risk:
   
   * the savepoint written to checkpoint storage must survive the cluster that 
produced it;
   * the restored pipeline must continue the per-pipeline checkpoint id 
sequence after the savepoint id instead of reusing ids from the beginning. A 
reset would overwrite the savepoint (or a later checkpoint) while the job still 
reports RUNNING, and the damage only surfaces when the savepoint is needed 
again;
   * the savepoint record must still be the latest selectable `SAVEPOINT` 
restore point after new periodic checkpoints complete.
   
   This is the manual savepoint-based recovery path that maintainers 
recommended for full-cluster restarts in #12566 (automatic recovery of running 
jobs after a full restart is out of scope).
   
   Existing coverage does not reach this boundary:
   
   * `SavepointRestoreIT` restores inside one long-lived cluster and never 
inspects checkpoint ids;
   * `ClusterFaultToleranceIT` restarts all nodes only for automatic restore of 
a running job via the file map store;
   * `CheckpointCoordinatorFailoverIT` covers a master switch, which has 
in-memory job state present and is a different restore entry point.
   
   No production code is changed. `FakeSource -> Console` is used only as a 
simple fixture to keep a checkpointable streaming pipeline alive; the 
assertions are all about engine savepoint scheduling/recovery and job lifecycle 
(`RUNNING -> SAVEPOINT_DONE -> RUNNING -> CANCELED`).
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   ```bash
   ./mvnw -pl seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base 
verify \
     -DskipUT=true -DskipIT=false \
     -Dit.test=SavepointClusterRestartRestoreIT \
     -DfailIfNoTests=false -Dskip.spotless=true
   ```
   
   Result: `Tests run: 1, Failures: 0, Errors: 0, Skipped: 0` (~26s). Executed 
three times locally with the same result.
   
   `./mvnw -pl seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base 
spotless:check` passes.
   


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