1996fanrui opened a new pull request, #30126:
URL: https://github.com/apache/flink/pull/30126

   ## What is the purpose of the change
   
   Backport of #27688 to release-2.2, limited to the two test-only commits that 
fix flakiness of `UnalignedCheckpointRescaleWithMixedExchangesITCase`:
   
   - `17581beed0c`: `MAX_RETAINED_CHECKPOINTS` was set on the job config, where 
it has no effect, so the retained checkpoint could be subsumed and cleaned up 
before the job restored from it. It is now set on the cluster config.
   - `02e36182d4a`: records change from `Long` to 100-char `String`, so fewer 
records fit into a buffer and backpressured buffers drain faster during the 
aligned phases, avoiding checkpoint timeouts.
   
   release-1.20 already received these same two commits through #29552 
(FLINK-41053, retained checkpoint missing on restore) and #30005 (FLINK-40804, 
checkpoint expiry). FLINK-40804 reports the checkpoint expiry on release-2.2 
nightlies too, and release-2.2 still sets `MAX_RETAINED_CHECKPOINTS` on the job 
config and emits `Long` records.
   
   ## Verifying this change
   
   - `./mvnw install -DskipTests -Dfast -Pskip-webui-build -pl flink-tests -am` 
(JDK 17): `BUILD SUCCESS`
   - `./mvnw -pl flink-tests 
-Dtest='UnalignedCheckpointRescaleWithMixedExchangesITCase' 
-Dsurefire.failIfNoSpecifiedTests=false test` (JDK 17), run 5 times: `BUILD 
SUCCESS` each time, `Tests run: 5, Failures: 0, Errors: 0, Skipped: 0 -- in 
org.apache.flink.test.checkpointing.UnalignedCheckpointRescaleWithMixedExchangesITCase`
   - `./mvnw -q -pl flink-tests spotless:check checkstyle:check` (JDK 17): 
passes
   
   ## Difference from the original
   
   | Original commit | Conflict | Byte-identical | Changes |
   | --- | --- | --- | --- |
   | 17581beed0c | No | Yes | None |
   | 02e36182d4a | No | Yes | None |
   
   ## Notes
   
   - This is a partial backport: 2 of the commits of #27688. Left out on 
purpose:
     - `ffd01f74c6d` (disable `CUSTOM_PARTITIONER` in 
`UnalignedCheckpointRescaleITCase`) and `abfc3012ba4` (allow multiple rescales 
in the unaligned checkpoint ITCases): these belong to the multiple-rescale test 
coverage of FLINK-39140, not to the flakiness fixes, and release-1.20 does not 
have them either.
     - `ebaa7b8420b` (hotfix, channel-state-unspilling thread name in 
`StreamTask`): an unrelated runtime change.
   - The flakiness is intermittent, so passing local runs cannot prove the fix; 
they show the test still runs and passes on this branch.
   
   ##### Was generative AI tooling used to co-author this PR?
   
   <!--
   If generative AI tooling has been used in the process of authoring this PR, 
please
   change the checkbox below to `[X]` followed by the name of the tool, and 
uncomment the
   "Generated-by" line. See the ASF Generative Tooling Guidance for details:
   https://www.apache.org/legal/generative-tooling.html
   
   You are responsible for the quality and correctness of every change in this 
PR
   regardless of the tooling used. Low-effort AI-generated PRs will be closed. 
See
   AGENTS.md for the full guidance.
   -->
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude Code (Opus 5.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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to