You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2020/11/18 12:33:06 UTC
[iotdb] branch master updated: change tsfile size threshold (#2068)
This is an automated email from the ASF dual-hosted git repository.
qiaojialin 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 65b5aa5 change tsfile size threshold (#2068)
65b5aa5 is described below
commit 65b5aa542225a51640b35030875bfe564dc1728f
Author: Haonan <hh...@outlook.com>
AuthorDate: Wed Nov 18 20:22:08 2020 +0800
change tsfile size threshold (#2068)
---
server/src/assembly/resources/conf/iotdb-engine.properties | 4 ++--
server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/src/assembly/resources/conf/iotdb-engine.properties b/server/src/assembly/resources/conf/iotdb-engine.properties
index 54d548b..3e4242e 100644
--- a/server/src/assembly/resources/conf/iotdb-engine.properties
+++ b/server/src/assembly/resources/conf/iotdb-engine.properties
@@ -173,8 +173,8 @@ timestamp_precision=ms
# If it sets a value smaller than 0, use the default value 16777216
wal_buffer_size=16777216
-# When a TsFile's file size (in byte) exceeds this, the TsFile is forced closed. The default threshold is 0.
-tsfile_size_threshold=0
+# When a TsFile's file size (in byte) exceeds this, the TsFile is forced closed.
+tsfile_size_threshold=1
# When a memTable's size (in byte) exceeds this, the memtable is flushed to disk. The default threshold is 1 GB.
memtable_size_threshold=1073741824
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 d838c46..2db5513 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
@@ -306,7 +306,7 @@ public class IoTDBConfig {
/**
* When a TsFile's file size (in byte) exceed this, the TsFile is forced closed.
*/
- private long tsFileSizeThreshold = 512 * 1024 * 1024L;
+ private long tsFileSizeThreshold = 1L;
/**
* When a memTable's size (in byte) exceeds this, the memtable is flushed to disk.