Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FLINK-38403][tests] Fix the unexpected test that the second job does not restore from checkpoint#27254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
1996fanrui wants to merge2 commits intoapache:master
base:master
Choose a base branch
Loading
from1996fanrui:38403/ITCase-rescale-not-restore

Conversation

@1996fanrui
Copy link
Member

What is the purpose of the change

Get more fromhttps://github.com/apache/flink/pull/27119/files#r2542189639

Brief change log

[FLINK-38403][tests] Fix the unexpected test that the second job does not restore from checkpoint

@flinkbot
Copy link
Collaborator

flinkbot commentedNov 19, 2025
edited
Loading

CI report:

Bot commands The@flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

Comment on lines -775 to +795
conf.set(StateRecoveryOptions.SAVEPOINT_PATH,restoreCheckpoint.toURI().toString());
conf.set(StateRecoveryOptions.SAVEPOINT_PATH,restoreCheckpoint);
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It adds the wrong prefix, so updatedrestoreCheckpoint to String.

Image

AHeise reacted with thumbs up emoji
Copy link
Contributor

@AHeiseAHeise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you very much for fixing this test! Left two remarks that need to be addressed before approval.

Comment on lines 623 to 625
assertNotNull(
"First job must generate a checkpoint for rescale test to be valid.",
checkpointDir);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Please use assertj (assertThat(checkpointDir).as("First job must generate a checkpoint for rescale test to be valid.").isNotNull)

1996fanrui reacted with thumbs up emoji
Comment on lines 200 to 202
returnCommonTestUtils.getLatestCompletedCheckpointPath(
jobID,miniCluster.getMiniCluster())
.map(File::new)
.orElseThrow(() ->newAssertionError("Could not generate checkpoint"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Should weFail.fail("Expected exception") here?

1996fanrui reacted with thumbs up emoji
@1996fanrui1996fanruiforce-pushed the38403/ITCase-rescale-not-restore branch from80692f1 to4e675d2CompareNovember 20, 2025 11:23
Copy link
MemberAuthor

@1996fanrui1996fanrui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks@AHeise for the quick review, all comments are addressed.

@1996fanrui1996fanruiforce-pushed the38403/ITCase-rescale-not-restore branch from4e675d2 to736ad29CompareNovember 20, 2025 14:23
@snuyanzin
Copy link
Contributor

snuyanzin commentedNov 20, 2025
edited
Loading

fyi: to have green ci, rebase to the latest master
e2e was fixed atFLINK-38700

@1996fanrui
Copy link
MemberAuthor

fyi: to have green ci, rebase to the latest master e2e was fixed atFLINK-38700

Thanks@snuyanzin for the reminder, I am still changing the PR, and I will rebase master branch before next push.

…ished eventuallyAdd comments to help understand the UnalignedCheckpointRescaleITCase
@1996fanrui1996fanruiforce-pushed the38403/ITCase-rescale-not-restore branch from736ad29 to8938499CompareNovember 26, 2025 13:05
Comment on lines +626 to +627
* <p>Postscale phase: Job restores from checkpoint with different parallelism, failovers once,
* and finishes after source generates all records.
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The second job expects failover once, and finishes after source generates all records. So removing@ThrowableAnnotation(ThrowableType.NonRecoverableError) forTestException.

Also, I introducedExpectedFinalJobStatus inUnalignedSettings to check the finalJobStatus.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@AHeiseAHeiseAwaiting requested review from AHeise

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@1996fanrui@flinkbot@snuyanzin@AHeise

[8]ページ先頭

©2009-2025 Movatter.jp