Skip to content

Commit

Permalink
Fix ratis byte limit configuration too small (#14449)
Browse files Browse the repository at this point in the history
Signed-off-by: OneSizeFitQuorum <[email protected]>
  • Loading branch information
OneSizeFitsQuorum authored Dec 17, 2024
1 parent d3f6392 commit 5f7b570
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ public static void initRatisConfig(RaftProperties properties, RatisConfig config
properties, RaftServerConfigKeys.Log.CorruptionPolicy.WARN_AND_RETURN);

RaftServerConfigKeys.Write.setByteLimit(
properties, config.getLeaderLogAppender().getBufferByteLimit());
properties,
SizeInBytes.valueOf(config.getLeaderLogAppender().getBufferByteLimit().getSize() * 10));

RaftServerConfigKeys.Log.setQueueByteLimit(
properties, config.getLeaderLogAppender().getBufferByteLimit());
Expand Down

0 comments on commit 5f7b570

Please sign in to comment.