未验证 提交 4be0aaaa 编写于 作者: W William Song 提交者: GitHub

[RatisConsensus] use warn_and_return to enable cluster restart when log...

[RatisConsensus] use warn_and_return to enable cluster restart when log corruption can be ignored (#11036)
上级 815c21b3
......@@ -269,6 +269,8 @@ public class Utils {
RaftServerConfigKeys.Log.setForceSyncNum(properties, config.getLog().getForceSyncNum());
RaftServerConfigKeys.Log.setUnsafeFlushEnabled(
properties, config.getLog().isUnsafeFlushEnabled());
RaftServerConfigKeys.Log.setCorruptionPolicy(
properties, RaftServerConfigKeys.Log.CorruptionPolicy.WARN_AND_RETURN);
RaftServerConfigKeys.Log.Appender.setBufferByteLimit(
properties, config.getLeaderLogAppender().getBufferByteLimit());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册