Repository navigation
Conversation
eebbaca to
f7efeab
Compare
| required int64 allocated_bucket_count = 3; | ||
| required int64 committed_bucket_count = 4; | ||
| required bool withdrawn = 5; | ||
| optional string partition_name = 6; |
There was a problem hiding this comment.
partition_name is needed to recover a load after retention deletes one of its target partitions. Replaying Begin requires the complete original partition-name set, while the current partition list can no longer resolve a deleted target's ID to its name. This field returns the name already frozen in the transaction; partition_id remains the target identity, so a same-name replacement is not imported. The field is optional and does not change the persisted transaction format.
1816605 to
623b716
Compare
623b716 to
ecdf180
Compare
Initialize Fluss KV state from a fixed Paimon snapshot before registering recovery offsets and enabling lake reads. Reuse committed buckets and frozen partition targets during recovery, and reject unsupported primary-key targets before creating Fluss metadata. Co-Authored-By: Codex <noreply@openai.com> AI-Model: gpt-6 AI-Contributed/Feature: 1388/1388 AI-Contributed/UT: 1499/1499
Keep coverage reporting while excluding the load action package and its nested classes from the per-class coverage threshold. Co-Authored-By: Codex <noreply@openai.com> AI-Model: gpt-6 AI-Contributed/Feature: 1/1 AI-Contributed/UT: 0/0
Expose each Paimon split's physical bucket count and validate it against the frozen target before submitting any import tasks. Bucket IDs alone cannot detect old partitions after a source table expands its buckets. Cover expansion and shrinkage with real Paimon partitions, including keys whose source and target routing differs, and verify no bucket commits or lake initialization on rejection. Co-Authored-By: Codex <noreply@openai.com> AI-Model: gpt-6 AI-Contributed/Feature: 55/55 AI-Contributed/UT: 99/99
Return original target names in progress responses and replay Begin with the complete frozen scope after partition retention deletes a target. Keep original physical IDs so replacement partitions remain isolated. Skip bucket writers on task replay once the transaction has committed. Withdrawn targets may have no bucket commit record, and finalization must still be able to recover after a full job restart. Cover running and committed transactions, same-name replacements, and registration failure followed by replay of the original JobGraph. Co-Authored-By: Codex <noreply@openai.com> AI-Model: gpt-6 AI-Contributed/Feature: 59/59 AI-Contributed/UT: 181/181
Use Table.newBulkLoad for transaction operations and bucket writers. Keep handles, original partition names and expected buckets in the JobGraph; retrieve frozen SDK contexts through idempotent Begin on worker attempts instead of serializing SDK implementation objects. Preserve committed-transaction replay and close the table resources owned by worker connections and integration fixtures. Co-Authored-By: Codex <noreply@openai.com> AI-Model: gpt-6 AI-Contributed/Feature: 116/116 AI-Contributed/UT: 58/58
Synchronize the checked-in Rust bindings with partition_name in the canonical progress response using crates/fluss/regen.sh. Co-Authored-By: Codex <noreply@openai.com> AI-Model: gpt-6 AI-Contributed/Feature: 4/4 AI-Contributed/UT: 0/0
Compare resolved Paimon bucket keys and reject unknown or mismatched physical bucket layouts. Register complete lake snapshot offset maps and use the original transaction targets when recovering after deletion. Handle empty sources through a normal load job, inherit Flink execution parallelism, and group the action under the bulkload package. Simplify partition planning and use the configured timeout for Begin requests. Cover multi-column partition enablement, empty-source initialization, inherited parallelism and recovery after target deletion. Co-Authored-By: Codex <noreply@openai.com> AI-Model: gpt-6 AI-Contributed/Feature: 2026/2038 AI-Contributed/UT: 704/704
ecdf180 to
3f750dc
Compare
Use the server's idempotent commit and completeness checks directly. Share one connection across transaction commit, snapshot registration and lake enablement. Extract bucket initialization and split reading, and clarify action errors and helper names. Consolidate CLI, partition selection and recovery fixtures. Keep Schema fixtures with one TableSchema conversion helper, validate imports from data-backed sources, and skip only named procedure inputs on Flink 1.18. Co-Authored-By: Codex <noreply@openai.com> AI-Model: gpt-6 AI-Contributed/Feature: 162/162 AI-Contributed/UT: 1380/1380
|
@platinumhamburg Thanks for your review. I have addressed your comment |
wuchong
left a comment
There was a problem hiding this comment.
LGTM.
Feel free to merge it when @platinumhamburg 's comments are addressed.
|
@luoyuxia Btw, please remember to create a documentation issue for the flink action and how to use. |
Purpose
Linked issue: Part of #4846.
Enable Fluss on an existing Paimon primary-key table with historical data. Initialize Fluss KV state from one fixed Paimon snapshot, then register that snapshot and enable lake reads after BulkLoad commits.
Builds on the Java BulkLoad SDK merged in #5399 and the import validation and bucket-key compatibility changes merged in #5403.
Brief change log
load_lake_data_to_flussbatch action and invoke it fromsys.enable_fluss_on_lake_tablefor primary-key tables with an existing snapshot. The procedure waits in synchronous DML mode and returns a JobID in asynchronous mode.Table.newBulkLoad()throughout submission, workers and finalization. The JobGraph carries transaction identity, original partition names and expected bucket boundaries; workers retrieve the original context through idempotent Begin.client.fs.*configuration from the Flink catalog to load workers and finalization, and retain Flink 1.18 procedure compatibility.Tests
The full repository test suite was not rerun.
API and Format
Adds a Flink action and a catalog constructor accepting filesystem options.
commitLakeSnapshotaccepts a complete explicit offset map, including an empty map for snapshots without Fluss offsets. AddsLakeSplit.totalBuckets()as a default method returning a nullableInteger(nullwhen unavailable); Paimon exposes the actual physical bucket count fromDataSplit. The procedure can now submit a load job for existing primary-key data. ExtendsBulkLoadInfo.TargetProgresswith the original partition name and adds optionalpartition_namefield 6 to the existing progress response. No new RPC method, persisted transaction format or snapshot format. Resuming a partitioned load requires a coordinator that returns the original target partition names, including names of deleted targets.Documentation
Action and factory Javadocs describe submission arguments and the caller's responsibility for preserving the source snapshot when reusing a BulkLoad ID. Implements the primary-key data initialization portion of FIP-25; broader user documentation remains a follow-up.