This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch rel/1.0
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/1.0 by this push:
new eaf40ec407 Modify the default value of
`iot_consensus_cache_window_time_in_ms` to 10s (#8553) (#8556)
eaf40ec407 is described below
commit eaf40ec407809e7697ebe596de623df802868c50
Author: ZhangHongYin <[email protected]>
AuthorDate: Wed Dec 21 16:18:25 2022 +0800
Modify the default value of `iot_consensus_cache_window_time_in_ms` to 10s
(#8553) (#8556)
(cherry picked from commit 394ecc0fe6b3801942be8441728689d5be23c57b)
---
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 d932a8e9f3..ade94033b9 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 a105cebb8a..344ca71070 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
@@ -998,7 +998,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;