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 2021/06/15 04:19:46 UTC

[iotdb] branch rel/0.12 updated: change default tsfile_size_threshold=1

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

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


The following commit(s) were added to refs/heads/rel/0.12 by this push:
     new f42aa84  change default tsfile_size_threshold=1
f42aa84 is described below

commit f42aa840e18bdb4c968c0161b66d88e8bd79fa0b
Author: qiaojialin <64...@qq.com>
AuthorDate: Tue Jun 15 12:19:10 2021 +0800

    change default tsfile_size_threshold=1
---
 server/src/assembly/resources/conf/iotdb-engine.properties     | 2 +-
 server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/assembly/resources/conf/iotdb-engine.properties b/server/src/assembly/resources/conf/iotdb-engine.properties
index ae7a18e..d60326d 100644
--- a/server/src/assembly/resources/conf/iotdb-engine.properties
+++ b/server/src/assembly/resources/conf/iotdb-engine.properties
@@ -185,7 +185,7 @@ timestamp_precision=ms
 
 # When a TsFile's file size (in byte) exceeds this, the TsFile is forced closed.
 # It may cause memTable size smaller if it is a large value
-# tsfile_size_threshold=100000000
+# tsfile_size_threshold=1
 
 # Size of log buffer in each metadata operation plan(in byte).
 # If the size of a metadata operation plan is larger than this parameter, then it will be rejected by MManager
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 e3f39f6..7f06a44 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
@@ -266,7 +266,7 @@ public class IoTDBConfig {
   private String indexRootFolder = "data" + File.separator + "index";
 
   /** When a TsFile's file size (in byte) exceed this, the TsFile is forced closed. */
-  private long tsFileSizeThreshold = 100000000L;
+  private long tsFileSizeThreshold = 1L;
 
   /** When a memTable's size (in byte) exceeds this, the memtable is flushed to disk. */
   private long memtableSizeThreshold = 1024 * 1024 * 1024L;