[FLINK-40552][runtime] Support asynchronous transform execution - #4526
Merged
Merged
Conversation
haruki-830
marked this pull request as ready for review
September 8, 2026 02:16
yuxiqian
reviewed
Sep 10, 2026
yuxiqian
left a comment
Member
There was a problem hiding this comment.
Thanks Haruki for the contribution!
Could you please add IT / E2e cases to cover this feature? Currently there are merely 2 unit tests. For simplicity we may make current transform e2e cases parameterized.
Comment on lines
+459
to
+468
| private static void drainMailbox(OneInputStreamOperatorTestHarness<Event, Event> harness) | ||
| throws Exception { | ||
| while (true) { | ||
| Mail mail = harness.getTaskMailbox().tryTake(TaskMailbox.MIN_PRIORITY).orElse(null); | ||
| if (mail == null) { | ||
| return; | ||
| } | ||
| mail.run(); | ||
| } | ||
| } |
Member
There was a problem hiding this comment.
This test case seems too low-level and artificial. Replacing it with some IT cases might work better?
1 task
Member
|
CI is failing. Mind you take a look? |
haruki-830
force-pushed
the
FLINK-40552
branch
from
September 11, 2026 02:33
dd134f0 to
c4cfde7
Compare
Contributor
Author
|
The CI failure was caused by an outdated validation call that had already been removed by FLINK-40572. The branch has now been rebased and the stale call has been removed. |
yuxiqian
reviewed
Sep 11, 2026
added 5 commits
September 20, 2026 14:13
yuxiqian
force-pushed
the
FLINK-40552
branch
from
September 20, 2026 07:12
18c532d to
e06966b
Compare
Member
|
Kindly ping @lvyanquan and @haruki-830, just resolved some conflicts. |
lvyanquan
reviewed
Sep 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of this pull request?
JIRA: https://issues.apache.org/jira/browse/FLINK-40552
This PR introduces opt-in ordered asynchronous execution for post-transform processing. It improves the throughput of I/O-bound transform expressions, such as AI model calls, while preserving CDC event ordering and schema consistency.
Brief change log
PostTransformProcessorfor both synchronous and asynchronous execution.DataChangeEvents can execute concurrently while outputs remain ordered.SchemaChangeEvents as barriers to preserve schema/data ordering.CreateTableEventonly once before subsequent data events.Verifying this change
This change added unit tests covering:
CreateTableEvent.Documentation
Was generative AI tooling used to co-author this PR?
Generated-by: OpenAI Codex (GPT-5)