Skip to content

Conversation

@szetszwo
Copy link
Contributor

What changes were proposed in this pull request?

Due to a bug, RATIS-2135 requires

  • raft.grpc.message.size.max

to be 1MB larger than

  • raft.server.log.appender.buffer.byte-limit

We must change the OM, SCM and Datanode conf accordingly.

What is the link to the Apache JIRA

HDDS-11320

How was this patch tested?

A new unit test.

Copy link
Contributor

@jojochuang jojochuang left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @szetszwo

RaftServerConfigKeys.Log.Appender.setBufferByteLimit(properties, SizeInBytes.valueOf(logAppenderBufferByteLimit));

// setMessageSizeMax with a different logAppenderBufferByteLimit
Assertions.assertThrows(IllegalStateException.class,
Copy link
Contributor

Choose a reason for hiding this comment

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

but this API does not throw exception.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, I need to update the test.

@jojochuang
Copy link
Contributor

LGTM Merging it.

@jojochuang jojochuang merged commit 37273d1 into apache:master Aug 16, 2024
@szetszwo
Copy link
Contributor Author

@jojochuang , thanks a lot for reviewing and merging this!

xichen01 pushed a commit to xichen01/ozone that referenced this pull request Sep 16, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Sep 18, 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