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

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


The following commit(s) were added to refs/heads/master by this push:
     new 394ecc0fe6 Modify the default value of 
`iot_consensus_cache_window_time_in_ms` to 10s (#8553)
394ecc0fe6 is described below

commit 394ecc0fe6b3801942be8441728689d5be23c57b
Author: ZhangHongYin <[email protected]>
AuthorDate: Wed Dec 21 14:57:14 2022 +0800

    Modify the default value of `iot_consensus_cache_window_time_in_ms` to 10s 
(#8553)
---
 node-commons/src/assembly/resources/conf/iotdb-common.properties | 2 +-
 server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/node-commons/src/assembly/resources/conf/iotdb-common.properties 
b/node-commons/src/assembly/resources/conf/iotdb-common.properties
index d0302b5c77..f2777f76a7 100644
--- a/node-commons/src/assembly/resources/conf/iotdb-common.properties
+++ b/node-commons/src/assembly/resources/conf/iotdb-common.properties
@@ -703,7 +703,7 @@
 # iot_consensus_throttle_threshold_in_byte=53687091200
 
 # Maximum wait time of write cache in IoTConsensus
-# If this value is less than or equal to 0, use the default value 
Long.MAX_VALUE.
+# If this value is less than or equal to 0, use the default value 10 * 1000 ms 
(10s)
 # Datatype: long
 # iot_consensus_cache_window_time_in_ms=-1
 
diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java 
b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
index 9a691b12a4..f163c7fad7 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
@@ -1004,7 +1004,7 @@ public class IoTDBConfig {
   private long throttleThreshold = 50 * 1024 * 1024 * 1024L;
 
   /** Maximum wait time of write cache in IoTConsensus. Unit: ms */
-  private long cacheWindowTimeInMs = 60 * 1000;
+  private long cacheWindowTimeInMs = 10 * 1000;
 
   private long dataRatisConsensusLogAppenderBufferSizeMax = 4 * 1024 * 1024L;
   private long schemaRatisConsensusLogAppenderBufferSizeMax = 4 * 1024 * 1024L;

Reply via email to