You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2022/07/08 08:16:02 UTC

[iotdb] branch multileader_restart_test updated: turn up buffer size of wal reader

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

xingtanzjr pushed a commit to branch multileader_restart_test
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/multileader_restart_test by this push:
     new 08dd017601 turn up buffer size of wal reader
08dd017601 is described below

commit 08dd017601227df075f738d5e10e9eeb8291ade0
Author: Jinrui.Zhang <xi...@gmail.com>
AuthorDate: Fri Jul 8 16:15:51 2022 +0800

    turn up buffer size of wal reader
---
 server/src/main/java/org/apache/iotdb/db/wal/io/WALReader.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/wal/io/WALReader.java b/server/src/main/java/org/apache/iotdb/db/wal/io/WALReader.java
index c4c7a95cc1..197e231728 100644
--- a/server/src/main/java/org/apache/iotdb/db/wal/io/WALReader.java
+++ b/server/src/main/java/org/apache/iotdb/db/wal/io/WALReader.java
@@ -47,7 +47,7 @@ public class WALReader implements Closeable {
   private static final Logger logger = LoggerFactory.getLogger(WALReader.class);
   /** 1/10 of .wal file size as buffer size */
   private static final int STREAM_BUFFER_SIZE =
-      (int) IoTDBDescriptor.getInstance().getConfig().getWalFileSizeThresholdInByte() / 10;
+      (int) IoTDBDescriptor.getInstance().getConfig().getWalFileSizeThresholdInByte() * 2;
   /** 1000 as default batch limit */
   private static final int BATCH_LIMIT = 1_000;