Skip to content

Introduce RPC Layer for KV Scan - #2976

Merged
wuchong merged 6 commits into
apache:mainfrom
polyzos:kvscan-rpc-layer
Apr 18, 2026
Merged

wuchong merged 6 commits into
apache:mainfrom
polyzos:kvscan-rpc-layer

Conversation

@polyzos

@polyzos polyzos commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@polyzos
polyzos marked this pull request as ready for review April 1, 2026 06:59
@polyzos

polyzos commented Apr 1, 2026

Copy link
Copy Markdown
Contributor Author

@wuchong @platinumhamburg @leekeiabstraction PTAL

I had to also fix some tests in the PR, because the CI was quite unstable.. Let me know your thoughts if thats ok

@fresh-borzoni fresh-borzoni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@polyzos Ty for the PR, minor comments, PTAL

Comment thread fluss-rpc/src/main/proto/FlussApi.proto Resolved

// Full KV scan request and response.
// A new scan is initiated with bucket_scan_req; subsequent batches use scanner_id.
message PbScanReqForBucket {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Mb PbBucketScanRequest reads better?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leekeiabstraction see my comment below for the naming

@polyzos

polyzos commented Apr 2, 2026

Copy link
Copy Markdown
Contributor Author

@fresh-borzoni Comments addressed.. for the PbScanReqForBucket i would like to keep it as is for now, unless others have objections, so there is consistency with the rest like PbTableStatsReqForBucket in terms of ReqForBucket

@fresh-borzoni fresh-borzoni left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ty, LGTM

@leekeiabstraction leekeiabstraction left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TY for the PR. Left some comments

// Maximum number of bytes of record data to return in this batch.
optional int32 batch_size_bytes = 4;
// If true, the server closes the scanner session immediately.
optional bool close_scanner = 5;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably split close out as eg closeScanRequest out as a request on its own so that this API is single responsibility.

// check metadata response - retry since coordinator needs time to fully load its state
// after restart (waitUntilCoordinatorServerElected only waits for ZK election, not for
// the full metadata/schema load to complete)
retry(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we updating schema evolution test case in this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leekeiabstraction see my comment above. I had some weird issues with the CI to make it pass

@platinumhamburg platinumhamburg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@wuchong wuchong linked an issue Apr 18, 2026 that may be closed by this pull request

@wuchong wuchong left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I revert the changes of TableManagerITCase, since this unstable test has been fixed in 2c031c4

@wuchong
wuchong merged commit c615e27 into apache:main Apr 18, 2026
12 of 13 checks passed
Ugbot pushed a commit to Ugbot/fluss that referenced this pull request Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce Protobuf definitions for RPC

5 participants