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:41 UTC

[iotdb] branch tsfile_size created (now 1e0ca5e)

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

haonan pushed a change to branch tsfile_size
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 1e0ca5e  change tsfile size threshold

This branch includes the following new commits:

     new 1e0ca5e  change tsfile size threshold

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: change tsfile size threshold

Posted by ha...@apache.org.
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.