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 2022/11/25 14:41:14 UTC

[iotdb] branch master updated: Update CQ docs (#8171)

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

qiaojialin 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 a4396a7302 Update CQ docs (#8171)
a4396a7302 is described below

commit a4396a73021e94ce5da3ed40d3e192c825014e98
Author: Jackie Tien <ja...@gmail.com>
AuthorDate: Fri Nov 25 22:41:08 2022 +0800

    Update CQ docs (#8171)
---
 docs/UserGuide/Reference/Common-Config-Manual.md   |  9 -------
 .../zh/UserGuide/Reference/Common-Config-Manual.md |  9 -------
 .../resources/conf/iotdb-common.properties         | 11 --------
 .../java/org/apache/iotdb/db/conf/IoTDBConfig.java | 29 ----------------------
 .../org/apache/iotdb/db/conf/IoTDBDescriptor.java  | 14 -----------
 5 files changed, 72 deletions(-)

diff --git a/docs/UserGuide/Reference/Common-Config-Manual.md b/docs/UserGuide/Reference/Common-Config-Manual.md
index e92ee690bb..df0ffaaf14 100644
--- a/docs/UserGuide/Reference/Common-Config-Manual.md
+++ b/docs/UserGuide/Reference/Common-Config-Manual.md
@@ -1127,15 +1127,6 @@ IoTDB common files for ConfigNode and DataNode are under `conf`.
 |   Default   | max(1, the / 2)                                              |
 |  Effective  | After restarting system                                      |
 
-* max\_pending\_continuous\_query\_tasks
-
-|    Name     | max\_pending\_continuous\_query\_tasks                                         |
-| :---------: | :------------------------------------------------------------------------- |
-| Description | Maximum number of continuous query tasks that can be pending for execution |
-|    Type     | int32                                                        |
-|   Default   | 64                                                           |
-|  Effective  | After restarting system                                      |
-
 * continuous\_query\_min\_every\_interval
 
 |    Name     | continuous\_query\_min\_every\_interval                 |
diff --git a/docs/zh/UserGuide/Reference/Common-Config-Manual.md b/docs/zh/UserGuide/Reference/Common-Config-Manual.md
index 1ffd4c36f9..c65f2c926f 100644
--- a/docs/zh/UserGuide/Reference/Common-Config-Manual.md
+++ b/docs/zh/UserGuide/Reference/Common-Config-Manual.md
@@ -1307,15 +1307,6 @@ IoTDB ConfigNode 和 DataNode 的通用配置参数位于 `conf` 目录下。
 
 ### 连续查询配置
 
-* max\_pending\_continuous\_query\_tasks
-
-|     名字     | max\_pending\_continuous\_query\_tasks |
-| :----------: | :--------------------------------- |
-|     描述     | 队列中连续查询最大任务堆积数       |
-|     类型     | int32                              |
-|    默认值    | 64                                 |
-| 改后生效方式 | 重启服务生效                       |
-
 * continuous\_query\_submit\_thread\_count
 
 |     名字     | continuous\_query\_execution\_thread |
diff --git a/node-commons/src/assembly/resources/conf/iotdb-common.properties b/node-commons/src/assembly/resources/conf/iotdb-common.properties
index ba9bad3726..6041db9e7d 100644
--- a/node-commons/src/assembly/resources/conf/iotdb-common.properties
+++ b/node-commons/src/assembly/resources/conf/iotdb-common.properties
@@ -897,17 +897,6 @@
 ### Continuous Query Configuration
 ####################
 
-# Maximum number of continuous query tasks that can be pending for execution. When <= 0, the value is
-# 64 by default.
-# Datatype: int
-# max_pending_continuous_query_tasks=64
-
-# The size of log buffer for every CQ management operation plan. If the size of a CQ
-# management operation plan is larger than this parameter, the CQ management operation plan
-# will be rejected by CQManager.
-# Datatype: int
-# cqlog_buffer_size=1048576
-
 # The number of threads in the scheduled thread pool that submit continuous query tasks periodically
 # Datatype: int
 # continuous_query_submit_thread_count=2
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 98bafe5c69..dc11dc1460 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
@@ -671,25 +671,12 @@ public class IoTDBConfig {
   private int continuousQueryThreadNum =
       Math.max(1, Runtime.getRuntime().availableProcessors() / 2);
 
-  /*
-   * Maximum number of continuous query tasks that can be pending for execution. When <= 0, the value is
-   * 64 by default.
-   */
-  private int maxPendingContinuousQueryTasks = 64;
-
   /*
    * Minimum every interval to perform continuous query.
    * The every interval of continuous query instances should not be lower than this limit.
    */
   private long continuousQueryMinimumEveryInterval = 1000;
 
-  /**
-   * The size of log buffer for every CQ management operation plan. If the size of a CQ management
-   * operation plan is larger than this parameter, the CQ management operation plan will be rejected
-   * by CQManager. Unit: byte
-   */
-  private int cqlogBufferSize = 1024 * 1024;
-
   /**
    * The maximum number of rows can be processed in insert-tablet-plan when executing select-into
    * statements.
@@ -1894,14 +1881,6 @@ public class IoTDBConfig {
     this.continuousQueryThreadNum = continuousQueryThreadNum;
   }
 
-  public int getMaxPendingContinuousQueryTasks() {
-    return maxPendingContinuousQueryTasks;
-  }
-
-  public void setMaxPendingContinuousQueryTasks(int maxPendingContinuousQueryTasks) {
-    this.maxPendingContinuousQueryTasks = maxPendingContinuousQueryTasks;
-  }
-
   public long getContinuousQueryMinimumEveryInterval() {
     return continuousQueryMinimumEveryInterval;
   }
@@ -1910,14 +1889,6 @@ public class IoTDBConfig {
     this.continuousQueryMinimumEveryInterval = minimumEveryInterval;
   }
 
-  public int getCqlogBufferSize() {
-    return cqlogBufferSize;
-  }
-
-  public void setCqlogBufferSize(int cqlogBufferSize) {
-    this.cqlogBufferSize = cqlogBufferSize;
-  }
-
   public void setSelectIntoInsertTabletPlanRowLimit(int selectIntoInsertTabletPlanRowLimit) {
     this.selectIntoInsertTabletPlanRowLimit = selectIntoInsertTabletPlanRowLimit;
   }
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 855572a43e..a085ff229c 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
@@ -1827,24 +1827,10 @@ public class IoTDBDescriptor {
       conf.setContinuousQueryThreadNum(Runtime.getRuntime().availableProcessors() / 2);
     }
 
-    conf.setMaxPendingContinuousQueryTasks(
-        Integer.parseInt(
-            properties.getProperty(
-                "max_pending_continuous_query_tasks",
-                Integer.toString(conf.getMaxPendingContinuousQueryTasks()))));
-    if (conf.getMaxPendingContinuousQueryTasks() <= 0) {
-      conf.setMaxPendingContinuousQueryTasks(64);
-    }
-
     conf.setContinuousQueryMinimumEveryInterval(
         DateTimeUtils.convertDurationStrToLong(
             properties.getProperty("continuous_query_minimum_every_interval", "1s"),
             conf.getTimestampPrecision()));
-
-    conf.setCqlogBufferSize(
-        Integer.parseInt(
-            properties.getProperty(
-                "cqlog_buffer_size", Integer.toString(conf.getCqlogBufferSize()))));
   }
 
   public void loadClusterProps(Properties properties) {