You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "MartijnVisser (via GitHub)" <gi...@apache.org> on 2026/09/15 19:32:21 UTC
[PR] [BP-1.20][FLINK-40446][tests] Make CommonTestUtils.terminateJob wait for the CANCELED terminal state [flink]
MartijnVisser opened a new pull request, #29199:
URL: https://github.com/apache/flink/pull/29199
## What is the purpose of the change
Backport of 9c1015353f8 (#28997) to release-1.20, which the Jira has as fixVersion 1.20.6. The branch still ends the UC rescale jobs with `jobClient.cancel().get()`, which only acknowledges that cancellation was initiated, so JUnit can start deleting the `@TempDir` checkpoint directory while the source subtasks are still writing their async snapshot into it.
release-1.20 hits this in `UnalignedCheckpointRescaleSameUpstreamITCase` in every nightly since 2026-09-11, on both parameterisations, most recently https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=79075 and https://github.com/apache/flink/actions/runs/34919682822.
## Brief change log
* `CommonTestUtils.terminateJob` waits for the CANCELED terminal state after `cancel()`
* The two UC rescale ITCases go through it instead of `cancel().get()`
* `SinkTestSuiteBase` and `SourceTestSuiteBase` drop their local `killJob` helpers, which did the same wait
## Verifying this change
This change is already covered by existing tests, such as `UnalignedCheckpointRescaleWithMixedExchangesITCase` and `UnalignedCheckpointRescaleSameUpstreamITCase`.
* The commit conflicted in `UnalignedCheckpointRescaleWithMixedExchangesITCase` because master also carries the third rescale step from FLINK-39140, which is not on this branch. Only the two cancel sites that exist here were converted, nothing from FLINK-39140 was pulled in
* Both ITCases pass on this branch (7 tests, and the run repeated both suites a second time, all green)
* The race itself does not reproduce on macOS, the observed failures are on Azure and GitHub Actions nightlies
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): no
- The public API, i.e., is any changed class annotated with `@Public(Evolving)`: no
- The serializers: no
- The runtime per-record code paths (performance sensitive): no
- Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no, test code only
- The S3 file system connector: no
## Documentation
- Does this pull request introduce a new feature? no
- If yes, how is the feature documented? not applicable
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (please specify the tool below)
Generated-by: Claude Code (Claude Opus 5)
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BP-1.20][FLINK-40446][tests] Make CommonTestUtils.terminateJob wait for the CANCELED terminal state [flink]
Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #29199:
URL: https://github.com/apache/flink/pull/29199#issuecomment-5687154295
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "fd5dfc7466ae867d4e56d5b0b2f4c754230df568",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "fd5dfc7466ae867d4e56d5b0b2f4c754230df568",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* fd5dfc7466ae867d4e56d5b0b2f4c754230df568 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run azure` re-run the last Azure build
</details>
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BP-1.20][FLINK-40446][tests] Make CommonTestUtils.terminateJob wait for the CANCELED terminal state [flink]
Posted by "MartijnVisser (via GitHub)" <gi...@apache.org>.
MartijnVisser merged PR #29199:
URL: https://github.com/apache/flink/pull/29199
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org