You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2020/11/18 06:11:42 UTC
[iotdb] 01/01: change tsfile size threshold
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch tsfile_size
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 1e0ca5eddaff1f5e2ad5a46115c740011fcb1eb7
Author: HTHou <hh...@outlook.com>
AuthorDate: Wed Nov 18 14:10:15 2020 +0800
change tsfile size threshold
---
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 3814ee7..2079a57 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 256 MB.
memtable_size_threshold=268435456
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 0ae55b6..59e1ae2 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
@@ -274,7 +274,7 @@ public class IoTDBConfig {
/**
* When a TsFile's file size (in byte) exceed this, the TsFile is forced closed.
*/
- private long tsFileSizeThreshold = 0L;
+ private long tsFileSizeThreshold = 1L;
/**
* When a memTable's size (in byte) exceeds this, the memtable is flushed to disk.