This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/dev/1.3 by this push:
     new f78bbdb1da1 Fix ratis byte limit configuration too small
f78bbdb1da1 is described below

commit f78bbdb1da14184c411d497d397c0ac0bebde0e4
Author: Potato <[email protected]>
AuthorDate: Tue Dec 17 11:16:23 2024 +0800

    Fix ratis byte limit configuration too small
    
    Signed-off-by: OneSizeFitQuorum <[email protected]>
---
 .../src/main/java/org/apache/iotdb/consensus/ratis/utils/Utils.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/utils/Utils.java
 
b/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/utils/Utils.java
index 367b330ac3e..bb32631a1b4 100644
--- 
a/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/utils/Utils.java
+++ 
b/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/utils/Utils.java
@@ -310,7 +310,8 @@ public class Utils {
         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());

Reply via email to