fluss icon indicating copy to clipboard operation
fluss copied to clipboard

[server] Persist BulkLoad bucket commits atomically

Open platinumhamburg opened this issue 2 weeks ago • 0 comments

What problem does this solve?

FIP-61 gives each BulkLoad bucket an independent allocation, commit, and recovery. The Coordinator needs to reject a bucket commit when the leader's WAL end offset has changed and publish the bucket result and recovery selection together.

Scope

Extract the bucket workflow from #5269. Given an existing RUNNING transaction and physical target, the bucket allocation RPC fixes a snapshot ID and WAL offset. The commit RPC validates the upload and publishes the bucket result, ordinary snapshot reference, and recovery selection in one ZooKeeper transaction. The current TabletServer leader then applies the snapshot and resumes from its WAL offset.

Keep transaction creation, transaction-level completion and abort, progress queries, and result cleanup in #5269. Test the bucket workflow with a prepared transaction and target and real RPCs through the Coordinator and TabletServer.

platinumhamburg avatar Nov 18 '26 16:11 platinumhamburg