[FLINK-37351][runtime] Ensure Writer/Committer Colocation for Non-Pre-Commit Topologies #27486
+64
−0
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 the change
This pull request addresses the issue detailed in FLINK-37351 which aims to ensure writer/committer colocation, specifically for non-pre-commit topologies, which should improve overall performance.
Brief change log
SinkTransformationTranslator.addCommittingTopology()function to detect non-pre-commit topologies and define a colocation-group key for the transformation (viasetCoLocationGroupKey(...)).Verifying this change
This change added a series of tests in
SinkV2TransformationTranslatorITCaseto verify that colocation wasn't being applied (via a red-green cycle) as well as two other tests to confirm colocation was working for expected cases:testWriterAndCommitterColocatedWithoutPreCommitTopologyto verify writer/committer colocation for non-pre-commit topologiestestWriterAndCommitterNotColocatedWithPreCommitTopologyto verify pre-commit sinks are not colocatedtestUserSpecifiedCoLocationGroupIsRespectedto verify user-specified colocation groups are preservedExample Tests
Does this pull request potentially affect one of the following parts:
@Public(Evolving): noDocumentation
Reviewer Requested
@AHeise