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 8aad6b1014 change back to 1/10
8aad6b1014 is described below
commit 8aad6b101476739f80a8d2ff5a90f40e26a6702a
Author: Jinrui.Zhang <[email protected]>
AuthorDate: Fri Jul 8 17:13:01 2022 +0800
change back to 1/10
---
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 567b33ba9c..50e74ad3e0 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() * 2;
+ (int)
IoTDBDescriptor.getInstance().getConfig().getWalFileSizeThresholdInByte() / 10;
/** 1000 as default batch limit */
private static final int BATCH_LIMIT = 1_000;