[FLINK-40552][runtime] Support asynchronous transform execution - #4526
Open
haruki-830 wants to merge 1 commit into
Open
[FLINK-40552][runtime] Support asynchronous transform execution#4526haruki-830 wants to merge 1 commit into
haruki-830 wants to merge 1 commit into
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?
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)