[rust] Add RPC message wrappers for extended operations#630
Conversation
- Update fluss_api.proto with all 1.x message types (ACLs, KV snapshots,
producer offsets, cluster config, rebalance, server tags, etc.)
- Add optional fields: rack, remote_data_dir, leader_epoch, agg_mode, etc.
- Register 24 new ApiKey variants (1023-1064) in api_key.rs
- Update build.rs prost bytes config for new proto fields
- Add None defaults in convert.rs and partition.rs
- Update pre-existing message wrappers that reference renamed proto fields /
ApiKey variants so the crate still builds:
* create_partition.rs: ignore_if_exists -> ignore_if_not_exists
* get_latest_lake_snapshot.rs: ApiKey::GetLatestLakeSnapshot -> GetLakeSnapshot
* list_databases.rs: populate new include_summary field
* lookup.rs: PbLookupReqForBucket.key -> keys; new LookupRequest fields
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add 9 RPC message wrapper types: - alter_database, alter_table (DDL operations) - get_table_stats (table statistics) - list_database_summaries (database listing with summaries) - create_acls, list_acls, drop_acls (ACL management) - describe_cluster_configs, alter_cluster_configs (cluster configuration) Each wrapper follows the standard pattern: a request struct wrapping the proto-generated type, implementing RequestBody (tying to ApiKey and ResponseBody), WriteType, and ReadType. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add message wrappers for the remaining 1.x RPC APIs: - KV snapshot lifecycle: acquire/release/drop lease, list, metadata, latest snapshots, lake snapshot - Server management: add/remove server tag, rebalance + progress + cancel, get cluster health, list remote log manifests - Producer offsets: register/get/delete - ScanKv (API 1061): full KV-table bucket scan request/response
ea7c1da to
9d2fbff
Compare
|
Rebased onto updated #629 and proactively applied the same Domain types added (
Wrapper signatures: 3 wrappers that took raw
Not changed (yet): cargo build + clippy ( |
|
@gnuhpc Can you pls, rebase/cherry-pick on top of current main and fix proto visibility in a similar fashion as I did in previous PR? |
What
Adds message wrappers for the remaining 1.x RPC APIs:
Wired into
rpc/message/mod.rs.scan_kv.rsis consumed by theKvBatchScannerin the final PR of the series.Stack
Part 3/6, stacked on #629 (
pr/2-rpc-messages-core) → #628. All targetmain; each branch compiles on its predecessor, so diffs shrink to this branch's unique files as the base PRs merge.🤖 Generated with Claude Code