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

   ### Purpose of this pull request
   
   `SavePointTest#testSavePointOnServerRestart` sits behind a bare 
`@Disabled()` with no recorded reason, so the savepoint → server restart → 
restore path — which is also the only caller of 
`AbstractSeaTunnelServerTest#restartServer()` — never runs in CI.
   
   Re-enabling it is not enough on its own, though: both `testSavePoint` and 
`testSavePointOnServerRestart` call `savePointAndRestore` with the same 
hardcoded job id `823342`, so once both run, whichever variant goes second is 
rejected by the coordinator with `The job id 823342 has already been submitted 
and is not starting with a savepoint`. This is very likely why the test ended 
up disabled: enabling it broke its sibling instead.
   
   This PR:
   
   * replaces the hardcoded `823342L` in `savePointAndRestore` with 
`System.currentTimeMillis()`, the same per-invocation id pattern the other 
tests in this class (`testSavePointButJobGoingToFail`, 
`testSavePointWithMultiTimeRequest`, `testRestoreWithNoSavepointFile`) already 
use;
   * drops the bare `@Disabled()` so the restart variant — including its final 
data-completeness assertion on the restored job — runs in CI again.
   
   No production code is touched.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. Test-only change.
   
   ### How was this patch tested?
   
   * Single test (after just removing the annotation): `mvn -pl 
seatunnel-engine/seatunnel-engine-server 
-Dtest='SavePointTest#testSavePointOnServerRestart' test` — 1/1, 47 s: the 
pipeline is restored from the savepoint taken before the restart and the final 
data count is verified.
   * Whole class before the job-id change: the run above surfaced the `job id 
823342 has already been submitted` failure in whichever variant ran second, 
which motivated the `System.currentTimeMillis()` fix.
   * Whole class after the change: `mvn -pl 
seatunnel-engine/seatunnel-engine-server -Dtest=SavePointTest test` — 6/6, 
executed twice (142 s each), on a warm container that already carries 
checkpoint-storage residue from previous runs.
   * `mvn -pl seatunnel-engine/seatunnel-engine-server spotless:check` — passes.
   
   ### 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)
 (N/A)
   * [ ] If necessary, please update the documentation to describe the new 
feature. https://github.com/apache/seatunnel/tree/dev/docs (N/A)
   * [ ] If necessary, please update `incompatible-changes.md` to describe the 
incompatibility caused by this PR. (N/A)
   * [ ] If you are contributing the connector code, please check that the 
following files are updated: (N/A — engine test only)
   
   ---
   
   This PR was created with the assistance of generative AI tooling 
(TeleAgent); the code was reviewed and tested by the contributor before 
submission.


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