[rust] Support KvScan in Rust client - #4201
Open
naivedogger wants to merge 2 commits into
Open
Conversation
…dling - Add KvBatchScanner with ScanKv RPC continuation protocol for paginated full-bucket scans with snapshot isolation - Add scanner error handling for TooManyScanners, NotLeaderOrFollower, ScannerExpired and UnknownScannerId with retry/backoff - Add config options for KV scan batch size - Add FlussApiError variants for scanner-related errors - Update C++ and Elixir bindings to reflect new APIs - Add integration tests for batch scanner scenarios
naivedogger
force-pushed
the
feature/rust-client-kv-scan
branch
from
September 3, 2026 02:08
3dd52cd to
f653fab
Compare
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.
Purpose
Linked issue: close #3294
This PR adds KvScan support to the Rust client, bringing it in line with the existing server-side and Java client semantics. It allows users to scan the merged current state of a primary-key table, instead of consuming its changelog.
Brief change log
ScanKvlifecycle, including continuation requests, timeout-safe polling, resource cleanup, and error handling.Tests
API and Format
This PR adds the following public Rust APIs:
TableScan::create_bucket_kv_scannerTableScan::create_kv_scannerKvBatchScannerKvSnapshotScannerKvBatchReadOutcomeConfig::scanner_kv_fetch_max_bytesNo storage format or RPC protocol changes are introduced. The implementation uses the existing
ScanKvRPC and KV value record format.Documentation
Updated the Rust API reference and primary-key table guide with full KV scan configuration, semantics, limitations, and examples.