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

RATIS-1932. Create zero-copy Marshaller #962

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

duongkame
Copy link
Contributor

@duongkame duongkame commented Nov 7, 2023

What changes were proposed in this pull request?

First step of bringing zero-copy support to Ratis GRPC is create a message marshaller in ratis-grpc (GoogleCloudPlatform/grpc-gcp-java#77).
Sample usage can be found from here.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/RATIS-1932

How was this patch tested?

This code path is unused now, test will be added when the feature is implemented as per RATIS-1925 and RATIS-1926.

@duongkame
Copy link
Contributor Author

cc. @szetszwo

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

+1 the change looks good.

Comment on lines +26 to +27
* Checker to test whether a zero-copy masharller is available from the versions of gRPC and
* Protobuf.
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we don't have to check it in Ratis since the gRPC version should have the required classes. Anyway, let keep this class for now. We may consider removing it later.

@szetszwo
Copy link
Contributor

szetszwo commented Nov 7, 2023

Although these util classes are not yet used, it is going to be very useful later on. Let's merge them first and change other components to use it.

@szetszwo szetszwo merged commit 12ed004 into apache:master Nov 7, 2023
10 checks passed
symious pushed a commit to symious/ratis that referenced this pull request Mar 29, 2024
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.

2 participants