You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2023/05/06 10:07:07 UTC
[iotdb] branch master updated: Add config min_cross_compaction_unseq_file_level for cross compaction (#9766)
This is an automated email from the ASF dual-hosted git repository.
xingtanzjr 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 2ac9b5197c6 Add config min_cross_compaction_unseq_file_level for cross compaction (#9766)
2ac9b5197c6 is described below
commit 2ac9b5197c61670e275454f9124e20310478dea4
Author: Zhang.Jinrui <xi...@gmail.com>
AuthorDate: Sat May 6 18:07:01 2023 +0800
Add config min_cross_compaction_unseq_file_level for cross compaction (#9766)
---
node-commons/src/assembly/resources/conf/iotdb-common.properties | 4 ++++
server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java | 5 +++++
2 files changed, 9 insertions(+)
diff --git a/node-commons/src/assembly/resources/conf/iotdb-common.properties b/node-commons/src/assembly/resources/conf/iotdb-common.properties
index 5df61be0a7e..ad523550f1d 100644
--- a/node-commons/src/assembly/resources/conf/iotdb-common.properties
+++ b/node-commons/src/assembly/resources/conf/iotdb-common.properties
@@ -621,6 +621,10 @@ cluster_name=defaultCluster
# Datatype: long, Unit: byte
# max_cross_compaction_candidate_file_size=5368709120
+# The min inner compaction level of unsequence file which can be selected as candidate
+# Datatype: int
+# min_cross_compaction_unseq_file_level=1
+
# If one merge file selection runs for more than this time, it will be ended and its current
# selection will be used as final selection.
# When < 0, it means time is unbounded.
diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
index c8548835dbf..ae7f82f02b2 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
@@ -676,6 +676,11 @@ public class IoTDBDescriptor {
properties.getProperty(
"max_cross_compaction_candidate_file_size",
Long.toString(conf.getMaxCrossCompactionCandidateFileSize()))));
+ conf.setMinCrossCompactionUnseqFileLevel(
+ Integer.parseInt(
+ properties.getProperty(
+ "min_cross_compaction_unseq_file_level",
+ Integer.toString(conf.getMinCrossCompactionUnseqFileLevel()))));
conf.setCompactionWriteThroughputMbPerSec(
Integer.parseInt(