[FLINK] Support native checkpoint state propagation and fix Gluten task output metrics#12318
Open
zhanglistar wants to merge 5 commits into
Open
[FLINK] Support native checkpoint state propagation and fix Gluten task output metrics#12318zhanglistar wants to merge 5 commits into
zhanglistar wants to merge 5 commits into
Conversation
Copilot stopped reviewing on behalf of
zhanglistar due to an error
June 18, 2026 03:24
Copilot stopped reviewing on behalf of
zhanglistar due to an error
June 18, 2026 09:52
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 changes are proposed in this pull request?
This PR wires native source checkpoint state through Gluten Flink and fixes task-level output metrics for Gluten streaming operators. Depends on bigo-sg/velox#47 and bigo-sg/velox4j#37.
Add Gluten source checkpoint state persistence through Flink operator ListState.
Pass real Flink checkpoint IDs into native snapshot/complete/abort paths.
Restore native checkpoint records during source initialization.
Add native source metrics fallback for unique TableScan stats when Flink operator ID does not match the Velox plan node ID.
Fix Gluten one-input and two-input operators to update task-level numRecordsOut based on the actual number of emitted rows.
Change VectorOutputBridge.collect() to return emitted record count so task metrics reflect row output accurately.
Why
Kafka source checkpointing needs native progress snapshots to be persisted by Flink and restored on failover. Also, Kafka -> Gluten calc -> blackhole jobs previously showed vertex-level write-records = 0 even when Gluten operator metrics were non-zero, because task-level output counters were not updated by the Gluten output path.
How was this patch tested?
Validation
Ran local Flink 1.19.2 Kafka smoke:Kafka source produced 5 records
Gluten calc emitted 3 records after filter
Flink REST vertex metrics showed write-records = 3
Job remained RUNNING
Checkpoints completed successfully.
Was this patch authored or co-authored using generative AI tooling?
co work with codex.