You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "Vivek1106-04 (via GitHub)" <gi...@apache.org> on 2026/09/28 03:16:01 UTC
[PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Vivek1106-04 opened a new pull request, #12511:
URL: https://github.com/apache/seatunnel/pull/12511
### Purpose of this pull request
Part of #12441. It fixes the same-coordinator part of the issue, and two bugs that any correct fix for it exposes. #12493 does not cover those two bugs (see https://github.com/apache/seatunnel/pull/12493#issuecomment-5862502658).
**1. Savepoint drain holds the coordinator lock (the issue itself)**
`CheckpointCoordinator.startSavepoint()` sleep-polled `pendingCounter` inside `synchronized (lock)`. Every `tryTriggerPendingCheckpoint()` on that coordinator therefore blocked for the whole in-flight checkpoint. `LastCheckpointNotifyOperation` can also reach that path on a Hazelcast operation thread.
- The drain now runs outside the lock.
- A `savepointDraining` gate and one shared `savepointRequest` future are installed together under the lock. Concurrent `startSavepoint()` calls get that same future for the whole drain.
- While the gate is set, every non-savepoint trigger (general, completed-point, schema-change) re-arms, as it already does behind a pending checkpoint. The gate check sits next to `pendingCounter > 0` in `tryTriggerPendingCheckpoint()`. It is not in `createPendingCheckpoint()`, because that method cannot re-arm.
- Interrupt, shutdown, completion, reset and create failure all clear the gate under the lock and fail the shared future, so ordinary triggering is never left suppressed.
**2. Failure reason of a drain cut short**
`JobMaster.isSavepointStartPreconditionException` treats a savepoint as never started, and retryable, only for `CHECKPOINT_COORDINATOR_SHUTDOWN` and `TASK_NOT_ALL_READY_WHEN_SAVEPOINT`. When `cleanPendingCheckpoint` ends a drain, whatever the close reason (`CHECKPOINT_COORDINATOR_RESET`, `PIPELINE_END`, `CHECKPOINT_COORDINATOR_COMPLETED`, or an error reason), it now always reports `CHECKPOINT_COORDINATOR_SHUTDOWN`. Passing the close reason through makes the job master treat a pipeline ending during the drain as a real savepoint failure, even though no savepoint checkpoint was ever created, and breaks `SavePointTest`.
**3. SubPlan restore race (job stuck in `DOING_SAVEPOINT`)**
This bug already exists on `dev`, but the lock-held drain hides it because it delays `cleanPendingCheckpoint`. Once the drain is off the lock, `SavePointTest#testSavePointButJobGoingToFail` fails consistently in the full test run.
A pipeline that fails while its job is in `DOING_SAVEPOINT` is reset and waits `pipelineRestoreIntervalSeconds` before restarting. `JobMaster.savepointFailed()` calls `forceStopPipeline()` during that wait, but finds only reset tasks and stops nothing, so the pipeline restarts and the job never leaves `DOING_SAVEPOINT`. `SubPlan` now re-checks `jobMaster.isNeedRestore()` after the wait. If a stop was decided meanwhile, the pipeline goes back to the terminal state it failed with and keeps its error.
**Not in this PR:** the cross-pipeline regression (part 2 of the issue) needs the shared dispatch pool from #12165. It is written and red/green on top of #12165, and will follow once #12165 is merged, so #12441 stays open until then. The #12442 trigger-failure policy is untouched.
### Does this PR introduce _any_ user-facing change?
No. Savepoint and checkpoint behavior is unchanged except that it no longer blocks or hangs in the cases above. No config options or defaults change.
### How was this patch tested?
New tests in `CheckpointCoordinatorTest`. The drain is test-owned: the test holds `pendingCounter > 0` until its assertions finish, with no wall-clock sleeps.
- `testTriggerDuringSavepointDrainReturnsAndRearmsWithoutCreatingACheckpoint`: a trigger of each type (`CHECKPOINT_TYPE`, `COMPLETED_POINT_TYPE`, `SCHEMA_CHANGE_BEFORE_POINT_TYPE`, `SCHEMA_CHANGE_AFTER_POINT_TYPE`) during a drain returns within 10 s, creates no checkpoint, and re-arms. Once the drain ends, exactly one savepoint is created.
- `testConcurrentSavepointsDuringDrainShareOneSavepoint`: a second request returns at once with the same outcome, and only one checkpoint id is allocated.
- `testInterruptedSavepointDrainFailsTheRequestAndResumesTriggering`
- `testCoordinatorResetDuringSavepointDrainFailsTheRequestAndResumesTriggering`: the reset does not wait for the drain, and the request fails with `CHECKPOINT_COORDINATOR_SHUTDOWN`.
New test in `SavePointTest`:
- `testSavePointFailureDuringPipelineRestoreWaitEndsTheJob` with `stream_two_pipelines_savepoint_fails_during_restore.conf`. Sink A fails the savepoint at 4 s and sink B finishes its part at 5 s, so the stop lands inside the 3 s restore wait.
Red on `dev` (`146a1b5c5`), with the production changes reverted and the tests kept:
| Test | Result on `dev` |
|---|---|
| `testTriggerDuringSavepointDrainReturnsAndRearmsWithoutCreatingACheckpoint` | `a CHECKPOINT_TYPE trigger blocked behind the savepoint drain ==> Unexpected exception thrown: java.util.concurrent.TimeoutException` (10 s bound) |
| `testConcurrentSavepointsDuringDrainShareOneSavepoint` | `a second savepoint request blocked behind the first one's drain ==> Unexpected exception thrown: java.util.concurrent.TimeoutException` |
| `testInterruptedSavepointDrainFailsTheRequestAndResumesTriggering` | `ExecutionException: java.lang.InterruptedException: sleep interrupted` (`@SneakyThrows` rethrows instead of failing the request) |
| `testCoordinatorResetDuringSavepointDrainFailsTheRequestAndResumesTriggering` | passes on `dev`; kept to pin down the `CHECKPOINT_COORDINATOR_SHUTDOWN` reason for the new drain |
| `SavePointTest#testSavePointFailureDuringPipelineRestoreWaitEndsTheJob` | `ConditionTimeoutException: ... expected: <FAILED> but was: <DOING_SAVEPOINT> within 1 minutes.` |
Green on this branch:
```
Tests run: 20, Failures: 0, Errors: 0, Skipped: 0 - in ...checkpoint.CheckpointCoordinatorTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 1 - in ...checkpoint.SavePointTest (the skip is an existing @Disabled test)
```
Local runs on JDK 17. `./mvnw spotless:apply` shows no changes.
### Check list
* [ ] If any new Jar binary package adding in your PR, please add License Notice according
[New License Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/developer/new-license.md)
* [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
* [ ] If necessary, please update `incompatible-changes.md` to describe the incompatibility caused by this PR.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "Vivek1106-04 (via GitHub)" <gi...@apache.org>.
Vivek1106-04 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-5982199516
@DanielLeens I opened the `forceStop` follow-up for the residual window in Issue 4 as #12622, with the fix in #12623.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6514132734
Thanks @nzw921rx for the +1 and the follow-up ping. The coverage discussion is already closed on this unchanged head `a691fb195d` — the named cancel and non-cancel restore tests answer the earlier documentation question, and my existing source-level clearance stands; the Build on this head is `SUCCESS`.
Nothing new is being requested from the contributor side: being diverged from `dev` without a merge conflict does not call for a rebase or another source change here. The one remaining step is an effective maintainer approval under branch protection, which needs to be performed by someone with write permission — I cannot issue that effective APPROVED event myself. Once that lands, this should be good to merge.
<!-- streview-comment:2148 -->
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "Vivek1106-04 (via GitHub)" <gi...@apache.org>.
Vivek1106-04 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6011124492
@SEZ9 Thanks for the review.
1. The re-run has finished. Attempt 2 of the fork run passed `engine-v2-it (11)` and the rest of the engine jobs, and `Build` is green on `a691fb195`.
2. The first comment is complete on GitHub; the preview probably cut it off. The sentence continues: "The savepoint case is unchanged, and the cancelled job no longer restarts a pipeline only to cancel it." Issue 4 is covered in the same comment, right after that sentence: https://github.com/apache/seatunnel/pull/12511#issuecomment-5982000557
3. A test already pins the non-cancel branch, in `SavePointTest` rather than `CheckpointErrorRestoreEndTest`. `testSavePointFailureDuringPipelineRestoreWaitEndsTheJob` fails a savepoint while a pipeline is in its restore wait, with the job not cancelling, and asserts the job ends `FAILED`. Without `abandonRestore` that pipeline stays `RUNNING` and the job stays in `DOING_SAVEPOINT`, so the test times out. Together with `testCancelDuringPipelineRestoreWaitEndsTheJobCanceled`, both branches of `abandonRestore` are covered.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "Rangsh (via GitHub)" <gi...@apache.org>.
Rangsh commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-5883960336
@Vivek1106-04 Thanks for opening the complete fix. I closed #12493 in favor of this PR so we do not carry two competing drain changes.
I will review this PR next. From a quick read, the pieces Daniel and SEZ9 asked for on #12493 are already here: unlocked drain + gate, always reporting `CHECKPOINT_COORDINATOR_SHUTDOWN` when `cleanPendingCheckpoint` cuts the drain short, and the SubPlan restore re-check with `SavePointTest#testSavePointFailureDuringPipelineRestoreWaitEndsTheJob`. Happy to help with any remaining review comments.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "SEZ9 (via GitHub) via commits" <co...@seatunnel.apache.org>.
SEZ9 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6538933886
Thanks @nzw921rx for the +1 and the ping.
Status on the unchanged head `a691fb195d32381b3a43560eba4586861366a6d8`:
- The source-side clearance stands; nothing has changed since the last review of this head.
- The coverage discussion is closed: the named cancel and non-cancel restore tests answer the question that was raised.
- `Build` is `SUCCESS`, and `Notify test workflow` / `labeler` are both `SUCCESS` as well.
- The branch is diverged from `dev` but has no merge conflict, so no rebase, extra commit or CI rerun is being requested from the contributor on that basis alone.
- #12623 stays a separate dependent follow-up to land right after this one; it is not a blocker here.
Remaining ask: the only open item is the effective maintainer approval/merge under branch protection, which needs a write-capable committer. From the review side there is nothing further for the author to do on this PR.
<!-- streview-comment:2173 -->
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-7238215203
Thanks, @SEZ9. I checked the four failed job logs you listed; each fails the Maven-wrapper download with HTTP 429 and then MavenWrapperMain is missing, before test execution. That keeps the earlier source-clear conclusion separate from a failed hosted Build. The relative-timing fixture remains an optional suggestion, not a reopened source blocker.
#13466 is still open, so the wrapper remedy is not in dev and a sync alone is not a verified fix. Once downloads recover and no successor is active, rerun those four failed jobs rather than the entire matrix. Keep the current savepoint behavior and assertions unchanged for that CI attempt; author-local test reports do not replace completed results on this head.
Discussion/gate follow-up at unchanged head `b4d567547ef308bfa87f5644b26f55caa2e64e10`; base `dev`, compare `diverged`, ahead 4 / behind 40. No local build, tests, Docker or SeaTunnel job 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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "Vivek1106-04 (via GitHub)" <gi...@apache.org>.
Vivek1106-04 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-5988374202
The red Build on a691fb195 is a single job, `engine-v2-it` (JDK 11): `BackpressureSlowSinkIT.testCheckpointsKeepCompletingUnderSustainedBackpressure` (`expected at least 3 additional checkpoints ... only observed 2`).
This is not caused by this PR. The test takes no savepoint, so the new savepoint drain gate never engages there, and the same failure (`only observed 2`) is recorded on `dev` itself in #12313, with the fixture fix in #12316. The same test also failed on #12623, which does not touch the checkpoint coordinator. I have re-run the failed job.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "Vivek1106-04 (via GitHub) via commits" <co...@seatunnel.apache.org>.
Vivek1106-04 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-7165821514
#12149 landed on dev yesterday and put this branch into conflict, so I rebased it onto current dev (`113cea2a9`). New head is `b4d567547e`.
The conflicts were import lines only, in `CheckpointCoordinator` and `CheckpointCoordinatorTest`. A range-diff against the previous head `a691fb195d` shows the four commits' logic unchanged; only context and imports moved. I also checked the interaction with #12149, which now leaves the coordinator's scheduler shut down after non-reset cleanup: the drain loop re-checks `shutdown` under the lock before it creates the savepoint, and the re-arm and timeout scheduling it can reach are covered by the `RejectedExecutionException` handling #12149 added. So nothing in this PR needed to change.
All 68 tests in the engine-server `checkpoint` package pass locally on JDK 17. Fork Build is [run 45637688687](https://github.com/Vivek1106-04/seatunnel/actions/runs/45637688687); I'll post the result when it finishes.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "SEZ9 (via GitHub) via commits" <co...@seatunnel.apache.org>.
SEZ9 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-7361282663
Quick follow-up on the CI point: the failed Build 45637688687 was a bootstrap problem, not a test failure. All four failed jobs (139299021113, 139299021171, 139299022998, 139299023104) stopped on HTTP 429 while downloading the Maven wrapper, before any test ran.
That has now cleared on the unchanged head `b4d567547e`. Both the Apache Build (142782076440) and attempt 2 of the fork run 45637688687 report success, so no further rerun or sync is needed for this point.
What remains:
- **Per-job confirmation:** only the aggregate conclusions were verified, because the per-job endpoint returned an error. Could you open the rerun and confirm that the four previously failed lanes (JDBC part6/JDK17, JDBC part2/JDK11, JDBC part7/JDK11, LocalFile/JDK11) actually ran their tests and passed, rather than being skipped?
- **Fixture interleaving:** this improvement is still optional and not a blocker, so it is your call whether to pick it up here.
- **Maintainer review:** an independent maintainer review is still outstanding as recorded.
Please keep the head as it is in the meantime, so the green result continues to apply.
<!-- streview-comment:2794 -->
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "SEZ9 (via GitHub) via commits" <co...@seatunnel.apache.org>.
SEZ9 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-7230214977
@Vivek1106-04 thanks for the rebase onto `113cea2a9` and for checking the #12149 interaction.
Your explanation holds up on the re-review of the current diff: the drain loop re-checks `shutdown` under the lock before creating the savepoint, and the existing `RejectedExecutionException` handling covers the re-arm and timeout scheduling. The earlier gate-regression test blocker is closed. The relative-timing weakness in the real-engine fixture is recorded only as a non-blocking test improvement, so it does not hold this PR.
The one open item is CI. Fork Build run 45637688687 finished as FAILURE on head `b4d567547ef308bfa87f5644b26f55caa2e64e10`. All four failed jobs stopped before any test ran: an HTTP 429 on the Maven wrapper download, followed by a `MavenWrapperMain` `ClassNotFoundException`. No failing test name appears in any of them, so nothing here points at your change.
| Job | ID |
|---|---|
| JDBC part6 / JDK17 | 139299021113 |
| JDBC part2 / JDK11 | 139299021171 |
| JDBC part7 / JDK11 | 139299022998 |
| LocalFile / JDK11 | 139299023104 |
Remaining asks:
1. Please rerun those four failed jobs once the wrapper download recovers, and post the result here. A sync with dev alone is not expected to help, since the wrapper fallback proposal in #13466 is still open.
2. The rerun needs to be on the current head `b4d567547e`. Your local run of the 68 `checkpoint` package tests on JDK 17 is good to know, but it does not replace the hosted results.
3. Optionally, tell us whether you want to tighten the relative-timing fixture in this PR or leave it for a follow-up; either is fine.
<!-- streview-comment:2675 -->
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-7207868306
Thanks, @SEZ9. The requested run has finished: Build 45637688687 is FAILURE and its head is exactly b4d567547ef308bfa87f5644b26f55caa2e64e10. I read all four failed job logs: JDBC part6/JDK17 (139299021113), JDBC part2/JDK11 (139299021171), JDBC part7/JDK11 (139299022998), and LocalFile/JDK11 (139299023104) all fail before tests after HTTP429 downloading the Maven wrapper, followed by MavenWrapperMain ClassNotFoundException. There is no failing test name in those bootstrap failures. The wrapper fallback proposal #13466 remains open and current dev has no verified cure for this download condition, so a sync alone is not the next step. Please rerun those failed lanes after artifact access recovers. The closed restore-coverage discussion stays closed; an old-head green run or local package-test report does not replace these current-head hosted results.
[Current-head Build](https://github.com/Vivek1106-04/seatunnel/actions/runs/45637688687), head `b4d567547ef308bfa87f5644b26f55caa2e64e10`; compare `diverged`, ahead 4 / behind 32. Discussion/CI follow-up only; no new full source review or local build/test/runtime execution. Daniel has READ permission; effective maintainer approval/dismissal remains separate.
Current snapshot (2026-11-27T03:08:46.143941+00:00): Signal pull request update: SUCCESS; Build: FAILURE; merge state `BLOCKED`; review decision `REVIEW_REQUIRED`.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "Vivek1106-04 (via GitHub)" <gi...@apache.org>.
Vivek1106-04 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6030875633
@SEZ9 thanks. I added a note to part 3 of the PR description naming the tests for both branches of `abandonRestore`: `CheckpointErrorRestoreEndTest#testCancelDuringPipelineRestoreWaitEndsTheJobCanceled` (cancel) and `SavePointTest#testSavePointFailureDuringPipelineRestoreWaitEndsTheJob` (non-cancel). I left the code unchanged, so the green run on `a691fb195` still applies.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "Vivek1106-04 (via GitHub)" <gi...@apache.org>.
Vivek1106-04 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-5982000557
@DanielLeens thanks for the thorough review. All eight points are addressed in `9143d479c` and `a691fb195`. The branch is also rebased onto `dev` `af80a6704`, so it is 0 behind and picks up #12444 for the PayPal flake.
**Issue 1 (gate has no test that fails without it).** New `testTriggerAfterInFlightCheckpointEndsButBeforeSavepointIsCreatedRearms` uses your lock-holding idea, with a real drain thread. The test thread takes the coordinator `lock` and drops `pendingCounter` to 0. It then waits until the savepoint caller has woken and is `BLOCKED` on the lock, and fires a trigger of each type; the lock is reentrant, so those calls run. Each trigger must create nothing and re-arm. After the lock is released, exactly one savepoint is created. With `|| savepointDraining` removed it fails: `a CHECKPOINT_TYPE trigger created a checkpoint ahead of the savepoint ==> expected: <0> but was: <1>`. @Rangsh ported the matching #12493 test, thanks. I went with this version instead because it covers the same window without setting the gate by reflection, so no gate is left without a request behind it.
**Issue 2 (re-interrupt on a pool worker).** The flag is now re-set only when the caller is not a `ForkJoinWorkerThread`. `testInterruptedSavepointDrainFailsTheRequestAndResumesTriggering` asserts that a caller on its own thread keeps the flag. New `testInterruptedSavepointDrainOnPoolWorkerClearsTheInterruptFlag` runs the drain on a `ForkJoinPool` and asserts that the flag is clear when `startSavepoint()` returns. It fails with the unconditional interrupt (`expected: <false> but was: <true>`).
**Issue 3 (cancel during the restore wait ends FAILED).** Your inference was right, and I confirmed it by running it. New `CheckpointErrorRestoreEndTest#testCancelDuringPipelineRestoreWaitEndsTheJobCanceled` fails the first checkpoint, waits until the pipeline is reset for restore (30 s wait in its conf), and cancels:
- previous head `91001c42c`: `expected: <CANCELED> but was: <FAILED>`
- `dev`: passes. The log shows `PhysicalPlan` going `RUNNING -> CANCELING`, then `cancelPipeline` waiting on the SubPlan monitor until the wait ends. The pipeline restarts (`CREATED -> SCHEDULED -> DEPLOYING -> RUNNING`), is cancelled straight away, and the job ends `CANCELED`.
I kept `dev`'s outcome. If the job is `CANCELING` when the restore is abandoned, the pipeline ends `CANCELED`; otherwise it ends in the state it failed with and keeps its error. The savepoint case is unchanged, and the cancelled job no longer restarts a pipeline only to cancel it.
**Issue 4 (root cause and point-in-time check).** You were right that `forceStop` is not a no-op. I took a log trace of the restore-wait `SavePointTest` on `dev`'s `SubPlan`. During the wait, `forceStop` moves the enumerator and committer `CREATED -> CANCELED`, and both log `state process is not start`. Their vertex state process was stopped, so `taskFuture` is never completed. Only the source task's future completes. The pipeline therefore never counts all tasks ended. 2 s later the restart goes `SCHEDULED -> DEPLOYING -> RUNNING` and deploys nothing, because `DEPLOYING` starts only `CREATED` tasks. The pipeline then sits in `RUNNING`.
So the lost stop comes from `PhysicalVertex.forceStop` on a task whose state process is not running, not from callbacks queued behind the monitor. The monitor does explain why `cancelPipeline` waits for the restart in the Issue 3 scenario. The Javadoc and the PR description now describe this mechanism.
On the residual window: a stop decided after the re-check but before deploy hits the same `forceStop` gap. A second `isNeedRestore()` check in `SCHEDULED` would narrow the window, but it is still check-then-act against a stop path that takes no SubPlan lock, so it cannot close it. The real fix is for `forceStop` to complete the future of a task whose state process is not running. That changes a stop path shared by every job, so I would rather do it as a separate issue and PR than grow this one. Happy to open it if you agree.
**Issue 5 (wall-clock SavePointTest).** The conf now pins `job.retry.interval.seconds = 3`. The fixed `Thread.sleep(2000L)` is replaced by an await on the job being `RUNNING` with every pipeline's coordinator reporting all tasks ready, so the savepoint cannot hit `TASK_NOT_ALL_READY_WHEN_SAVEPOINT`.
**Issue 6 (futures completed under the lock, no log).** `failDrainingSavepoint` clears the gate under the lock and completes the request after leaving it. `cleanPendingCheckpoint` does the same: it captures the draining request under the lock and fails it after the synchronized block. That is safe for the reset window you pointed out, because `restoreCoordinator()` clears `shutdown` only after `cleanPendingCheckpoint` returns, and by then the request is done. Interrupted and cut-short drains now `LOG.warn` with job id, pipeline id and close reason.
**Issue 7.** `drainAndTriggerSavepoint` has a Javadoc stating the loop invariant. `savepointPendingCheckpoint` is now `volatile`, and its comment says that only tests read it.
**Issue 8.** #12493 is closed in favour of this PR. I would keep the `SubPlan` change here: the two commits stay separate, and without it any correct drain fix turns `SavePointTest` red.
**Coverage gap from 2.2.** The reset test is now parameterized over `CHECKPOINT_COORDINATOR_RESET`, `PIPELINE_END`, `CHECKPOINT_COORDINATOR_COMPLETED` and `CHECKPOINT_INSIDE_ERROR`, and each must fail the request with `CHECKPOINT_COORDINATOR_SHUTDOWN`.
Local results on JDK 17 at `a691fb195`: `CheckpointCoordinatorTest` 25/25, `SavePointTest` 6 run + 1 existing `@Disabled`, `CheckpointErrorRestoreEndTest` 2/2. `spotless:apply` makes no changes and `-DskipTests verify` passes. The red evidence for each new test is in the updated PR description. CI is running on the new head.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "Vivek1106-04 (via GitHub)" <gi...@apache.org>.
Vivek1106-04 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-5982000768
@Rangsh thanks for porting the test and for the CI digging, both helped. I took the same window with a variant that keeps a real drain in flight instead of setting `savepointDraining` by reflection. The test holds the coordinator lock while the woken savepoint caller is blocked on it (details in my reply to Daniel). It goes red the same way with `|| savepointDraining` removed. The branch is synced with `dev` as you suggested, including #12444.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "Rangsh (via GitHub)" <gi...@apache.org>.
Rangsh commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-5944739904
## Independent verification (SEZ9 ask on #12441)
Re-ran the two checks you asked for against this PR. Summary below.
### 1. Part-1 carry-over: `CheckpointCoordinatorTest#testTryTriggerNotBlockedBySavepointDrain`
|#12511 renamed the equivalent coverage to `testTriggerDuringSavepointDrainReturnsAndRearmsWithoutCreatingACheckpoint`; I also re-applied the original `#12493` method name onto this tip so the exact test SEZ9 named can be re-run.|
| | |
|---|---|
| **Test** | `CheckpointCoordinatorTest#testTryTriggerNotBlockedBySavepointDrain` |
| **Red base** | `c3f06f9a82c119e427df0fb1f440bae583148f62` (unfixed coordinator + the `#12493` test) |
| **Red failure** | `AssertionFailedError: tryTriggerPendingCheckpoint must return while savepoint drain is still held (pendingCounter>0); blocked for the full drain indicates the lock is held across sleep-poll ==> expected: <true> but was: <false>` |
| **Green tip** | `#12511` @ `91001c42caeb25ae1a44cc3b7eeeab1c57201cfb` |
| **Green** | `Tests run: 1, Failures: 0, Errors: 0` |
Part-1 proof carries over from `#12493` to `#12511`.
### 2. SubPlan restore race (4 s / 5 s vs 3 s)
**Timing check (source):**
- failing sink: `InMemorySinkWriter.prepareCommit` → `Thread.sleep(4000L)` then throw (`throw_exception`)
- slow sink: `Thread.sleep(5000L)` (`checkpoint_sleep`)
- restore wait: `EnvCommonOptions.JOB_RETRY_INTERVAL_SECONDS` default **3**
That matches the conf/test contract: stop from the 4 s failure must land inside the failed pipeline’s 3 s restore wait, while the other pipeline is still finishing its 5 s savepoint work.
| Scenario | Revision / tree | `testSavePointFailureDuringPipelineRestoreWaitEndsTheJob` | Observed |
|---|---|---|---|
| unlocked drain **without** `isNeedRestore()` re-check | `#12511` drain commit on `146a1b5c5` (no SubPlan re-check) | **RED** | `expected: <FAILED> but was: <DOING_SAVEPOINT>` (60s timeout). Timeline: savepoint → pipeline-1 fails ~**+4 s** → restart after ~**+3 s** restore wait → job stuck in `DOING_SAVEPOINT` |
| current `dev` (test cherry-picked, no SubPlan fix) | `4c874e2a4061aea9d5db65e74edeb211b498fe27` | **RED** | same: `expected: <FAILED> but was: <DOING_SAVEPOINT>`; fail ~+4 s, restore restart ~+3 s |
| `#12511` full (unlocked drain **+** re-check) | `91001c42caeb25ae1a44cc3b7eeeab1c57201cfb` | **GREEN** | after the 3 s wait: `no longer needs restore, ending it as FAILED instead of restarting it` → job leaves `DOING_SAVEPOINT` → `FAILED` |
**`SavePointTest#testSavePointButJobGoingToFail`:**
- **GREEN** on `#12511` full (`91001c42c`) together with the restore-wait test (`Tests run: 2, Failures: 0`).
- On unlocked drain **without** the re-check, two isolated runs of this single test still passed. The race is reliably exposed by `testSavePointFailureDuringPipelineRestoreWaitEndsTheJob` (the 4 s / 5 s / 3 s case), which is the one that stayed red without the re-check and went green with it.
Happy to dig further if you want more `testSavePointButJobGoingToFail` retries under a full `SavePointTest` class 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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6050694033
@Vivek1106-04 Thanks for adding the note to part 3 of the PR description — naming `CheckpointErrorRestoreEndTest#testCancelDuringPipelineRestoreWaitEndsTheJobCanceled` for the cancel branch and `SavePointTest#testSavePointFailureDuringPipelineRestoreWaitEndsTheJob` for the non-cancel branch is exactly what I was after, and it makes the `abandonRestore` coverage easy to find for anyone reading the PR later. Nothing more needed from me on that point.
Understood that the code is unchanged since `a691fb195`, so the green run you reported there (attempt 2 passing `engine-v2-it (11)` and the rest of the engine jobs) still stands. The pointer to https://github.com/apache/seatunnel/pull/12511#issuecomment-5982000557 also clears up the truncated first comment and the Issue 4 coverage for me.
From my side the previously raised items are resolved and I have no remaining asks. I'll do a final pass over the description as updated and then move forward with this.
<!-- streview-comment:1582 -->
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6009155158
@Vivek1106-04 thanks for the detailed follow-up on `9143d479c` / `a691fb195` and the rebase onto `af80a6704`.
**Issue 1** – the lock-holding variant is the right pin. Keeping a real drain in flight means the gate is never set without a savepoint request behind it, which is a cleaner failure mode than a reflection-set flag, and the red run with `|| savepointDraining` removed (`expected: <0> but was: <1>`) is exactly the regression signal I wanted. Agree with @Rangsh that the #12493 port can stay as a comment.
**Issue 2** – gating the re-interrupt on `ForkJoinWorkerThread` plus the two tests (own thread keeps the flag, pool worker clears it) covers both sides. Good.
**Issue 3** – thanks for actually running it rather than reasoning about it. `CheckpointErrorRestoreEndTest#testCancelDuringPipelineRestoreWaitEndsTheJobCanceled` going `CANCELED` vs `FAILED` on `91001c42c` confirms the regression, and matching `dev`'s outcome is the right call. One ask: you describe the non-cancel branch as "ends in the state it failed with and keeps its error" – is there a test that pins that branch as well, or only the `CANCELING` one? If not, a sibling test for the failed-state path would be good to have.
**Issue 4** – noted the `forceStop` follow-up in #12622 / #12623; keeping that out of this PR is fine.
Two more things:
1. Your first comment appears to cut off mid-sentence at "The savepoint case is unchanged, and the cancel…". Could you post the rest? I don't want to guess at what was covered for the remaining points.
2. On the `engine-v2-it` (JDK 11) failure in `BackpressureSlowSinkIT.testCheckpointsKeepCompletingUnderSustainedBackpressure` – your reasoning (no savepoint taken, same `only observed 2` failure on `dev` in #12313 and on #12623) is convincing that it's unrelated. Please ping once the re-run has finished so I can confirm the result before approving.
Once those two are in I'll do the final pass.
<!-- streview-comment:1556 -->
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "Rangsh (via GitHub)" <gi...@apache.org>.
Rangsh commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-5977952591
@Vivek1106-04 @DanielLeens
Thanks again for putting the complete fix together. On the blocker in DanielLeens's review (Issue 1: nothing fails if `|| savepointDraining` is removed): #12493 had a test for exactly that window, `testSavepointDrainGateReArmsWhenPendingCounterZero`, so I ported it onto this branch in case it saves you some time. I adapted it to the plain `boolean` field and the helpers here, and added `SCHEMA_CHANGE_AFTER_POINT_TYPE`.
It sets `pendingCounter = 0` with the gate set. That is the gap between the in-flight checkpoint finishing and the drain thread waking up, where only the gate keeps a trigger from creating a checkpoint ahead of the savepoint. It asserts that every trigger type creates nothing and re-arms, and then that periodic triggering resumes once the gate is cleared.
Checked locally at `91001c42c`:
- with `|| savepointDraining` removed: `a CHECKPOINT_TYPE trigger created a checkpoint while the drain gate was set ==> expected: <0> but was: <1>`. The existing `testTriggerDuringSavepointDrainReturnsAndRearmsWithoutCreatingACheckpoint` still passes in the same run, which is the gap the review points out.
- with the branch unchanged: `CheckpointCoordinatorTest` `Tests run: 21, Failures: 0, Errors: 0`.
<details><summary>Test method (drop-in after <code>testTriggerDuringSavepointDrainReturnsAndRearmsWithoutCreatingACheckpoint</code>)</summary>
```java
/**
* Between the in-flight checkpoint finishing and the drain thread waking up, {@code
* pendingCounter} is already 0 and only the drain gate keeps a trigger from creating a
* checkpoint ahead of the savepoint.
*/
@Test
void testTriggerWhileSavepointDrainGateIsSetAndNothingIsPendingRearms() {
ExecutorService executor = Executors.newCachedThreadPool();
CheckpointCoordinator coordinator = Mockito.spy(buildMinimalCoordinator(executor));
try {
List<CheckpointType> rearmed = new CopyOnWriteArrayList<>();
Mockito.doAnswer(
invocation -> {
rearmed.add(invocation.getArgument(0));
return null;
})
.when(coordinator)
.scheduleTriggerPendingCheckpoint(
Mockito.any(CheckpointType.class), Mockito.anyLong());
Mockito.doReturn(new InvocationFuture[0])
.when(coordinator)
.triggerCheckpoint(Mockito.any(CheckpointBarrier.class));
isAllTaskReady(coordinator).set(true);
pendingCounter(coordinator).set(0);
ReflectionUtils.setField(
coordinator, CheckpointCoordinator.class, "savepointDraining", true);
for (CheckpointType type :
new CheckpointType[] {
CheckpointType.CHECKPOINT_TYPE,
CheckpointType.COMPLETED_POINT_TYPE,
CheckpointType.SCHEMA_CHANGE_BEFORE_POINT_TYPE,
CheckpointType.SCHEMA_CHANGE_AFTER_POINT_TYPE
}) {
coordinator.tryTriggerPendingCheckpoint(type);
Assertions.assertEquals(
0,
pendingCounter(coordinator).get(),
"a " + type + " trigger created a checkpoint while the drain gate was set");
Assertions.assertTrue(
rearmed.contains(type),
"a " + type + " trigger was dropped instead of re-armed");
}
ReflectionUtils.setField(
coordinator, CheckpointCoordinator.class, "savepointDraining", false);
assertPeriodicTriggeringResumes(coordinator);
} finally {
// no savepoint request backs the gate set above
ReflectionUtils.setField(
coordinator, CheckpointCoordinator.class, "savepointDraining", false);
shutDown(coordinator);
executor.shutdownNow();
}
}
```
</details>
Please feel free to take it as is, rename it, or skip it entirely; it's your call. I'm not touching the other review items. If it would be easier, I'm happy to open a PR against your branch instead.
On the Build: as DanielLeens noted in the review, the failed jobs are in modules this PR doesn't change. The only one of them that runs a savepoint is `PostgresCDCIT`, and in that run the savepoint and restore themselves succeeded (`SAVEPOINT_DONE`, then restore from checkpoint 4). The row missing after restore has the same signature as the open #12382, which was seen on a `dev` scheduled run before this PR existed (see also #11847). The branch is now 41 commits behind `dev`, which includes #12444 for the PayPal test, so syncing `dev` in the same push and re-running should give a cleaner signal.
Thanks!
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "Rangsh (via GitHub)" <gi...@apache.org>.
Rangsh commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-5986993072
@Vivek1106-04 Thanks! Your variant is the better pin for that window — keeping a real drain in flight avoids a reflection-set gate with no savepoint request behind it, which is exactly the trade-off you called out. Nothing further needed from me, so my ported version can stay as a comment here.
Glad the dev sync (picking up #12444) worked out. I'll keep an eye on the CI runs on `a691fb195` and can repost the triage notes if the known PayPal/PostgresCDC flakes show up. Good luck with the re-review!
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6029392209
@Vivek1106-04 thanks for following up on all three points.
1. Good to hear the re-run on `a691fb195` finished green, including `engine-v2-it (11)` and the rest of the engine jobs. That matches your earlier analysis that `BackpressureSlowSinkIT.testCheckpointsKeepCompletingUnderSustainedBackpressure` is not driven by this PR (no savepoint in that test, same `only observed 2` failure on `dev`), so I consider the CI question closed.
2. Understood on the truncated preview — thanks for pointing to issuecomment-5982000557 and quoting the rest of the sentence. The intended outcome is clear: a job that is `CANCELING` when the restore is abandoned ends `CANCELED`, otherwise the pipeline keeps the state and error it failed with, and the cancelled job no longer restarts a pipeline only to cancel it. That is the behaviour I expected.
3. Thanks for clarifying where the non-cancel branch is pinned. `testSavePointFailureDuringPipelineRestoreWaitEndsTheJob` in `SavePointTest` (job stays `DOING_SAVEPOINT` / pipeline stuck `RUNNING` without `abandonRestore`, so it times out) together with `testCancelDuringPipelineRestoreWaitEndsTheJobCanceled` in `CheckpointErrorRestoreEndTest` covers both branches, which answers my concern.
One small ask so the rationale is easy to find later: could you add a short note in the PR description (or in a comment next to `abandonRestore`) that points to these two tests as the pins for the cancel and non-cancel branches? No code change needed beyond that from my side.
<!-- streview-comment:1563 -->
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6433039266
Thanks @Vivek1106-04 for closing the loop on the `abandonRestore` test coverage. Naming both tests in part 3 of the PR description — `CheckpointErrorRestoreEndTest#testCancelDuringPipelineRestoreWaitEndsTheJobCanceled` for the cancel branch and `SavePointTest#testSavePointFailureDuringPipelineRestoreWaitEndsTheJob` for the non-cancel branch — is exactly what I was after, and the reasoning that the non-cancel test would time out without `abandonRestore` (pipeline stuck `RUNNING`, job stuck in `DOING_SAVEPOINT`) makes the pin convincing.
Since the code is unchanged since `a691fb195` and the description now documents the coverage, I consider this point resolved. Nothing further from me on it; @nzw921rx has also given a +1, so I'm good to move forward.
<!-- streview-comment:2079 -->
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-7366858794
I checked the job records for attempt 2 on `b4d567547ef308bfa87f5644b26f55caa2e64e10`. All four previously failed jobs now report success, and each named integration-test step reports success. None of those steps was skipped.
- [JDBC part 6 / JDK 17](https://github.com/Vivek1106-04/seatunnel/actions/runs/45637688687/job/142770839822)
- [JDBC part 2 / JDK 11](https://github.com/Vivek1106-04/seatunnel/actions/runs/45637688687/job/142770839043)
- [JDBC part 7 / JDK 11](https://github.com/Vivek1106-04/seatunnel/actions/runs/45637688687/job/142770839202)
- [LocalFile / JDK 11](https://github.com/Vivek1106-04/seatunnel/actions/runs/45637688687/job/142770839514)
That closes the per-job confirmation in this thread and the prior Maven bootstrap gate. The fixture interleaving suggestion remains optional. Independent maintainer review is still required.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6408591919
@DanielLeens Please help complete the review!
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6503417988
Thanks @SEZ9 for closing the coverage discussion. I agree with the existing source clearance for this unchanged head and the named cancel/non-cancel restore tests; #12623 remains a separate dependent contribution. The remaining action is effective maintainer approval/branch protection. Being diverged without conflicts does not require a contributor rebase or another source change here.
Checked 2026-10-29T17:13:40+00:00; head `a691fb195d32381b3a43560eba4586861366a6d8`. [Notify test workflow](https://github.com/apache/seatunnel/actions/runs/37216100246/job/111476805914) = `SUCCESS`; [labeler](https://github.com/apache/seatunnel/actions/runs/37216100242/job/111476806239) = `SUCCESS`; [Build](https://github.com/apache/seatunnel/runs/111623841460) = `SUCCESS`
Comparison: base `dev`, head `a691fb195d32381b3a43560eba4586861366a6d8`, `diverged`, ahead 4 / behind 249; GitHub mergeable state `unstable`. Behind/diverged alone is recorded metadata and does not add a sync request.
Daniel has READ repository permission. This is a discussion/CI clarification, not a new complete source review, an effective APPROVED event or dismissal of historical requested changes. A write-capable maintainer must perform any required final approval/dismissal. Thanks for keeping the follow-up focused.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6473613139
Thanks @SEZ9 and @Vivek1106-04 for closing the coverage discussion. The named cancel and non-cancel restore tests answer that documentation question; my existing technical clearance on this unchanged head stands. The current Build and effective repository approval are tracked separately below. I am not issuing a new full source review or claiming another person's approval as Daniel's.
Gate snapshot (2026-10-28T15:46:44+00:00), head `a691fb195d32381b3a43560eba4586861366a6d8`: [Build](https://github.com/apache/seatunnel/runs/111623841460) is `SUCCESS`.
CI was previously the only remaining technical gate in my conclusion; CI is now passing, so that CI objection is withdrawn and my technical conclusion is clear to proceed. Daniel currently has READ permission. I have not changed the effective GitHub review state to APPROVED; a write-capable maintainer must perform the final approve/dismiss action required by branch protection.
Comparison recorded in this scan: base `dev`, `diverged`, ahead 4 / behind 237, no merge conflict. Branch drift is metadata here and is not an additional sync request.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6487205867
Thanks @Vivek1106-04 for the follow-up, and thanks @nzw921rx for the +1.
Where this stands from my side on head `a691fb195d`:
- The code is unchanged since my last review, so my existing source-side clearance stands. The named tests for both branches of `abandonRestore` (`CheckpointErrorRestoreEndTest#testCancelDuringPipelineRestoreWaitEndsTheJobCanceled` for cancel, `SavePointTest#testSavePointFailureDuringPipelineRestoreWaitEndsTheJob` for non-cancel) close the coverage-documentation discussion from the thread. The earlier green run on `a691fb195` still applies, and the latest `Build` on `a691fb195d32381b3a43560eba4586861366a6d8` is `SUCCESS` as well.
- The non-blocking notes from my last review (landing #12623 right after this, and treating a `FAILING` job like `CANCELING` in `abandonRestore`) remain non-blocking; no action needed on them in this PR.
I have no remaining source-side blocker and nothing further to ask of you on this scope. The only outstanding item is the effective repository approval / branch-protection gate, which has to be handled by a committer with write access. The branch is `diverged` against `dev` but reports no merge conflict, so I am not requesting a rebase.
<!-- streview-comment:2118 -->
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6514265699
Thanks @SEZ9. Agreed: the unchanged head remains source-clear with a green Build. The cancel/non-cancel restore coverage discussion is closed. No additional contributor commit, rebase or CI run is requested solely because the branch is diverged; effective approval under branch protection is the remaining maintainer action.
Checked 2026-10-30T03:30:37.150487+00:00; head `a691fb195d32381b3a43560eba4586861366a6d8`. [Notify test workflow](https://github.com/apache/seatunnel/actions/runs/37216100246/job/111476805914)=`SUCCESS`; [labeler](https://github.com/apache/seatunnel/actions/runs/37216100242/job/111476806239)=`SUCCESS`; [Build](https://github.com/apache/seatunnel/runs/111623841460)=`SUCCESS`. Base `dev`, `diverged`, ahead 4/behind 252; merge `unstable`.
This is an unchanged-head discussion/CI clarification, not another full source review or an effective approval. Daniel has READ repository permission.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-6556370496
Thanks @SEZ9 and @nzw921rx. I agree that the coverage discussion is closed; the unchanged head `a691fb195d32381b3a43560eba4586861366a6d8` still has successful Build, Notify test workflow and labeler checks.
One gate detail has changed from my earlier follow-up: GitHub now reports `reviewDecision=APPROVED`, so my earlier statement that effective approval was still missing is outdated. The merge state remains `UNSTABLE`; that is a separate repository/mergeability signal, and I am not treating it as final merge acceptance. A write-capable maintainer should check that remaining merge gate before merging. #12623 remains the separately tracked follow-up; no extra contributor commit or CI rerun is requested solely because this branch is diverged from dev (ahead 4, behind 264 in this snapshot).
This is a reply to the new discussion and a correction of gate metadata, not another full source review or a new approval from Daniel.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "SEZ9 (via GitHub) via commits" <co...@seatunnel.apache.org>.
SEZ9 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-7204226138
Thanks @Vivek1106-04 for the rebase and the clear write-up.
- **Rebase:** The earlier note that no rebase was requested was only about the branch being diverged. A real conflict with dev is a different situation, so rebasing onto `113cea2a9` was the right call.
- **Coverage discussion:** The cancel/non-cancel restore coverage discussion stays closed. You report import-only conflicts in `CheckpointCoordinator` and `CheckpointCoordinatorTest`, and a range-diff against `a691fb195d` showing the four commits' logic unchanged. On that basis, the rebase does not reopen it and no further source change is requested for it.
- **Scheduler interaction:** Your explanation of the new dev behaviour holds together as described. The drain loop re-checks `shutdown` under the lock before creating the savepoint, and the re-arm and timeout scheduling are covered by the existing `RejectedExecutionException` handling. Nothing more is asked here.
- **CI:** The earlier successful Build was recorded for `a691fb195d32381b3a43560eba4586861366a6d8`, so it does not carry over to the new head `b4d567547e`. The 68 local `checkpoint` package tests on JDK 17 are a good sign, but the Build result on the new head is still needed.
Remaining ask: please post the result of fork Build [run 45637688687](https://github.com/Vivek1106-04/seatunnel/actions/runs/45637688687) once it finishes, and confirm that it ran against `b4d567547e`. If anything fails, please include the failing module and test name so we can tell whether it relates to the rebase.
<!-- streview-comment:2632 -->
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix][Zeta] Wait for the in-flight checkpoint outside the coordinator lock when starting a savepoint [seatunnel]
Posted by "SEZ9 (via GitHub) via commits" <co...@seatunnel.apache.org>.
SEZ9 commented on PR #12511:
URL: https://github.com/apache/seatunnel/pull/12511#issuecomment-7397511729
Thanks for sticking with this through the CI retries.
The CI point from the earlier review is now closed on unchanged head `b4d567547e`. The earlier failures were Maven wrapper download errors (HTTP 429) that happened before any tests ran, so they did not point at your change.
On attempt 2 of run 45637688687, all four previously failed jobs now report success:
- JDBC part 6 / JDK 17
- JDBC part 2 / JDK 11
- JDBC part 7 / JDK 11
- LocalFile / JDK 11
In each of them the integration-test step ran and reported success; none was skipped. That closes both the per-job confirmation and the Maven bootstrap gate.
Remaining items:
- **CI:** nothing further is needed from you.
- **Fixture interleaving:** this suggestion stays optional, and the source review recorded no source blocker.
- **Maintainer review:** an independent maintainer review is still required.
<!-- streview-comment:2833 -->
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org