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-2096. Add a conf to enable/disable zero copy. #1099

Merged
merged 3 commits into from
May 24, 2024

Conversation

duongkame
Copy link
Contributor

What changes were proposed in this pull request?

Add a conf to enable/disable zero copy.

What is the link to the Apache JIRA

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

How was this patch tested?

CI.

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.

@duongkame , thanks for working on this! Please see the comments inlined.

Sorry that I asked to remove the conf earlier!

@@ -170,6 +172,10 @@ RaftPeerId getId() {

ServerServiceDefinition bindServiceWithZeroCopy() {
ServerServiceDefinition orig = super.bindService();
if (!zeroCopyEnabled) {
LOG.info("Zero copy is disabled.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Print also the id:

      LOG.info("{}: Zero copy is disabled.", getId());

@@ -241,6 +244,10 @@ RaftPeerId getId() {

ServerServiceDefinition bindServiceWithZeroCopy() {
ServerServiceDefinition orig = super.bindService();
if (!zeroCopyEnabled) {
LOG.info("Zero copy is disabled.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Print also the id:

      LOG.info("{}: Zero copy is disabled.", getId());

@duongkame
Copy link
Contributor Author

Thanks for the review @szetszwo .

@duongkame duongkame marked this pull request as ready for review May 24, 2024 18:34
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.

@szetszwo szetszwo merged commit 26385f3 into apache:master May 24, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants