Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bidirectional streaming RPCs for scan operations in DistributedStorageService #235

Merged

Conversation

brfrn169
Copy link
Collaborator

@brfrn169 brfrn169 commented Jul 5, 2021

This PR changes the scan operations for DistributedStorageService to use bidirectional streaming RPCs in gRPC. I basically did the same things in #228.

Please take a look!

@brfrn169 brfrn169 requested a review from feeblefakie July 5, 2021 06:05
@brfrn169 brfrn169 self-assigned this Jul 5, 2021
@brfrn169 brfrn169 force-pushed the use-bidirectional-streaming-in-scanner-in-storage branch from 130ca57 to a00e837 Compare July 6, 2021 04:03
@brfrn169
Copy link
Collaborator Author

brfrn169 commented Jul 6, 2021

I rebased this to fix the conflicts. Please take a look!

Copy link
Contributor

@feeblefakie feeblefakie left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

rpc ScanNext (ScanNextRequest) returns (ScanNextResponse) {
}
rpc CloseScanner (CloseScannerRequest) returns (google.protobuf.Empty) {
rpc Scan (stream ScanRequest) returns (stream ScanResponse) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

Scan scan = 1;
int32 fetch_count = 2;
optional int32 fetch_count = 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, I didn't know optional is back now 👍

@feeblefakie feeblefakie merged commit 8076135 into master Jul 6, 2021
@feeblefakie feeblefakie deleted the use-bidirectional-streaming-in-scanner-in-storage branch July 6, 2021 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants