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:17:51 UTC

[iotdb] branch rel/0.11 updated: change tsfile size threshold (#2066)

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

qiaojialin pushed a commit to branch rel/0.11
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/0.11 by this push:
     new 0376a3d  change tsfile size threshold (#2066)
0376a3d is described below

commit 0376a3d9c04de102a22a617734457206a5521878
Author: Haonan <hh...@outlook.com>
AuthorDate: Wed Nov 18 20:11:55 2020 +0800

    change tsfile size threshold (#2066)
---
 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.