zhangshenghang opened a new pull request, #13598: URL: https://github.com/apache/seatunnel/pull/13598
Yes — this contribution is made to Apache SeaTunnel. ## Motivation A checkpoint becomes a real recovery point only after `CheckpointCoordinator#completePendingCheckpoint` writes it to checkpoint storage. When that write fails (an S3/HDFS request error, a full disk, a revoked credential), the checkpoint has already been acknowledged by every task, so the engine owns a superstep it cannot persist. Existing E2E coverage stops before that boundary: `CheckpointExpiryPipelineScopeIT` expires a barrier that never reaches the sink, `SavepointSnapshotFailureIT` makes the sink reject its snapshot, and `CheckpointStorageTest` only writes and reads files. No E2E drives an acknowledged checkpoint through a failing `CheckpointStorage#storeCheckPoint`. ## Change Test-only E2E: a single in-process Zeta node runs one streaming `FakeSource -> Console` pipeline with a 1 s checkpoint interval. A test-only checkpoint storage plugin extends `LocalFileStorage` and rejects the first two `storeCheckPoint` calls, then delegates to the real local-file storage. The test asserts the engine contract: - a checkpoint whose storage write failed is reported `FAILED` with its cause, never `COMPLETED`; - the rejected checkpoint ids are absent from checkpoint storage and from the client-visible `RestoreMode.CHECKPOINT` selection, so a failed write cannot become a recovery point; - each rejection restores the pipeline (`failed == 2`, `restored >= 2`), the job stays `RUNNING`, and once storage recovers the pipeline persists a checkpoint whose id continues after the rejected ids; - the recovered pipeline keeps completing checkpoints, and cancelling the job still cleans its checkpoint data. The source and sink remain plain fixtures; no transform, SQL, connector or format semantics are involved, and no engine code is changed. ## Validation - `./mvnw -pl seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base -DskipUT -DskipIT=false -Dit.test=CheckpointStorageWriteFailureIT -DfailIfNoTests=false verify` — 4 consecutive green runs on `origin/dev` 5cf050be3f, ~9.6–9.8 s each. - `spotless:check` exits 0. - Negative control: swallowing the storage exception in `completePendingCheckpoint` (temporarily patched engine-server, then reverted) makes the test fail in 122 s with `completed=119, failed=0, restored=0` — the test catches the silent loss of the recovery point. The pristine engine jar was reinstalled afterwards (SHA-256 `97dd3e224d0e08a6317132c93e274fcbc61db56ea59c3fdb5ab150bec06dd312`) and the green runs were repeated. -- 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]
