Skip to content

[FLINK-39729][table] Fix flaky CorrelateRestoreTest by using materialized data assertion#28224

Open
jnh5y wants to merge 1 commit into
apache:masterfrom
jnh5y:FLINK-39729-fix-flaky-correlate-restore-test
Open

[FLINK-39729][table] Fix flaky CorrelateRestoreTest by using materialized data assertion#28224
jnh5y wants to merge 1 commit into
apache:masterfrom
jnh5y:FLINK-39729-fix-flaky-correlate-restore-test

Conversation

@jnh5y
Copy link
Copy Markdown
Contributor

@jnh5y jnh5y commented May 21, 2026

What is the purpose of the change

Fix flaky CorrelateRestoreTest.testRestore[8] (CORRELATE_WITH_LITERAL_AGG) by switching from changelog sequence assertion to materialized data assertion.

Brief change log

  • Changed CORRELATE_WITH_LITERAL_AGG test program sink from consumedBeforeRestore()/changelog mode to consumedValues() + testMaterializedData(), checking final materialized state [+I[2], +I[3]] instead of exact changelog ordering.

Verifying this change

This change only modifies test infrastructure. The fix addresses non-deterministic record interleaving in the multi-source streaming plan (3 sources → InnerJoin + LeftOuterJoin + SemiJoin) that causes intermittent test failures.

The testMaterializedData() pattern is already used by MultiJoinTestPrograms and DeltaJoinTestPrograms for the same class of non-determinism.

Generated-by: Claude Code (claude-opus-4-6)

…ized data assertion

Generated-by: Claude Code (claude-opus-4-6)
@jnh5y jnh5y marked this pull request as ready for review May 21, 2026 20:58
@flinkbot
Copy link
Copy Markdown
Collaborator

flinkbot commented May 21, 2026

CI report:

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants