You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2026/07/05 00:50:27 UTC

(iotdb) 01/01: merge master

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

JackieTien97 pushed a commit to branch ty/locale-zh
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit d327e792b9e4ab21c481bcd830b59a2b1f50fc11
Merge: d03f9ea8c73 453cb6e51fd
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Sun Jul 5 08:49:45 2026 +0800

    merge master

 .codex/hooks.json                                  |   17 +
 .github/scripts/package-client-cpp-manylinux228.sh |   13 +
 .github/workflows/client-cpp-package.yml           |   52 +-
 .github/workflows/compile-check.yml                |   67 -
 .github/workflows/daily-it.yml                     |    4 +-
 .github/workflows/daily-ut.yml                     |   15 +-
 .github/workflows/multi-language-client.yml        |  109 +-
 .github/workflows/pipe-it.yml                      |   11 +
 .gitignore                                         |    2 +-
 CLAUDE.md                                          |    4 +-
 CONTRIBUTING.md                                    |    2 +-
 Jenkinsfile                                        |    2 +-
 LICENSE-binary                                     |   45 +-
 README.md                                          |    4 +-
 README_ZH.md                                       |    4 +-
 code-coverage/pom.xml                              |    2 +-
 dependencies.json                                  |  318 +--
 distribution/pom.xml                               |   16 +-
 LICENSE-binary => dn1/LICENSE                      |   45 +-
 dn1/NOTICE                                         |   24 +
 README.md => dn1/README.md                         |    4 +-
 README_ZH.md => dn1/README_ZH.md                   |    4 +-
 dn1/RELEASE_NOTES.md                               | 2053 ++++++++++++++++++++
 {scripts => dn1}/conf/confignode-env.sh            |   61 +-
 {scripts => dn1}/conf/datanode-env.sh              |   70 +-
 dn1/conf/iotdb-cluster.properties                  |   33 +
 dn1/conf/iotdb-common.sh                           |  395 ++++
 dn1/conf/iotdb-system.properties                   |   72 +
 .../conf/iotdb-system.properties.template          |  123 +-
 dn1/conf/jmx.access                                |   22 +
 dn1/conf/jmx.password                              |   22 +
 dn1/conf/logback-backup.xml                        |   49 +
 dn1/conf/logback-confignode.xml                    |  112 ++
 dn1/conf/logback-datanode.xml                      |  270 +++
 example/mqtt/pom.xml => dn1/conf/logback-tool.xml  |   31 +-
 dn1/conf/windows/confignode-env.bat                |  165 ++
 dn1/conf/windows/datanode-env.bat                  |  196 ++
 dn1/conf/windows/iotdb-common.bat                  |   24 +
 dn1/licenses/CDDL License 1.1                      |   90 +
 dn1/licenses/Eclipse Public License 1.0 (EPL-1.0)  |   83 +
 .../Eclipse Public License version 2.0 (EPL-2.0)   |   81 +
 dn1/licenses/The 2-Clause BSD License              |   14 +
 dn1/licenses/The 3-Clause BSD License              |   16 +
 dn1/licenses/The MIT License (QOS.ch)              |   21 +
 dn1/licenses/The MIT License (progressbar)         |   21 +
 dn1/sbin/cluster/start-all.sh                      |   82 +
 dn1/sbin/cluster/stop-all.sh                       |   80 +
 {scripts => dn1}/sbin/start-cli.sh                 |   13 +-
 dn1/sbin/start-confignode.sh                       |  177 ++
 dn1/sbin/start-datanode.sh                         |  267 +++
 dn1/sbin/start-standalone.sh                       |   45 +
 dn1/sbin/stop-confignode.sh                        |   90 +
 dn1/sbin/stop-datanode.sh                          |   91 +
 dn1/sbin/stop-standalone.sh                        |   67 +
 dn1/sbin/windows/start-cli-table.bat               |   38 +
 {scripts => dn1}/sbin/windows/start-cli.bat        |   23 +-
 {scripts => dn1}/sbin/windows/start-confignode.bat |   20 +-
 {scripts => dn1}/sbin/windows/start-datanode.bat   |   19 +-
 dn1/sbin/windows/start-standalone.bat              |   48 +
 dn1/sbin/windows/stop-confignode.bat               |   65 +
 dn1/sbin/windows/stop-datanode.bat                 |   69 +
 dn1/sbin/windows/stop-standalone.bat               |   43 +
 dn1/tools/export-data.sh                           |   61 +
 dn1/tools/export-tsfile.sh                         |   61 +
 dn1/tools/import-data.sh                           |   61 +
 dn1/tools/ops/backup.sh                            |  139 ++
 dn1/tools/ops/collect-info.sh                      |  324 +++
 dn1/tools/ops/daemon-confignode.sh                 |  109 ++
 dn1/tools/ops/daemon-datanode.sh                   |  109 ++
 dn1/tools/ops/destroy-all.sh                       |  100 +
 dn1/tools/ops/destroy-confignode.sh                |   59 +
 dn1/tools/ops/destroy-datanode.sh                  |   77 +
 {scripts => dn1}/tools/ops/health_check.sh         |    2 +-
 dn1/tools/schema/export-schema.sh                  |   59 +
 dn1/tools/schema/import-schema.sh                  |   59 +
 dn1/tools/schema/print-pb-tree-file.sh             |   53 +
 dn1/tools/schema/print-schema-log.sh               |   53 +
 .../check-overlap-sequence-files-and-repair.sh     |   53 +
 dn1/tools/tsfile/overlap-statistic-tool.sh         |   53 +
 dn1/tools/tsfile/print-iotdb-data-dir.sh           |   54 +
 dn1/tools/tsfile/print-tsfile-resource-files.sh    |   62 +
 dn1/tools/tsfile/print-tsfile.sh                   |   56 +
 dn1/tools/tsfile/reset-resource-pipe-statistics.sh |   51 +
 .../tools/tsfile/settle-tsfile.sh                  |   55 +-
 .../tools/tsfile/split-tsfile-tool.sh              |   70 +-
 dn1/tools/tsfile/validate-tsfile.sh                |   53 +
 dn1/tools/wal/print-wal.sh                         |   54 +
 dn1/tools/windows/export-data.bat                  |   62 +
 dn1/tools/windows/export-tsfile.bat                |   62 +
 dn1/tools/windows/import-data.bat                  |   63 +
 dn1/tools/windows/ops/backup.bat                   |  138 ++
 dn1/tools/windows/ops/collect-info.bat             |  273 +++
 dn1/tools/windows/ops/destroy-all.bat              |   42 +
 dn1/tools/windows/ops/destroy-confignode.bat       |   90 +
 dn1/tools/windows/ops/destroy-datanode.bat         |  229 +++
 .../tools/windows/ops/health_check.bat             |    4 +-
 dn1/tools/windows/schema/export-schema.bat         |   62 +
 dn1/tools/windows/schema/import-schema.bat         |   63 +
 dn1/tools/windows/schema/print-pb-tree-file.bat    |   62 +
 dn1/tools/windows/schema/print-schema-log.bat      |   62 +
 .../check-overlap-sequence-files-and-repair.bat    |   62 +
 .../windows/tsfile/overlap-statistic-tool.bat      |   62 +
 dn1/tools/windows/tsfile/print-iotdb-data-dir.bat  |   62 +
 .../windows/tsfile/print-tsfile-resource-files.bat |   61 +
 dn1/tools/windows/tsfile/print-tsfile.bat          |   67 +
 .../tsfile/reset-resource-pipe-statistics.bat      |   59 +
 dn1/tools/windows/tsfile/settle-tsfile.bat         |   62 +
 dn1/tools/windows/tsfile/split-tsfile-tool.bat     |   62 +
 dn1/tools/windows/tsfile/validate-tsfile.bat       |   62 +
 dn1/tools/windows/wal/print-wal.bat                |   67 +
 LICENSE-binary => dn2/LICENSE                      |   45 +-
 dn2/NOTICE                                         |   24 +
 README.md => dn2/README.md                         |    4 +-
 README_ZH.md => dn2/README_ZH.md                   |    4 +-
 dn2/RELEASE_NOTES.md                               | 2053 ++++++++++++++++++++
 {scripts => dn2}/conf/confignode-env.sh            |   61 +-
 {scripts => dn2}/conf/datanode-env.sh              |   70 +-
 dn2/conf/iotdb-cluster.properties                  |   33 +
 dn2/conf/iotdb-common.sh                           |  395 ++++
 dn2/conf/iotdb-system.properties                   |   72 +
 .../conf/iotdb-system.properties.template          |  123 +-
 dn2/conf/jmx.access                                |   22 +
 dn2/conf/jmx.password                              |   22 +
 dn2/conf/logback-backup.xml                        |   49 +
 dn2/conf/logback-confignode.xml                    |  112 ++
 dn2/conf/logback-datanode.xml                      |  270 +++
 example/mqtt/pom.xml => dn2/conf/logback-tool.xml  |   31 +-
 dn2/conf/windows/confignode-env.bat                |  165 ++
 dn2/conf/windows/datanode-env.bat                  |  196 ++
 dn2/conf/windows/iotdb-common.bat                  |   24 +
 dn2/licenses/CDDL License 1.1                      |   90 +
 dn2/licenses/Eclipse Public License 1.0 (EPL-1.0)  |   83 +
 .../Eclipse Public License version 2.0 (EPL-2.0)   |   81 +
 dn2/licenses/The 2-Clause BSD License              |   14 +
 dn2/licenses/The 3-Clause BSD License              |   16 +
 dn2/licenses/The MIT License (QOS.ch)              |   21 +
 dn2/licenses/The MIT License (progressbar)         |   21 +
 dn2/sbin/cluster/start-all.sh                      |   82 +
 dn2/sbin/cluster/stop-all.sh                       |   80 +
 {scripts => dn2}/sbin/start-cli.sh                 |   13 +-
 dn2/sbin/start-confignode.sh                       |  177 ++
 dn2/sbin/start-datanode.sh                         |  267 +++
 dn2/sbin/start-standalone.sh                       |   45 +
 dn2/sbin/stop-confignode.sh                        |   90 +
 dn2/sbin/stop-datanode.sh                          |   91 +
 dn2/sbin/stop-standalone.sh                        |   67 +
 dn2/sbin/windows/start-cli-table.bat               |   38 +
 {scripts => dn2}/sbin/windows/start-cli.bat        |   23 +-
 {scripts => dn2}/sbin/windows/start-confignode.bat |   20 +-
 {scripts => dn2}/sbin/windows/start-datanode.bat   |   19 +-
 dn2/sbin/windows/start-standalone.bat              |   48 +
 dn2/sbin/windows/stop-confignode.bat               |   65 +
 dn2/sbin/windows/stop-datanode.bat                 |   69 +
 dn2/sbin/windows/stop-standalone.bat               |   43 +
 dn2/tools/export-data.sh                           |   61 +
 dn2/tools/export-tsfile.sh                         |   61 +
 dn2/tools/import-data.sh                           |   61 +
 dn2/tools/ops/backup.sh                            |  139 ++
 dn2/tools/ops/collect-info.sh                      |  324 +++
 dn2/tools/ops/daemon-confignode.sh                 |  109 ++
 dn2/tools/ops/daemon-datanode.sh                   |  109 ++
 dn2/tools/ops/destroy-all.sh                       |  100 +
 dn2/tools/ops/destroy-confignode.sh                |   59 +
 dn2/tools/ops/destroy-datanode.sh                  |   77 +
 {scripts => dn2}/tools/ops/health_check.sh         |    2 +-
 dn2/tools/schema/export-schema.sh                  |   59 +
 dn2/tools/schema/import-schema.sh                  |   59 +
 dn2/tools/schema/print-pb-tree-file.sh             |   53 +
 dn2/tools/schema/print-schema-log.sh               |   53 +
 .../check-overlap-sequence-files-and-repair.sh     |   53 +
 dn2/tools/tsfile/overlap-statistic-tool.sh         |   53 +
 dn2/tools/tsfile/print-iotdb-data-dir.sh           |   54 +
 dn2/tools/tsfile/print-tsfile-resource-files.sh    |   62 +
 dn2/tools/tsfile/print-tsfile.sh                   |   56 +
 dn2/tools/tsfile/reset-resource-pipe-statistics.sh |   51 +
 .../tools/tsfile/settle-tsfile.sh                  |   55 +-
 .../tools/tsfile/split-tsfile-tool.sh              |   70 +-
 dn2/tools/tsfile/validate-tsfile.sh                |   53 +
 dn2/tools/wal/print-wal.sh                         |   54 +
 dn2/tools/windows/export-data.bat                  |   62 +
 dn2/tools/windows/export-tsfile.bat                |   62 +
 dn2/tools/windows/import-data.bat                  |   63 +
 dn2/tools/windows/ops/backup.bat                   |  138 ++
 dn2/tools/windows/ops/collect-info.bat             |  273 +++
 dn2/tools/windows/ops/destroy-all.bat              |   42 +
 dn2/tools/windows/ops/destroy-confignode.bat       |   90 +
 dn2/tools/windows/ops/destroy-datanode.bat         |  229 +++
 .../tools/windows/ops/health_check.bat             |    4 +-
 dn2/tools/windows/schema/export-schema.bat         |   62 +
 dn2/tools/windows/schema/import-schema.bat         |   63 +
 dn2/tools/windows/schema/print-pb-tree-file.bat    |   62 +
 dn2/tools/windows/schema/print-schema-log.bat      |   62 +
 .../check-overlap-sequence-files-and-repair.bat    |   62 +
 .../windows/tsfile/overlap-statistic-tool.bat      |   62 +
 dn2/tools/windows/tsfile/print-iotdb-data-dir.bat  |   62 +
 .../windows/tsfile/print-tsfile-resource-files.bat |   61 +
 dn2/tools/windows/tsfile/print-tsfile.bat          |   67 +
 .../tsfile/reset-resource-pipe-statistics.bat      |   59 +
 dn2/tools/windows/tsfile/settle-tsfile.bat         |   62 +
 dn2/tools/windows/tsfile/split-tsfile-tool.bat     |   62 +
 dn2/tools/windows/tsfile/validate-tsfile.bat       |   62 +
 dn2/tools/windows/wal/print-wal.bat                |   67 +
 LICENSE-binary => dn3/LICENSE                      |   45 +-
 dn3/NOTICE                                         |   24 +
 README.md => dn3/README.md                         |    4 +-
 README_ZH.md => dn3/README_ZH.md                   |    4 +-
 dn3/RELEASE_NOTES.md                               | 2053 ++++++++++++++++++++
 {scripts => dn3}/conf/confignode-env.sh            |   61 +-
 {scripts => dn3}/conf/datanode-env.sh              |   70 +-
 dn3/conf/iotdb-cluster.properties                  |   33 +
 dn3/conf/iotdb-common.sh                           |  395 ++++
 dn3/conf/iotdb-system.properties                   |   72 +
 .../conf/iotdb-system.properties.template          |  123 +-
 dn3/conf/jmx.access                                |   22 +
 dn3/conf/jmx.password                              |   22 +
 dn3/conf/logback-backup.xml                        |   49 +
 dn3/conf/logback-confignode.xml                    |  112 ++
 dn3/conf/logback-datanode.xml                      |  270 +++
 example/mqtt/pom.xml => dn3/conf/logback-tool.xml  |   31 +-
 dn3/conf/windows/confignode-env.bat                |  165 ++
 dn3/conf/windows/datanode-env.bat                  |  196 ++
 dn3/conf/windows/iotdb-common.bat                  |   24 +
 dn3/licenses/CDDL License 1.1                      |   90 +
 dn3/licenses/Eclipse Public License 1.0 (EPL-1.0)  |   83 +
 .../Eclipse Public License version 2.0 (EPL-2.0)   |   81 +
 dn3/licenses/The 2-Clause BSD License              |   14 +
 dn3/licenses/The 3-Clause BSD License              |   16 +
 dn3/licenses/The MIT License (QOS.ch)              |   21 +
 dn3/licenses/The MIT License (progressbar)         |   21 +
 dn3/sbin/cluster/start-all.sh                      |   82 +
 dn3/sbin/cluster/stop-all.sh                       |   80 +
 {scripts => dn3}/sbin/start-cli.sh                 |   13 +-
 dn3/sbin/start-confignode.sh                       |  177 ++
 dn3/sbin/start-datanode.sh                         |  267 +++
 dn3/sbin/start-standalone.sh                       |   45 +
 dn3/sbin/stop-confignode.sh                        |   90 +
 dn3/sbin/stop-datanode.sh                          |   91 +
 dn3/sbin/stop-standalone.sh                        |   67 +
 dn3/sbin/windows/start-cli-table.bat               |   38 +
 {scripts => dn3}/sbin/windows/start-cli.bat        |   23 +-
 {scripts => dn3}/sbin/windows/start-confignode.bat |   20 +-
 {scripts => dn3}/sbin/windows/start-datanode.bat   |   19 +-
 dn3/sbin/windows/start-standalone.bat              |   48 +
 dn3/sbin/windows/stop-confignode.bat               |   65 +
 dn3/sbin/windows/stop-datanode.bat                 |   69 +
 dn3/sbin/windows/stop-standalone.bat               |   43 +
 dn3/tools/export-data.sh                           |   61 +
 dn3/tools/export-tsfile.sh                         |   61 +
 dn3/tools/import-data.sh                           |   61 +
 dn3/tools/ops/backup.sh                            |  139 ++
 dn3/tools/ops/collect-info.sh                      |  324 +++
 dn3/tools/ops/daemon-confignode.sh                 |  109 ++
 dn3/tools/ops/daemon-datanode.sh                   |  109 ++
 dn3/tools/ops/destroy-all.sh                       |  100 +
 dn3/tools/ops/destroy-confignode.sh                |   59 +
 dn3/tools/ops/destroy-datanode.sh                  |   77 +
 {scripts => dn3}/tools/ops/health_check.sh         |    2 +-
 dn3/tools/schema/export-schema.sh                  |   59 +
 dn3/tools/schema/import-schema.sh                  |   59 +
 dn3/tools/schema/print-pb-tree-file.sh             |   53 +
 dn3/tools/schema/print-schema-log.sh               |   53 +
 .../check-overlap-sequence-files-and-repair.sh     |   53 +
 dn3/tools/tsfile/overlap-statistic-tool.sh         |   53 +
 dn3/tools/tsfile/print-iotdb-data-dir.sh           |   54 +
 dn3/tools/tsfile/print-tsfile-resource-files.sh    |   62 +
 dn3/tools/tsfile/print-tsfile.sh                   |   56 +
 dn3/tools/tsfile/reset-resource-pipe-statistics.sh |   51 +
 .../tools/tsfile/settle-tsfile.sh                  |   55 +-
 .../tools/tsfile/split-tsfile-tool.sh              |   70 +-
 dn3/tools/tsfile/validate-tsfile.sh                |   53 +
 dn3/tools/wal/print-wal.sh                         |   54 +
 dn3/tools/windows/export-data.bat                  |   62 +
 dn3/tools/windows/export-tsfile.bat                |   62 +
 dn3/tools/windows/import-data.bat                  |   63 +
 dn3/tools/windows/ops/backup.bat                   |  138 ++
 dn3/tools/windows/ops/collect-info.bat             |  273 +++
 dn3/tools/windows/ops/destroy-all.bat              |   42 +
 dn3/tools/windows/ops/destroy-confignode.bat       |   90 +
 dn3/tools/windows/ops/destroy-datanode.bat         |  229 +++
 .../tools/windows/ops/health_check.bat             |    4 +-
 dn3/tools/windows/schema/export-schema.bat         |   62 +
 dn3/tools/windows/schema/import-schema.bat         |   63 +
 dn3/tools/windows/schema/print-pb-tree-file.bat    |   62 +
 dn3/tools/windows/schema/print-schema-log.bat      |   62 +
 .../check-overlap-sequence-files-and-repair.bat    |   62 +
 .../windows/tsfile/overlap-statistic-tool.bat      |   62 +
 dn3/tools/windows/tsfile/print-iotdb-data-dir.bat  |   62 +
 .../windows/tsfile/print-tsfile-resource-files.bat |   61 +
 dn3/tools/windows/tsfile/print-tsfile.bat          |   67 +
 .../tsfile/reset-resource-pipe-statistics.bat      |   59 +
 dn3/tools/windows/tsfile/settle-tsfile.bat         |   62 +
 dn3/tools/windows/tsfile/split-tsfile-tool.bat     |   62 +
 dn3/tools/windows/tsfile/validate-tsfile.bat       |   62 +
 dn3/tools/windows/wal/print-wal.bat                |   67 +
 docker/ReadMe.md                                   |    2 +-
 example/jdbc/pom.xml                               |    6 +-
 example/mqtt-customize/pom.xml                     |    2 +-
 example/mqtt/pom.xml                               |    2 +-
 example/pipe-count-point-processor/pom.xml         |    6 +-
 example/pipe-opc-ua-sink/pom.xml                   |    2 +-
 example/pom.xml                                    |    6 +-
 example/rest-java-example/pom.xml                  |    2 +-
 example/schema/pom.xml                             |    2 +-
 example/session/pom.xml                            |    2 +-
 example/subscription/pom.xml                       |    2 +-
 example/trigger/pom.xml                            |    2 +-
 example/udf/pom.xml                                |    2 +-
 external-service-impl/mqtt/pom.xml                 |   16 +-
 external-service-impl/pom.xml                      |    8 +-
 external-service-impl/rest-openapi/pom.xml         |   30 +-
 external-service-impl/rest/pom.xml                 |   50 +-
 .../java/org/apache/iotdb/rest/RestService.java    |   17 +-
 .../rest/protocol/filter/ApiOriginFilter.java      |   15 +-
 .../rest/protocol/filter/AuthorizationFilter.java  |   36 +-
 .../rest/protocol/filter/BasicSecurityContext.java |    2 +-
 .../protocol/handler/AuthorizationHandler.java     |    4 +-
 .../rest/protocol/impl/PingApiServiceImpl.java     |    4 +-
 .../table/v1/handler/ExceptionHandler.java         |    2 +-
 .../table/v1/handler/QueryDataSetHandler.java      |    2 +-
 .../protocol/table/v1/impl/RestApiServiceImpl.java |    4 +-
 .../rest/protocol/v1/handler/ExceptionHandler.java |    2 +-
 .../protocol/v1/handler/QueryDataSetHandler.java   |    2 +-
 .../protocol/v1/impl/GrafanaApiServiceImpl.java    |    4 +-
 .../rest/protocol/v1/impl/RestApiServiceImpl.java  |    4 +-
 .../rest/protocol/v2/handler/ExceptionHandler.java |    2 +-
 .../rest/protocol/v2/handler/FastLastHandler.java  |    2 +-
 .../protocol/v2/handler/QueryDataSetHandler.java   |    3 +-
 .../protocol/v2/impl/GrafanaApiServiceImpl.java    |    4 +-
 .../rest/protocol/v2/impl/RestApiServiceImpl.java  |    4 +-
 integration-test/pom.xml                           |   42 +-
 .../iotdblocal/CreateTableProbeFunction.java       |   13 +-
 .../DeviceIdListInProcessTableFunction.java        |  131 ++
 .../iotdblocal/DeviceIdListTableFunction.java      |  142 ++
 .../DeviceNameEnrichBeforeStartTableFunction.java  |  144 ++
 .../DeviceNameEnrichInProcessTableFunction.java    |  139 ++
 .../relational/iotdblocal/DeviceNameFunction.java  |   77 +
 .../iotdblocal/DeviceSummaryFunction.java          |   98 +
 .../iotdblocal/DeviceSummaryNoCloseFunction.java   |   93 +
 .../iotdblocal/DropTableProbeFunction.java         |   13 +-
 .../relational/iotdblocal/InsertProbeFunction.java |   13 +-
 .../iotdblocal/IoTDBLocalLogAggregateFunction.java |  133 ++
 .../iotdblocal/IoTDBLocalLogFunction.java          |   71 +
 .../relational/iotdblocal/IoTDBLocalLogHelper.java |   93 +
 .../iotdblocal/IoTDBLocalLogTableFunction.java     |  134 ++
 ...lQueryUdafAtBeforeDestroyAggregateFunction.java |  101 +
 ...calQueryUdafAtBeforeStartAggregateFunction.java |  111 ++
 .../LocalQueryUdafInAddInputAggregateFunction.java |  123 ++
 ...alQueryUdafInCombineStateAggregateFunction.java |  123 ++
 ...calQueryUdafInOutputFinalAggregateFunction.java |  104 +
 .../iotdblocal/MutatingQueryProbeFunction.java     |   54 +
 .../iotdblocal/SecretTableQueryFunction.java       |   57 +
 .../org/apache/iotdb/it/env/MultiEnvFactory.java   |    1 +
 .../iotdb/it/env/cluster/config/MppBaseConfig.java |    7 +-
 .../it/env/cluster/config/MppCommonConfig.java     |   74 +-
 .../it/env/cluster/config/MppDataNodeConfig.java   |   37 +
 .../env/cluster/config/MppSharedCommonConfig.java  |   76 +-
 .../org/apache/iotdb/it/env/cluster/env/AIEnv.java |   28 +-
 .../iotdb/it/env/cluster/env/AbstractEnv.java      |  450 +++--
 .../iotdb/it/env/cluster/node/AINodeStarter.java   |   84 +
 .../iotdb/it/env/cluster/node/DataNodeWrapper.java |    2 -
 .../it/env/remote/config/RemoteCommonConfig.java   |   57 +-
 .../it/env/remote/config/RemoteDataNodeConfig.java |   27 +
 .../org/apache/iotdb/it/utils/TsFileGenerator.java |    6 +-
 .../java/org/apache/iotdb/itbase/env/BaseEnv.java  |   10 +
 .../org/apache/iotdb/itbase/env/CommonConfig.java  |   25 +-
 .../apache/iotdb/itbase/env/DataNodeConfig.java    |   12 +
 .../itbase/runtime/ParallelRequestDelegate.java    |   13 +-
 .../iotdb/cli/it/ExplainJsonCliOutputIT.java       |  345 ++++
 .../it/database/IoTDBDatabaseRegionControlIT.java  |   18 +-
 ...oTDBMultiDBRegionGroupLeaderDistributionIT.java |    1 -
 .../IoTDBPerDatabaseRegionGroupAllocationIT.java   |    8 +-
 .../load/IoTDBRegionGroupLeaderDistributionIT.java |    1 -
 ...ataPartitionTableIntegrityCheckProcedureIT.java |   36 +
 .../partition/IoTDBPartitionInheritStrategyIT.java |    2 +-
 .../partition/IoTDBPartitionShuffleStrategyIT.java |    2 +-
 .../IoTDBRegionMigrateITFrameworkForRatis.java}    |   26 +-
 ...IoTDBRegionOperationReliabilityITFramework.java |  202 +-
 .../commit/IoTDBMigrateMultiRegionForIoTV1IT.java  |  213 ++
 .../IoTDBRegionGroupExpandAndShrinkForIoTV1IT.java |   59 +
 .../commit/IoTDBRegionReconstructForIoTV1IT.java   |   55 +
 ...BRegionMigrateDataNodeCrashForIoTV2BatchIT.java |   19 +-
 ...RegionMigrateDataNodeCrashForIoTV2StreamIT.java |   19 +-
 ...oTDBRegionMigrateAddingPeerCrashForRatisIT.java |   48 +
 .../IoTDBRegionMigrateConfigNodeCrashIoTV1IT.java  |   26 +
 ...TDBRegionMigrateWithDeletionMultiDataDirIT.java |  160 ++
 ...gionMigrateWithDeletionMultiDataDirTableIT.java |  163 ++
 .../daily/iotv1/RegionMigrateFileAssertions.java   |  167 ++
 ...IoTDBRegionMigrateClusterCrashIoTV2BatchIT.java |    6 +-
 ...DBRegionMigrateConfigNodeCrashIoTV2BatchIT.java |   35 +-
 ...oTDBRegionMigrateClusterCrashIoTV2StreamIT.java |    9 +-
 ...BRegionMigrateConfigNodeCrashIoTV2StreamIT.java |   35 +-
 .../IoTDBRegionMigrateClusterCrashForRatisIT.java} |   35 +-
 ...TDBRegionMigrateConfigNodeCrashForRatisIT.java} |   72 +-
 .../IoTDBRemoveDataNodeNormalIT.java               |   24 +-
 .../IoTDBRemoveDataNodeRegionAllocationIT.java     |  348 ++++
 .../removedatanode/IoTDBRemoveDataNodeUtils.java   |   96 +
 .../removedatanode/IoTDBRemoveLastDataNodeIT.java  |  111 ++
 .../db/it/IoTDBAutoResizingBufferMemoryIT.java     |  274 +++
 .../iotdb/db/it/IoTDBCustomizedClusterIT.java      |   54 +-
 .../iotdb/db/it/IoTDBLoadTsFileActiveRetryIT.java  |  226 +++
 .../org/apache/iotdb/db/it/IoTDBLoadTsFileIT.java  |    2 +-
 .../db/it/IoTDBSetConfigurationClusterIT.java      |  122 ++
 .../iotdb/db/it/IoTDBSetConfigurationIT.java       |  311 +++
 .../it/IoTDBSyntaxConventionStringLiteralIT.java   |    2 +-
 .../IoTDBIoTConsensusV23C3DBasicITBase.java        |   48 +-
 ...DBSingleMeasurementCheckCachePerformanceIT.java |  207 ++
 .../db/it/schema/IoTDBAlterTimeSeriesTypeIT.java   |    6 +-
 .../org/apache/iotdb/db/it/utils/TestUtils.java    |   12 +-
 .../manual/AbstractPipeTableModelDualManualIT.java |    2 +
 .../manual/basic/IoTDBPipeDataSinkIT.java          |   21 +-
 .../manual/basic/IoTDBPipeIsolationIT.java         |  215 +-
 .../manual/basic/IoTDBPipeLifeCycleIT.java         |   12 +-
 .../tablemodel/manual/basic/IoTDBPipeMemoryIT.java |    1 +
 .../manual/basic/IoTDBPipePermissionIT.java        |    3 +
 .../manual/basic/IoTDBPipeProtocolIT.java          |   10 +
 .../tablemodel/manual/basic/IoTDBPipeSourceIT.java |   29 +-
 .../manual/basic/IoTDBPipeSwitchStatusIT.java      |    4 +
 .../IoTDBPipeTsFileDecompositionWithModsIT.java    |   31 +-
 .../manual/basic/IoTDBPipeWithLoadIT.java          |    8 +
 .../manual/basic/IoTDBTablePatternFormatIT.java    |    7 +
 .../manual/enhanced/IoTDBPipeAutoConflictIT.java   |    6 +
 .../manual/enhanced/IoTDBPipeAutoDropIT.java       |    3 +
 .../manual/enhanced/IoTDBPipeClusterIT.java        |   15 +
 .../manual/enhanced/IoTDBPipeDoubleLivingIT.java   |   72 +-
 .../manual/enhanced/IoTDBPipeIdempotentIT.java     |    1 +
 .../manual/enhanced/IoTDBPipeMetaIT.java           |    4 +-
 .../manual/enhanced/IoTDBPipeNullValueIT.java      |    1 +
 .../enhanced/IoTDBPipeSinkCompressionIT.java       |   20 +-
 .../manual/enhanced/IoTDBPipeSinkParallelIT.java   |    3 +
 .../IoTDBPipeTypeConversionISessionIT.java         |    1 +
 .../auto/AbstractPipeDualTreeModelAutoIT.java      |    6 +-
 .../treemodel/auto/basic/IoTDBPipeAutoSplitIT.java |    2 +
 .../treemodel/auto/basic/IoTDBPipeLifeCycleIT.java |    2 +-
 .../treemodel/auto/basic/IoTDBPipeProcessorIT.java |    2 +
 .../treemodel/auto/basic/IoTDBPipeProtocolIT.java  |    6 +
 .../IoTDBPipeReceiverAutoCreateDisabledIT.java     |   65 +-
 .../auto/basic/IoTDBPipeSinkParallelIT.java        |    1 +
 .../treemodel/auto/basic/IoTDBPipeSourceIT.java    |   65 +-
 .../auto/enhanced/IoTDBPipeAutoConflictIT.java     |    2 +
 .../auto/enhanced/IoTDBPipeClusterIT.java          |    2 +
 .../auto/enhanced/IoTDBPipeIdempotentIT.java       |    8 +-
 .../auto/enhanced/IoTDBPipeSinkCompressionIT.java  |  182 +-
 .../auto/enhanced/IoTDBPipeWithLoadIT.java         |    2 +
 .../manual/AbstractPipeDualTreeModelManualIT.java  |    4 +-
 .../manual/IoTDBPipeMetaHistoricalIT.java          |    4 +-
 .../manual/IoTDBPipeMetaLeaderChangeIT.java        |    7 +-
 .../treemodel/manual/IoTDBPipePermissionIT.java    |    4 +-
 .../manual/IoTDBPipeTypeConversionISessionIT.java  |    3 +-
 .../IoTDBPipeWriteBackSinkIT.java}                 |   77 +-
 .../iotdb/pipe/it/single/AbstractPipeSingleIT.java |    1 +
 .../single/IoTDBLegacyPipeReceiverSecurityIT.java  |    1 +
 .../iotdb/pipe/it/single/IoTDBPipeOPCUAIT.java     |    2 +
 .../pipe/it/single/IoTDBPipePermissionIT.java      |    1 +
 .../pipe/it/triple/AbstractPipeTripleManualIT.java |    5 +-
 .../relational/it/db/it/IoTDBLoadTsFileIT.java     |    1 +
 .../relational/it/db/it/IoTDBWindowTVFIT.java      |  334 ++++
 .../relational/it/db/it/udf/IoTDBLocalIT.java      |  451 +++++
 .../relational/it/db/it/udf/IoTDBLocalLogIT.java   |  159 ++
 .../it/db/it/udf/IoTDBSQLFunctionManagementIT.java |    3 +-
 .../relational/it/db/it/udf/SQLFunctionUtils.java  |    1 -
 .../it/insertquery/IoTDBInsertQueryIT.java         |    4 +-
 .../it/query/recent/IoTDBGroupByAllTableIT.java    |  238 +++
 .../recent/IoTDBReadTsFileTableFunctionIT.java     |  622 ++++++
 .../it/query/recent/IoTDBTableAggregationIT.java   |   52 +
 .../it/query/recent/IoTExplainJsonFormatIT.java    |  855 ++++++++
 .../it/schema/IoTDBAlterColumnTypeIT.java          |    2 +-
 .../relational/it/schema/IoTDBDatabaseIT.java      |  159 +-
 .../schema/IoTDBDatabaseMaxRegionGroupNumIT.java   |  229 +++
 .../IoTDBDatabaseMixedRegionGroupPolicyIT.java     |   83 +
 .../iotdb/session/it/IoTDBClientMutualSSLIT.java   |  284 +++
 .../apache/iotdb/session/it/IoTDBClientSSLIT.java  |  233 +++
 .../IoTDBSubscriptionTopicOwnerPartitionIT.java    |  267 +++
 .../dual/tablemodel/IoTDBSubscriptionTopicIT.java  |  113 ++
 .../it/local/AbstractSubscriptionLocalIT.java      |    1 +
 .../it/local/IoTDBSubscriptionTopicOwnerIT.java    |  225 +++
 .../IoTDBEncryptedPasswordPullConsumerIT.java      |    1 +
 integration-test/src/test/resources/test-keystore  |  Bin 2710 -> 2742 bytes
 .../src/test/resources/test-truststore             |  Bin 1238 -> 1270 bytes
 iotdb-api/external-api/pom.xml                     |    2 +-
 iotdb-api/external-service-api/pom.xml             |    2 +-
 iotdb-api/pipe-api/pom.xml                         |    2 +-
 .../api/customizer/parameter/PipeParameters.java   |   10 +-
 iotdb-api/pom.xml                                  |    2 +-
 iotdb-api/trigger-api/pom.xml                      |    2 +-
 iotdb-api/udf-api/pom.xml                          |    2 +-
 .../java/org/apache/iotdb/udf/api/IoTDBLocal.java  |   70 +
 .../org/apache/iotdb/udf/api/UDFResultSet.java     |   45 +-
 .../udf/api/relational/AggregateFunction.java      |   33 +
 .../iotdb/udf/api/relational/ScalarFunction.java   |   19 +
 .../processor/TableFunctionDataProcessor.java      |   34 +
 .../processor/TableFunctionLeafProcessor.java      |   17 +
 iotdb-client/cli/pom.xml                           |   26 +-
 .../java/org/apache/iotdb/cli/AbstractCli.java     |  104 +-
 .../src/main/java/org/apache/iotdb/cli/Cli.java    |   27 +-
 .../org/apache/iotdb/tool/common/Constants.java    |   12 +
 .../org/apache/iotdb/tool/common/OptionsUtil.java  |   30 +
 .../apache/iotdb/tool/data/AbstractDataTool.java   |   58 +
 .../apache/iotdb/tool/data/ExportDataTable.java    |    3 +-
 .../org/apache/iotdb/tool/data/ExportDataTree.java |    3 +-
 .../apache/iotdb/tool/data/ImportDataTable.java    |    3 +-
 .../org/apache/iotdb/tool/data/ImportDataTree.java |    3 +-
 .../iotdb/tool/schema/AbstractSchemaTool.java      |   46 +
 .../iotdb/tool/schema/ExportSchemaTable.java       |    3 +-
 .../apache/iotdb/tool/schema/ExportSchemaTree.java |    3 +-
 .../iotdb/tool/schema/ImportSchemaTable.java       |    3 +-
 .../apache/iotdb/tool/schema/ImportSchemaTree.java |    3 +-
 .../java/org/apache/iotdb/cli/AbstractCliTest.java |   83 +-
 iotdb-client/client-cpp/CMakeLists.txt             |   27 +-
 iotdb-client/client-cpp/README.md                  |   62 +-
 iotdb-client/client-cpp/README_zh.md               |   12 +-
 .../client-cpp/cmake/FetchBuildTools.cmake         |   17 +-
 iotdb-client/client-cpp/cmake/FetchOpenSSL.cmake   |   58 +-
 iotdb-client/client-cpp/cmake/FetchThrift.cmake    |   21 +-
 .../client-cpp/cmake/InstallOpenSSLRuntime.cmake   |  121 ++
 iotdb-client/client-cpp/examples/CMakeLists.txt    |   35 +
 iotdb-client/client-cpp/examples/README.md         |    2 +-
 iotdb-client/client-cpp/examples/README_zh.md      |    2 +-
 iotdb-client/client-cpp/pom.xml                    |   16 +-
 .../client-cpp/src/assembly/client-cpp.xml         |    2 +
 .../package-metadata/third_party/DEPENDENCIES.md   |   25 +-
 .../assembly/package-metadata/third_party/NOTICE   |   34 +
 .../third_party/licenses/LICENSE-Boost-1.0         |   23 +
 iotdb-client/client-cpp/src/include/Common.h       |    2 +-
 iotdb-client/client-cpp/src/include/Session.h      |   20 +-
 iotdb-client/client-cpp/src/include/SessionC.h     |   12 +
 iotdb-client/client-cpp/src/rpc/SessionImpl.h      |   11 +-
 iotdb-client/client-cpp/src/session/Date.cpp       |    3 -
 iotdb-client/client-cpp/src/session/Session.cpp    |  124 +-
 iotdb-client/client-cpp/src/session/SessionC.cpp   |   51 +-
 iotdb-client/client-cpp/test/cpp/sessionCIT.cpp    |   93 +-
 .../client-cpp/test/cpp/sessionCRelationalIT.cpp   |   13 +
 iotdb-client/client-cpp/test/cpp/sessionIT.cpp     |   53 +
 .../client-cpp/test/cpp/sessionRelationalIT.cpp    |   13 +
 iotdb-client/client-cpp/third-party/README.md      |    6 +-
 iotdb-client/client-go                             |    2 +-
 iotdb-client/client-py/README.md                   |   36 +-
 iotdb-client/client-py/iotdb/Session.py            |   28 +-
 iotdb-client/client-py/iotdb/SessionPool.py        |    8 +
 iotdb-client/client-py/iotdb/dbapi/Connection.py   |   35 +-
 iotdb-client/client-py/iotdb/table_session.py      |    6 +
 iotdb-client/client-py/iotdb/table_session_pool.py |    4 +
 iotdb-client/client-py/pom.xml                     |    8 +-
 iotdb-client/client-py/session_ssl_example.py      |   16 +-
 .../client-py/tests/unit/test_session_ssl.py       |  152 ++
 iotdb-client/isession/pom.xml                      |    8 +-
 .../org/apache/iotdb/isession/SessionConfig.java   |    2 +
 iotdb-client/jdbc/README.md                        |    4 +-
 iotdb-client/jdbc/pom.xml                          |    8 +-
 iotdb-client/jdbc/src/main/feature/feature.xml     |    2 +-
 .../main/java/org/apache/iotdb/jdbc/Config.java    |    8 +
 .../org/apache/iotdb/jdbc/IoTDBConnection.java     |    5 +-
 .../apache/iotdb/jdbc/IoTDBConnectionParams.java   |   27 +
 .../java/org/apache/iotdb/jdbc/IoTDBStatement.java |   35 +-
 .../src/main/java/org/apache/iotdb/jdbc/Utils.java |   13 +
 .../test/java/org/apache/iotdb/jdbc/UtilsTest.java |   39 +
 iotdb-client/pom.xml                               |    2 +-
 iotdb-client/service-rpc/pom.xml                   |    6 +-
 .../en/org/apache/iotdb/rpc/i18n/RpcMessages.java  |    6 +
 .../zh/org/apache/iotdb/rpc/i18n/RpcMessages.java  |    6 +
 .../org/apache/iotdb/rpc/AutoResizingBuffer.java   |   53 +-
 .../iotdb/rpc/AutoResizingBufferMemoryControl.java |   12 +-
 .../iotdb/rpc/AutoResizingBufferMemoryManager.java |  110 ++
 .../iotdb/rpc/AutoScalingBufferReadTransport.java  |   18 +-
 .../iotdb/rpc/AutoScalingBufferWriteTransport.java |   20 +-
 .../apache/iotdb/rpc/BaseRpcTransportFactory.java  |   47 +-
 .../java/org/apache/iotdb/rpc/RpcSslUtils.java     |  304 +++
 .../main/java/org/apache/iotdb/rpc/RpcUtils.java   |   12 +-
 .../rpc/TCompressedElasticFramedTransport.java     |   29 +-
 .../apache/iotdb/rpc/TElasticFramedTransport.java  |   38 +-
 .../iotdb/rpc/TNonblockingTransportWrapper.java    |    4 +-
 .../java/org/apache/iotdb/rpc/TSStatusCode.java    |    5 +
 .../iotdb/rpc/TSnappyElasticFramedTransport.java   |    8 +-
 .../java/org/apache/iotdb/rpc/TSocketWrapper.java  |    4 +-
 .../rpc/TimeoutChangeableTFastFramedTransport.java |    6 +-
 .../TimeoutChangeableTSnappyFramedTransport.java   |    6 +-
 .../apache/iotdb/rpc/AutoResizingBufferTest.java   |  193 ++
 .../java/org/apache/iotdb/rpc/RpcUtilsTest.java    |   46 +
 iotdb-client/session/pom.xml                       |   10 +-
 .../iotdb/session/AbstractSessionBuilder.java      |    3 +
 .../org/apache/iotdb/session/NodesSupplier.java    |   18 +
 .../java/org/apache/iotdb/session/Session.java     |   24 +
 .../apache/iotdb/session/SessionConnection.java    |   44 +-
 .../apache/iotdb/session/TableSessionBuilder.java  |   36 +
 .../org/apache/iotdb/session/ThriftConnection.java |    8 +-
 .../org/apache/iotdb/session/pool/SessionPool.java |   38 +
 .../session/pool/TableSessionPoolBuilder.java      |   36 +
 .../iotdb/session/SessionConnectionTest.java       |    8 +
 .../apache/iotdb/session/pool/SessionPoolTest.java |   11 +
 .../src/test/resources/iotdb-common.properties     |    2 +-
 iotdb-client/subscription/pom.xml                  |   14 +-
 .../subscription/i18n/SubscriptionMessages.java    |   31 +
 .../subscription/i18n/SubscriptionMessages.java    |   24 +
 .../rpc/subscription/config/ConsumerConfig.java    |   10 +
 .../rpc/subscription/config/ConsumerConstant.java  |    2 +
 .../rpc/subscription/config/TopicConstant.java     |    8 +
 .../SubscriptionOwnerFencedException.java          |   27 +-
 .../subscription/AbstractSubscriptionSession.java  |   99 +-
 .../subscription/ISubscriptionTableSession.java    |   43 +
 .../subscription/ISubscriptionTreeSession.java     |   43 +
 .../subscription/SubscriptionTableSession.java     |   22 +
 .../subscription/SubscriptionTreeSession.java      |   22 +
 .../base/AbstractSubscriptionConsumer.java         |   26 +
 .../base/AbstractSubscriptionConsumerBuilder.java  |   23 +
 .../base/AbstractSubscriptionProvider.java         |   25 +
 .../base/AbstractSubscriptionPullConsumer.java     |   21 +-
 .../base/AbstractSubscriptionPushConsumer.java     |   21 +-
 .../consumer/base/EmptyPollLogThrottler.java       |   62 +
 .../consumer/table/SubscriptionTableProvider.java  |    4 +
 .../table/SubscriptionTablePullConsumer.java       |    4 +
 .../SubscriptionTablePullConsumerBuilder.java      |   18 +
 .../table/SubscriptionTablePushConsumer.java       |    4 +
 .../SubscriptionTablePushConsumerBuilder.java      |   18 +
 .../consumer/tree/SubscriptionTreeProvider.java    |    4 +
 .../tree/SubscriptionTreePullConsumer.java         |   21 +
 .../tree/SubscriptionTreePullConsumerBuilder.java  |   18 +
 .../tree/SubscriptionTreePushConsumer.java         |   21 +
 .../tree/SubscriptionTreePushConsumerBuilder.java  |   18 +
 .../consumer/base/EmptyPollLogThrottlerTest.java   |   63 +
 iotdb-core/ainode/pom.xml                          |   12 +-
 iotdb-core/antlr/pom.xml                           |    2 +-
 .../org/apache/iotdb/db/qp/sql/IdentifierParser.g4 |    7 +-
 .../org/apache/iotdb/db/qp/sql/IoTDBSqlParser.g4   |   30 +-
 .../antlr4/org/apache/iotdb/db/qp/sql/SqlLexer.g4  |   14 +-
 iotdb-core/calc-commons/pom.xml                    |   19 +-
 .../org/apache/iotdb/calc/i18n/CalcMessages.java   |    9 +
 .../org/apache/iotdb/calc/i18n/CalcMessages.java   |    8 +
 .../execution/operator/CommonOperatorContext.java  |   15 +
 .../fill/filter/FixedIntervalFillFilter.java       |   10 +-
 .../function/TableFunctionLeafOperator.java        |   16 +-
 .../process/function/TableFunctionOperator.java    |   28 +-
 .../operator/source/relational/Percentile.java     |  173 ++
 .../relational/aggregation/AccumulatorFactory.java |  109 +-
 .../aggregation/AggregationOperator.java           |   15 +-
 .../relational/aggregation/ExtremeAccumulator.java |   32 +-
 .../aggregation/PercentileAccumulator.java         |  266 +++
 .../relational/aggregation/TableAggregator.java    |   49 +-
 .../UserDefinedAggregateFunctionAccumulator.java   |   65 +-
 .../grouped/GroupedExtremeAccumulator.java         |   70 +-
 .../grouped/GroupedPercentileAccumulator.java      |  291 +++
 .../GroupedUserDefinedAggregateAccumulator.java    |   44 +-
 .../grouped/StreamingAggregationOperator.java      |    9 +-
 .../grouped/array/PercentileBigArray.java          |   73 +
 .../builder/InMemoryHashAggregationBuilder.java    |    9 +-
 .../relational/ColumnTransformerBuilder.java       |   71 +-
 .../queue/IndexedBlockingReserveQueue.java         |   36 +-
 .../iotdb/calc/metric/QueryExecutionMetricSet.java |   15 +-
 .../calc/plan/planner/TableOperatorGenerator.java  |  263 ++-
 .../planner/memory/MemoryReservationManager.java   |    6 +
 .../udf/UserDefineScalarFunctionTransformer.java   |   46 +-
 .../datastructure/SerializableList.java            |    3 +-
 .../iotdb/calc/utils/constant/SqlConstant.java     |    1 +
 .../iotdb/calc/utils/sort/FileSpillerReader.java   |    4 +-
 .../fill/filter/FixedIntervalFillFilterTest.java}  |   24 +-
 .../aggregation/ExtremeAccumulatorTest.java        |  150 ++
 iotdb-core/confignode/pom.xml                      |   30 +-
 .../iotdb/confignode/i18n/ConfigNodeMessages.java  |   18 +
 .../iotdb/confignode/i18n/ManagerMessages.java     |   19 +-
 .../iotdb/confignode/i18n/ProcedureMessages.java   |   17 +-
 .../iotdb/confignode/i18n/ConfigNodeMessages.java  |   18 +
 .../iotdb/confignode/i18n/ManagerMessages.java     |   25 +-
 .../iotdb/confignode/i18n/ProcedureMessages.java   |   17 +-
 .../async/AsyncAINodeHeartbeatClientPool.java      |   12 +-
 .../async/AsyncConfigNodeHeartbeatClientPool.java  |   12 +-
 .../async/AsyncDataNodeHeartbeatClientPool.java    |   22 +-
 .../client/async/CnToDnAsyncRequestType.java       |    2 +-
 .../CnToDnInternalServiceAsyncRequestManager.java  |   11 +-
 .../heartbeat/DataNodeHeartbeatHandler.java        |    3 +-
 .../rpc/CheckTimeSeriesExistenceRPCHandler.java    |    2 +-
 .../rpc/CountPathsUsingTemplateRPCHandler.java     |    2 +-
 .../rpc/FetchSchemaBlackListRPCHandler.java        |    2 +-
 .../async/handlers/rpc/SchemaUpdateRPCHandler.java |    2 +-
 .../CheckSchemaRegionUsingTemplateRPCHandler.java  |    2 +-
 .../client/sync/CnToDnSyncRequestType.java         |    1 +
 .../client/sync/SyncDataNodeClientPool.java        |    3 +
 .../iotdb/confignode/conf/ConfigNodeConfig.java    |   81 +-
 .../confignode/conf/ConfigNodeDescriptor.java      |  248 ++-
 .../confignode/conf/ConfigNodeMemoryConfig.java    |   89 +
 .../request/write/pipe/task/AlterPipePlanV2.java   |   74 +
 .../request/write/pipe/task/DropPipePlanV2.java    |   42 +-
 .../pipe/task/OperateMultiplePipesPlanV2.java      |   21 +-
 .../write/pipe/task/SetPipeStatusPlanV2.java       |   52 +-
 ...eStatusWithStoppedByRuntimeExceptionPlanV2.java |   36 +-
 .../consensus/response/cq/ShowCQResp.java          |    2 +-
 .../externalservice/ShowExternalServiceResp.java   |    2 +-
 .../response/pipe/task/PipeTableResp.java          |   35 +-
 .../statemachine/ConfigRegionStateMachine.java     |  122 +-
 .../iotdb/confignode/manager/ConfigManager.java    |  108 +-
 .../apache/iotdb/confignode/manager/IManager.java  |    7 +
 .../iotdb/confignode/manager/ProcedureManager.java |  355 +++-
 .../confignode/manager/RetryFailedTasksThread.java |   23 +-
 .../manager/consensus/ConsensusManager.java        |    2 +
 .../externalservice/ExternalServiceInfo.java       |    3 +-
 .../iotdb/confignode/manager/load/LoadManager.java |    6 +
 .../manager/load/balancer/RegionBalancer.java      |   24 +-
 .../manager/load/balancer/RouteBalancer.java       |    9 +-
 .../balancer/router/leader/HashLeaderBalancer.java |    2 +-
 .../manager/load/cache/AbstractLoadCache.java      |    2 +-
 .../manager/load/service/EventService.java         |   23 +-
 .../manager/load/service/HeartbeatService.java     |   23 +-
 .../manager/load/service/StatisticsService.java    |   23 +-
 .../manager/load/service/TopologyService.java      |   17 +-
 .../iotdb/confignode/manager/node/NodeManager.java |    8 +-
 .../manager/partition/PartitionManager.java        |  382 ++--
 .../agent/runtime/PipeConfigNodeRuntimeAgent.java  |   35 +-
 .../pipe/agent/task/PipeConfigNodeSubtask.java     |   21 +-
 .../pipe/agent/task/PipeConfigNodeTaskAgent.java   |   17 +-
 .../pipe/coordinator/runtime/PipeMetaSyncer.java   |   26 +-
 .../runtime/PipeRuntimeCoordinator.java            |    6 +-
 .../runtime/heartbeat/PipeHeartbeat.java           |   22 +-
 .../runtime/heartbeat/PipeHeartbeatParser.java     |  124 +-
 .../runtime/heartbeat/PipeHeartbeatScheduler.java  |   26 +-
 .../pipe/coordinator/task/PipeTaskCoordinator.java |  157 +-
 .../coordinator/task/PipeTaskCoordinatorLock.java  |   22 +-
 .../receiver/protocol/IoTDBConfigNodeReceiver.java |    4 +-
 .../resource/PipeConfigNodeResourceManager.java    |   14 +
 .../manager/schema/ClusterSchemaManager.java       |  281 ++-
 .../schema/ClusterSchemaQuotaStatistics.java       |    2 +-
 .../subscription/SubscriptionCoordinator.java      |  123 ++
 .../subscription/SubscriptionOwnerLeaseSyncer.java |   97 +
 .../confignode/persistence/ProcedureInfo.java      |   13 +-
 .../persistence/executor/ConfigPlanExecutor.java   |    8 +-
 .../persistence/partition/PartitionInfo.java       |   27 +-
 .../confignode/persistence/pipe/PipeInfo.java      |   37 +-
 .../confignode/persistence/pipe/PipeTaskInfo.java  |  451 ++++-
 .../persistence/schema/ClusterSchemaInfo.java      |   24 +-
 .../mnode/container/ConfigMNodeContainer.java      |    2 +-
 .../persistence/subscription/SubscriptionInfo.java |   68 +
 .../procedure/CompletedProcedureRecycler.java      |   14 +-
 .../iotdb/confignode/procedure/Procedure.java      |   20 +
 .../confignode/procedure/ProcedureExecutor.java    |  166 +-
 .../procedure/TimeoutExecutorThread.java           |   45 +-
 .../procedure/env/ConfigNodeProcedureEnv.java      |  339 +++-
 .../procedure/env/RegionMaintainHandler.java       |   35 +-
 .../procedure/env/RemoveDataNodeHandler.java       |   53 +-
 .../procedure/impl/StateMachineProcedure.java      |    3 +-
 .../procedure/impl/cq/CreateCQProcedure.java       |    2 +-
 .../procedure/impl/node/AbstractNodeProcedure.java |   12 +
 .../DataPartitionTableIntegrityCheckProcedure.java |  174 +-
 .../impl/pipe/AbstractOperatePipeProcedureV2.java  |  122 +-
 .../pipe/plugin/CreatePipePluginProcedure.java     |    2 +-
 .../impl/pipe/plugin/DropPipePluginProcedure.java  |    2 +-
 .../runtime/PipeHandleLeaderChangeProcedure.java   |   40 +-
 .../runtime/PipeHandleMetaChangeProcedure.java     |   37 +-
 .../impl/pipe/runtime/PipeMetaSyncProcedure.java   |   12 +-
 .../impl/pipe/task/AlterPipeProcedureV2.java       |   64 +-
 .../impl/pipe/task/CreatePipeProcedureV2.java      |   60 +-
 .../impl/pipe/task/DropPipeProcedureV2.java        |  112 +-
 .../impl/pipe/task/StartPipeProcedureV2.java       |   95 +-
 .../impl/pipe/task/StopPipeProcedureV2.java        |   58 +-
 .../impl/region/AddRegionPeerProcedure.java        |   30 +-
 .../impl/region/CreateRegionGroupsProcedure.java   |   54 +-
 .../impl/region/RemoveRegionGroupProcedure.java    |  386 ++++
 .../schema/AlterEncodingCompressorProcedure.java   |    2 +-
 .../schema/AlterTimeSeriesDataTypeProcedure.java   |    2 +-
 .../impl/schema/DeleteDatabaseProcedure.java       |  115 +-
 .../impl/schema/DeleteLogicalViewProcedure.java    |    2 +-
 .../impl/schema/DeleteTimeSeriesProcedure.java     |    2 +-
 .../AbstractOperateSubscriptionProcedure.java      |   20 +
 .../runtime/CommitProgressSyncProcedure.java       |   10 +-
 .../runtime/ConsumerGroupMetaSyncProcedure.java    |   10 +-
 .../SubscriptionHandleLeaderChangeProcedure.java   |    9 +-
 ...bstractOperateSubscriptionAndPipeProcedure.java |   39 +-
 .../subscription/CreateSubscriptionProcedure.java  |   18 +-
 .../subscription/DropSubscriptionProcedure.java    |   17 +-
 .../topic/runtime/TopicMetaSyncProcedure.java      |    9 +-
 .../impl/trigger/CreateTriggerProcedure.java       |    2 +-
 .../impl/trigger/DropTriggerProcedure.java         |    2 +-
 .../confignode/procedure/scheduler/LockQueue.java  |   10 +-
 .../scheduler/SimpleProcedureScheduler.java        |   37 +-
 .../procedure/state/RemoveRegionGroupState.java}   |    6 +-
 .../state/schema/DeleteDatabaseState.java          |    5 +-
 .../procedure/store/ProcedureFactory.java          |    6 +
 .../confignode/procedure/store/ProcedureType.java  |    1 +
 .../iotdb/confignode/service/ConfigNode.java       |    2 +
 .../thrift/ConfigNodeRPCServiceHandler.java        |    3 +-
 .../thrift/ConfigNodeRPCServiceProcessor.java      |   12 +
 .../writelog/io/SingleFileLogReader.java           |    5 +-
 .../conf/ConfigNodeMemoryConfigTest.java           |   61 +
 .../request/ConfigPhysicalPlanSerDeTest.java       |  131 ++
 .../consensus/response/pipe/PipeTableRespTest.java |  125 ++
 .../router/leader/HashLeaderBalancerTest.java      |   65 +
 .../runtime/heartbeat/PipeHeartbeatParserTest.java |  229 ++-
 .../task/PipeTaskCoordinatorLockTest.java          |   60 +
 .../pipe/sink/PipeConfigNodeThriftRequestTest.java |  212 ++
 .../confignode/persistence/AuthorInfoTest.java     |   44 +-
 .../confignode/persistence/PartitionInfoTest.java  |   27 +
 .../pipe/PipeTaskInfoAutoRestartTest.java          |  324 ++-
 .../pipe/PipeTaskInfoConsensusPipeTest.java        |    4 +-
 .../subscription/SubscriptionInfoTest.java         |  194 ++
 .../SubscriptionInfoTopicValidationTest.java       |   28 +
 .../procedure/CompletedProcedureRecyclerTest.java  |   76 +
 .../iotdb/confignode/procedure/TestLockRegime.java |   23 +
 .../procedure/TestProcedureExecutor.java           |  116 ++
 .../procedure/entity/SimpleLockProcedure.java      |   11 +-
 ...aPartitionTableIntegrityCheckProcedureTest.java |   13 +
 .../pipe/AbstractOperatePipeProcedureV2Test.java   |  168 ++
 .../PipeHandleLeaderChangeProcedureTest.java       |   47 +
 .../impl/pipe/task/AlterPipeProcedureV2Test.java   |    1 +
 .../impl/pipe/task/AlterPipeProcedureV3Test.java   |    1 +
 .../impl/pipe/task/CreatePipeProcedureV2Test.java  |   20 +
 .../impl/pipe/task/DropPipeProcedureV2Test.java    |   22 +
 .../impl/pipe/task/StartPipeProcedureV2Test.java   |   20 +
 .../impl/pipe/task/StopPipeProcedureV2Test.java    |   22 +-
 .../region/RemoveRegionGroupProcedureTest.java     |  100 +
 iotdb-core/consensus/pom.xml                       |   18 +-
 .../org/apache/iotdb/consensus/IStateMachine.java  |   28 +-
 .../iotdb/consensus/config/ConsensusConfig.java    |   20 +-
 .../iotdb/consensus/config/IoTConsensusConfig.java |   23 +-
 .../apache/iotdb/consensus/config/RatisConfig.java |   22 +-
 .../apache/iotdb/consensus/iot/IoTConsensus.java   |    5 +
 .../consensus/iot/IoTConsensusServerImpl.java      |  159 +-
 .../iot/client/AsyncIoTConsensusServiceClient.java |    2 +-
 .../iot/client/SyncIoTConsensusServiceClient.java  |    3 +-
 .../iot/service/IoTConsensusRPCServiceHandler.java |    4 +-
 .../service/IoTConsensusRPCServiceProcessor.java   |   12 +-
 .../iot/snapshot/SnapshotFragmentReader.java       |   14 +-
 .../service/IoTConsensusV2RPCServiceHandler.java   |    4 +-
 .../ratis/ApplicationStateMachineProxy.java        |   13 +-
 .../apache/iotdb/consensus/ratis/RatisClient.java  |   31 +-
 .../iotdb/consensus/ratis/RatisConsensus.java      |    2 +-
 .../utils/NoHostnameVerificationTrustManager.java  |   88 -
 .../apache/iotdb/consensus/ratis/utils/Utils.java  |   58 +-
 .../simple/SimpleConsensusServerImpl.java          |    4 +-
 .../apache/iotdb/consensus/EmptyStateMachine.java  |    4 +-
 .../iot/AddPeerSnapshotLoadFailureTest.java        |  354 ++++
 .../iot/snapshot/SnapshotFragmentReaderTest.java   |   97 +
 .../iotdb/consensus/iot/util/TestStateMachine.java |    4 +-
 .../apache/iotdb/consensus/ratis/TestUtils.java    |    4 +-
 .../consensus/simple/SimpleConsensusTest.java      |    4 +-
 iotdb-core/datanode/pom.xml                        |   52 +-
 .../apache/iotdb/db/i18n/DataNodeMiscMessages.java |    7 +
 .../apache/iotdb/db/i18n/DataNodePipeMessages.java |   79 +-
 .../iotdb/db/i18n/DataNodeQueryMessages.java       |  122 +-
 .../iotdb/db/i18n/DataNodeSchemaMessages.java      |    2 +
 .../iotdb/db/i18n/StorageEngineMessages.java       |    4 +
 .../apache/iotdb/db/i18n/DataNodeMiscMessages.java |    6 +
 .../apache/iotdb/db/i18n/DataNodePipeMessages.java |   85 +-
 .../iotdb/db/i18n/DataNodeQueryMessages.java       |  121 +-
 .../iotdb/db/i18n/DataNodeSchemaMessages.java      |    2 +
 .../iotdb/db/i18n/StorageEngineMessages.java       |    4 +
 .../org/apache/iotdb/db/audit/DNAuditLogger.java   |    2 +-
 .../apache/iotdb/db/conf/DataNodeMemoryConfig.java |   27 +
 .../java/org/apache/iotdb/db/conf/IoTDBConfig.java |   63 +-
 .../org/apache/iotdb/db/conf/IoTDBDescriptor.java  |   71 +-
 .../iotdb/db/conf/rest/IoTDBRestServiceConfig.java |   13 +-
 .../db/conf/rest/IoTDBRestServiceDescriptor.java   |    4 +
 .../db/consensus/DataRegionConsensusImpl.java      |    8 +
 .../db/consensus/SchemaRegionConsensusImpl.java    |    3 +
 .../dataregion/DataRegionStateMachine.java         |   53 +-
 .../schemaregion/SchemaRegionStateMachine.java     |   25 +-
 .../load/LoadAnalyzeMissingSchemaException.java}   |   11 +-
 .../agent/runtime/PipeDataNodeRuntimeAgent.java    |   36 +-
 .../db/pipe/agent/task/PipeDataNodeTaskAgent.java  |  459 ++++-
 .../task/builder/PipeDataNodeTaskBuilder.java      |   35 +-
 .../subtask/processor/PipeProcessorSubtask.java    |    6 +-
 .../agent/task/subtask/sink/PipeSinkSubtask.java   |   91 +-
 .../subtask/sink/PipeSinkSubtaskLifeCycle.java     |    8 +-
 .../task/subtask/sink/PipeSinkSubtaskManager.java  |  115 +-
 .../deletion/DeletionResourceManager.java          |    3 +
 .../consensus/deletion/recover/DeletionReader.java |    5 +-
 .../db/pipe/event/common/PipeInsertionEvent.java   |    2 +-
 .../db/pipe/event/common/row/PipeRowCollector.java |   24 +-
 .../tablet/PipeInsertNodeTabletInsertionEvent.java |    8 +-
 .../common/tablet/PipeRawTabletEventConverter.java |   42 +-
 .../common/tablet/PipeRawTabletInsertionEvent.java |    5 +-
 .../event/common/tablet/PipeTabletCollector.java   |   29 +-
 .../tablet/parser/TabletInsertionEventParser.java  |  135 +-
 .../TabletInsertionEventTreePatternParser.java     |    3 +-
 .../event/common/terminate/PipeTerminateEvent.java |    2 +-
 .../common/tsfile/PipeTsFileInsertionEvent.java    |   33 +-
 .../query/TsFileInsertionEventQueryParser.java     |  108 +-
 .../scan/AlignedSinglePageWholeChunkReader.java    |    2 +-
 .../parser/scan/SinglePageWholeChunkReader.java    |   40 +-
 .../scan/TsFileInsertionEventScanParser.java       |  440 +++--
 .../overview/PipeDataNodeSinglePipeMetrics.java    |   10 +-
 .../metric/processor/PipeProcessorMetrics.java     |    3 +-
 .../metric/schema/PipeSchemaRegionSinkMetrics.java |   70 +-
 .../metric/sink/PipeDataRegionSinkMetrics.java     |   18 +-
 .../processor/aggregate/AggregateProcessor.java    |   13 +-
 .../downsampling/changing/ChangingValueFilter.java |   20 +-
 .../sdt/SwingingDoorTrendingFilter.java            |   19 +-
 .../tumbling/TumblingTimeSamplingProcessor.java    |    7 +-
 .../exchange/sender/TwoStageAggregateSender.java   |    2 +-
 .../legacy/IoTDBLegacyPipeReceiverAgent.java       |    3 +-
 .../protocol/thrift/IoTDBDataNodeReceiver.java     |  229 ++-
 .../transform/converter/ValueConverter.java        |   30 +-
 .../statement/PipeConvertedInsertRowStatement.java |    9 +
 .../visitor/PipeStatementTSStatusVisitor.java      |    4 +-
 ...eeStatementDataTypeConvertExecutionVisitor.java |   13 +-
 ...aNodeHardlinkOrCopiedFileDirStartupCleaner.java |  254 ++-
 .../resource/memory/InsertNodeMemoryEstimator.java |   15 +-
 .../resource/memory/PipeDynamicMemoryBlock.java    |    2 +-
 .../pipe/resource/memory/PipeMemoryWeightUtil.java |   18 +-
 .../resource/tsfile/PipeTsFileResourceManager.java |    5 +
 .../tsfile/PipeTsFileResourceSegmentLock.java      |   10 +-
 .../client/IoTDBDataNodeAsyncClientManager.java    |   48 +-
 .../batch/PipeSchemaRegionWritePlanEventBatch.java |  557 ++++++
 .../evolvable/request/PipeTransferPlanNodeReq.java |   28 +-
 .../request/PipeTransferTabletBatchReq.java        |   98 +-
 .../request/PipeTransferTabletRawReq.java          |   98 +-
 .../airgap/IoTDBSchemaRegionAirGapSink.java        |  182 +-
 .../sink/protocol/legacy/IoTDBLegacyPipeSink.java  |    7 +-
 .../thrift/async/IoTDBDataRegionAsyncSink.java     |  161 +-
 .../handler/PipeTransferTrackableHandler.java      |   56 +-
 .../async/handler/PipeTransferTsFileHandler.java   |    2 +-
 .../thrift/sync/IoTDBSchemaRegionSink.java         |  187 +-
 .../sink/protocol/writeback/WriteBackSink.java     |  383 +++-
 .../pipe/sink/util/TabletStatementConverter.java   |  116 +-
 .../source/dataregion/IoTDBDataRegionSource.java   |   84 -
 ...istoricalDataRegionTsFileAndDeletionSource.java |  148 +-
 .../PipeRealtimeDataRegionHybridSource.java        |   98 +-
 .../PipeTsFileEpochProgressIndexKeeper.java        |    2 +-
 .../iotdb/db/protocol/client/ConfigNodeClient.java |   16 +
 .../iotdb/db/protocol/client/an/AINodeClient.java  |    3 +-
 .../iotdb/db/protocol/session/SessionManager.java  |   25 +
 .../thrift/handler/BaseServerContextHandler.java   |    7 +-
 .../handler/InternalServiceThriftHandler.java      |    3 +-
 .../protocol/thrift/impl/ClientRPCServiceImpl.java |    7 +-
 .../impl/DataNodeInternalRPCServiceImpl.java       |  196 +-
 .../thrift/impl/PushMultiPipeMetaHelper.java       |   86 +
 .../db/queryengine/common/MPPQueryContext.java     |   81 +
 .../common/header/DatasetHeaderFactory.java        |   17 +
 .../db/queryengine/execution/StateMachine.java     |    7 +-
 .../execution/aggregation/ExtremeAccumulator.java  |   32 +-
 .../execution/aggregation/TreeAggregator.java      |  104 +-
 .../SlidingWindowAggregatorFactory.java            |   36 +-
 .../MPPDataExchangeServiceThriftHandler.java       |    3 +-
 .../fragment/FragmentInstanceContext.java          |  129 ++
 .../fragment/FragmentInstanceManager.java          |    2 +
 .../execution/fragment/QueryContext.java           |    4 +
 .../execution/operator/ExplainAnalyzeOperator.java |   70 +-
 .../execution/operator/OperatorContext.java        |   32 +
 .../operator/process/AggregationOperator.java      |   25 +-
 .../process/RawDataAggregationOperator.java        |  129 +-
 .../operator/process/TagAggregationOperator.java   |   15 +-
 .../AbstractSeriesAggregationScanOperator.java     |   26 +-
 .../operator/source/AlignedSeriesScanUtil.java     |    3 +-
 .../execution/operator/source/FileLoaderUtils.java |   19 +-
 .../execution/operator/source/SeriesScanUtil.java  |   46 +-
 .../relational/AbstractAggTableScanOperator.java   |  127 +-
 .../AbstractDefaultAggTableScanOperator.java       |    2 +-
 .../relational/AbstractTableScanOperator.java      |   31 +-
 .../source/relational/CteScanOperator.java         |    2 +-
 .../ExternalTsFileAggTableScanOperator.java        |  180 ++
 .../relational/ExternalTsFileSeriesScanUtil.java   |   94 +
 .../ExternalTsFileTableScanOperator.java           |  168 ++
 .../InformationSchemaContentSupplierFactory.java   |   17 +-
 .../execution/operator/window/SessionWindow.java   |   24 +-
 .../operator/window/SessionWindowManager.java      |    2 +-
 .../execution/schedule/DriverScheduler.java        |   15 +-
 .../multilevelqueue/MultilevelPriorityQueue.java   |   10 +
 .../execution/schedule/task/DriverTask.java        |   34 +-
 .../execution/schedule/task/DriverTaskId.java      |    2 +-
 .../metric/DriverSchedulerMetricSet.java           |   13 +
 .../iotdb/db/queryengine/plan/Coordinator.java     |   76 +-
 .../db/queryengine/plan/analyze/AnalyzeUtils.java  |   34 +-
 .../plan/analyze/load/LoadTsFileAnalyzer.java      |   57 +
 .../load/TreeSchemaAutoCreatorAndVerifier.java     |   39 +-
 .../plan/analyze/schema/NormalSchemaFetcher.java   |    4 +-
 .../queryengine/plan/execution/QueryExecution.java |    8 +-
 .../plan/execution/config/ConfigExecution.java     |    2 +-
 .../execution/config/TableConfigTaskVisitor.java   |   97 +-
 .../execution/config/TreeConfigTaskVisitor.java    |   27 +
 .../config/executor/ClusterConfigTaskExecutor.java |  625 ++++--
 .../config/executor/IConfigTaskExecutor.java       |   11 +
 .../config/metadata/DatabaseSchemaTask.java        |    9 +-
 .../config/metadata/ShowFunctionsTask.java         |    6 +
 .../config/metadata/region/MigrateRegionTask.java  |    2 +-
 .../metadata/relational/AbstractDatabaseTask.java  |    4 +-
 .../relational/ShowCreateDatabaseTask.java         |   96 +
 .../metadata/relational/ShowCreatePipeTask.java    |  186 ++
 .../config/metadata/relational/ShowDBTask.java     |    4 +-
 .../ShowRepairDataPartitionTableProgressTask.java  |   72 +
 .../execution/config/sys/pipe/ShowPipeTask.java    |    5 +
 .../config/sys/subscription/AlterTopicTask.java    |   49 +
 .../sys/subscription/ShowCreateTopicTask.java      |  116 ++
 .../TableModelStatementMemorySourceVisitor.java    |   54 +-
 .../plan/expression/unary/InExpression.java        |    2 +-
 .../db/queryengine/plan/parser/ASTVisitor.java     |   44 +-
 .../planner/DataNodeTableOperatorGenerator.java    |  104 +-
 .../plan/planner/LocalExecutionPlanContext.java    |    4 +
 .../plan/planner/LocalExecutionPlanner.java        |   96 +-
 .../memory/FakedMemoryReservationManager.java      |    3 +
 .../NotThreadSafeMemoryReservationManager.java     |  111 +-
 .../memory/ThreadSafeMemoryReservationManager.java |    5 +
 .../plan/AbstractFragmentParallelPlanner.java      |    7 +-
 .../planner/plan/node/PlanGraphJsonPrinter.java    |  225 +++
 .../plan/planner/plan/node/PlanGraphPrinter.java   |    9 +
 .../plan/planner/plan/node/PlanVisitor.java        |   10 +
 .../metadata/read/LevelTimeSeriesCountNode.java    |    2 +-
 .../node/metadata/read/TimeSeriesCountNode.java    |    2 +-
 .../metadata/read/TimeSeriesSchemaScanNode.java    |    2 +-
 .../plan/planner/plan/node/write/InsertNode.java   |   82 +-
 .../planner/plan/node/write/InsertRowNode.java     |  223 ++-
 .../plan/node/write/InsertRowsOfOneDeviceNode.java |    5 +-
 .../planner/plan/node/write/InsertTabletNode.java  |  358 +++-
 .../plan/planner/plan/node/write/ObjectNode.java   |    4 +-
 .../plan/node/write/RelationalInsertRowNode.java   |   71 +-
 .../plan/node/write/RelationalInsertRowsNode.java  |   45 +-
 .../node/write/RelationalInsertTabletNode.java     |  120 +-
 .../relational/analyzer/AggregationAnalyzer.java   |   85 +-
 .../relational/analyzer/StatementAnalyzer.java     |  202 +-
 .../ConvertSchemaPredicateToFilterVisitor.java     |   17 +-
 .../DataNodeTableBuiltinTableFunction.java         |   65 +
 .../tvf/read_tsfile/DeviceTaskRunCursor.java       |  124 ++
 .../ExternalTsFileDeviceFilterVisitor.java         |   54 +
 .../read_tsfile/ExternalTsFileDeviceQueryTask.java |   97 +
 .../read_tsfile/ExternalTsFileQueryDataSource.java |   49 +
 .../read_tsfile/ExternalTsFileQueryResource.java   |  749 +++++++
 .../tvf/read_tsfile/ReadTsFileTableFunction.java   |  305 +++
 .../tvf/read_tsfile/TsFileSchemaCollector.java     |  348 ++++
 .../relational/metadata/TableMetadataImpl.java     |   39 +-
 .../fetcher/cache/TableDeviceCacheEntry.java       |   20 +-
 .../fetcher/cache/TableDeviceLastCache.java        |   44 +-
 .../fetcher/cache/TableDeviceSchemaCache.java      |   26 +-
 .../fetcher/cache/TreeDeviceNormalSchema.java      |   11 +-
 .../cache/TreeDeviceSchemaCacheManager.java        |    9 +-
 .../plan/relational/planner/CteMaterializer.java   |    1 +
 .../plan/relational/planner/RelationPlanner.java   |  101 +-
 .../relational/planner/TableLogicalPlanner.java    |    3 +-
 .../distribute/TableDistributedPlanGenerator.java  |  216 +-
 .../distribute/TableDistributedPlanner.java        |   16 +-
 ...ithUncorrelatedScalarSubqueryReconstructor.java |    2 +
 .../iterative/rule/PruneTableScanColumns.java      |   21 +
 .../planner/node/AggregationTableScanNode.java     |   54 +
 .../planner/node/ExplainAnalyzeNode.java           |   39 +-
 .../node/ExternalTsFileAggregationScanNode.java    |  181 ++
 .../planner/node/ExternalTsFileScanNode.java       |  172 ++
 .../planner/optimizations/ParallelizeGrouping.java |   18 +-
 .../PushAggregationIntoTableScan.java              |   49 +-
 .../PushLimitOffsetIntoTableScan.java              |   18 +-
 .../optimizations/PushPredicateIntoTableScan.java  |   61 +-
 .../optimizations/TransformSortToStreamSort.java   |   27 +-
 .../optimizations/UnaliasSymbolReferences.java     |   41 +-
 .../security/TreeAccessCheckVisitor.java           |   18 +
 .../sql/ast/{PipeEnriched.java => AlterTopic.java} |   53 +-
 .../plan/relational/sql/ast/AstVisitor.java        |   16 +
 .../plan/relational/sql/ast/Explain.java           |   30 +-
 .../plan/relational/sql/ast/ExplainAnalyze.java    |   37 +-
 .../relational/sql/ast/ExplainOutputFormat.java}   |   19 +-
 .../plan/relational/sql/ast/InsertRow.java         |    5 +-
 .../plan/relational/sql/ast/InsertRows.java        |   14 +-
 .../plan/relational/sql/ast/InsertTablet.java      |   13 +-
 .../plan/relational/sql/ast/MigrateRegion.java     |   22 +-
 .../plan/relational/sql/ast/PipeEnriched.java      |    2 +-
 .../{PipeEnriched.java => ShowCreateDatabase.java} |   43 +-
 .../ast/{PipeEnriched.java => ShowCreatePipe.java} |   45 +-
 .../{PipeEnriched.java => ShowCreateTopic.java}    |   45 +-
 .../relational/sql/ast/WrappedInsertStatement.java |   22 +-
 .../plan/relational/sql/parser/AstBuilder.java     |   94 +-
 .../plan/relational/sql/parser/ErrorHandler.java   |    6 +-
 .../relational/sql/util/DataNodeSqlFormatter.java  |   55 +
 .../plan/scheduler/load/LoadTsFileScheduler.java   |    1 +
 .../queryengine/plan/statement/StatementType.java  |    2 +
 .../plan/statement/StatementVisitor.java           |   12 +
 .../plan/statement/crud/InsertBaseStatement.java   |  210 +-
 .../plan/statement/crud/InsertRowStatement.java    |  128 +-
 .../crud/InsertRowsOfOneDeviceStatement.java       |   12 +
 .../plan/statement/crud/InsertTabletStatement.java |  161 +-
 .../metadata/DatabaseSchemaStatement.java          |   32 +-
 .../statement/metadata/ShowDatabaseStatement.java  |    8 +-
 .../metadata/region/MigrateRegionStatement.java    |   14 +-
 .../AlterTopicStatement.java}                      |   49 +-
 ...RepairDataPartitionTableProgressStatement.java} |   49 +-
 .../FragmentInstanceStatisticsJsonDrawer.java      |  372 ++++
 .../db/queryengine/udf/InternalQueryExecutor.java  |  133 ++
 .../db/queryengine/udf/InternalQueryResult.java    |   65 +
 .../iotdb/db/queryengine/udf/IoTDBLocalImpl.java   |  147 ++
 .../iotdb/db/queryengine/udf/UDFResultSetImpl.java |  154 ++
 .../schemaengine/schemaregion/ISchemaRegion.java   |   10 +-
 .../GeneralRegionAttributeSecurityService.java     |   67 +-
 .../schemaregion/impl/SchemaRegionMemoryImpl.java  |    6 +-
 .../schemaregion/impl/SchemaRegionPBTreeImpl.java  |    6 +-
 .../logfile/FakeCRC32Deserializer.java             |    8 +-
 .../schemaregion/logfile/SchemaLogReader.java      |    2 +-
 .../mem/mnode/container/MemMNodeContainer.java     |    2 +-
 .../mtree/impl/pbtree/flush/Scheduler.java         |   69 +-
 .../mnode/container/CachedMNodeContainer.java      |    3 +-
 .../mtree/impl/pbtree/schemafile/SchemaFile.java   |    3 +-
 .../pbtree/schemafile/log/SchemaFileLogReader.java |    7 +-
 .../pbtree/schemafile/pagemgr/PageIOChannel.java   |    3 +-
 .../pbtree/schemafile/pagemgr/PageManager.java     |    9 +-
 .../schemaengine/schemaregion/tag/TagLogFile.java  |   12 +-
 .../schemaengine/schemaregion/tag/TagManager.java  |  125 +-
 .../db/schemaengine/table/DataNodeTableCache.java  |   47 +-
 .../schemaengine/table/InformationSchemaUtils.java |    7 +-
 .../iotdb/db/service/DataNodeShutdownHook.java     |   10 +-
 .../iotdb/db/service/ExternalRPCService.java       |   84 +-
 .../iotdb/db/service/RegionMigrateService.java     |   12 +-
 .../iotdb/db/storageengine/StorageEngine.java      |    3 +
 .../db/storageengine/buffer/BloomFilterCache.java  |   24 +-
 .../iotdb/db/storageengine/buffer/ChunkCache.java  |   19 +-
 .../buffer/TimeSeriesMetadataCache.java            |  130 +-
 .../db/storageengine/dataregion/DataRegion.java    |    3 +-
 .../RepairUnsortedFileCompactionPerformer.java     |    9 +-
 .../task/InsertionCrossSpaceCompactionTask.java    |    8 +-
 .../utils/writer/AbstractCompactionWriter.java     |  165 +-
 .../writer/AbstractCrossCompactionWriter.java      |    3 +-
 .../writer/AbstractInnerCompactionWriter.java      |    4 +-
 .../utils/writer/FastInnerCompactionWriter.java    |   10 +-
 .../writer/ReadPointCrossCompactionWriter.java     |    5 +-
 .../writer/ReadPointInnerCompactionWriter.java     |    5 +-
 .../writer/RepairUnsortedFileCompactionWriter.java |    4 +-
 .../compaction/schedule/CompactionWorker.java      |    2 +-
 .../dataregion/memtable/AbstractMemTable.java      |  120 +-
 .../memtable/AbstractWritableMemChunk.java         |   17 +
 .../memtable/AlignedWritableMemChunk.java          |    7 +-
 .../dataregion/memtable/TsFileProcessor.java       |  162 +-
 .../dataregion/memtable/WritableMemChunk.java      |    7 +-
 .../dataregion/memtable/WritableMemChunkGroup.java |    2 +-
 .../dataregion/modification/IDPredicate.java       |    7 +-
 .../modification/v1/ModificationFileV1.java        |    3 +-
 .../dataregion/read/QueryDataSourceType.java       |    3 +-
 .../dataregion/read/control/FileReaderManager.java |   88 +
 .../dataregion/snapshot/SnapshotLoader.java        |   91 +-
 .../dataregion/tsfile/TsFileResource.java          |   13 +-
 .../dataregion/wal/io/WALFileVersion.java          |    4 +-
 .../dataregion/wal/io/WALInputStream.java          |   32 +-
 .../dataregion/wal/io/WALMetaData.java             |   12 +-
 .../dataregion/wal/recover/WALRepairWriter.java    |    3 +-
 .../db/storageengine/load/LoadTsFileManager.java   |   13 +
 .../storageengine/load/active/ActiveLoadAgent.java |    6 +
 .../load/active/ActiveLoadDirScanner.java          |   17 +-
 .../active/ActiveLoadFailedMessageHandler.java     |   16 +
 .../active/ActiveLoadScheduledExecutorService.java |   21 +-
 .../load/active/ActiveLoadTsFileLoader.java        |   29 +-
 ...ertedInsertTabletStatementExceptionVisitor.java |    9 +-
 ...ertedInsertTabletStatementExceptionVisitor.java |    9 +-
 ...eeStatementDataTypeConvertExecutionVisitor.java |   15 +-
 .../converter/LoadTreeTsFileTabletIterator.java    |  557 ++++++
 .../converter/LoadTsFileDataTypeConverter.java     |  111 ++
 .../load/splitter/AlignedChunkData.java            |    5 +-
 .../db/storageengine/rescon/disk/TierManager.java  |   20 +-
 .../subscription/agent/SubscriptionTopicAgent.java |   98 +
 .../broker/SubscriptionPrefetchingQueue.java       |  207 +-
 .../consensus/ConsensusLogToTabletConverter.java   |   70 +-
 .../event/batch/SubscriptionPipeEventBatch.java    |   23 +-
 .../SubscriptionPipeEventBatchSegmentLock.java     |    4 +-
 .../event/batch/SubscriptionPipeEventBatches.java  |   29 +
 .../response/SubscriptionEventTsFileResponse.java  |   14 +-
 .../receiver/SubscriptionReceiverV1.java           |   73 +-
 .../db/trigger/executor/TriggerFireVisitor.java    |   53 +-
 .../iotdb/db/utils/DataNodeObjectFileService.java  |    3 +-
 .../java/org/apache/iotdb/db/utils/MemUtils.java   |   71 +-
 .../apache/iotdb/db/utils/cte/MemoryReader.java    |   18 +-
 .../strategy/DirectoryStrategyTest.java            |   35 +
 .../dataregion/DataRegionStateMachineTest.java     |   93 +
 .../cache/TreeDeviceSchemaCacheManagerTest.java    |   39 +
 .../metadata/mtree/schemafile/SchemaFileTest.java  |   33 +
 .../schemaRegion/SchemaRegionManagementTest.java   |   28 +-
 .../agent/plugin/PipeDataNodePluginAgentTest.java  |   25 +-
 .../pipe/agent/task/PipeDataNodeTaskAgentTest.java |  159 ++
 .../agent/task/PipeSinkSubtaskExecutorTest.java    |    1 +
 .../task/builder/PipeDataNodeTaskBuilderTest.java  |  111 ++
 .../subtask/sink/PipeSinkSubtaskManagerTest.java   |   95 +
 .../task/subtask/sink/PipeSinkSubtaskTest.java     |   44 +
 .../db/pipe/consensus/DeletionResourceTest.java    |   10 +
 .../pipe/event/PipeTabletInsertionEventTest.java   |  211 ++
 .../pipe/event/TsFileInsertionEventParserTest.java |  343 +++-
 .../schema/PipeSchemaRegionSinkMetricsTest.java    |  154 ++
 .../db/pipe/pattern/TreePatternPruningTest.java    |   41 +-
 .../changing/ChangingValueFilterTest.java          |   55 +
 .../sdt/SwingingDoorTrendingFilterTest.java        |   56 +
 .../TumblingTimeSamplingProcessorTest.java         |  192 ++
 .../receiver/PipeStatementTsStatusVisitorTest.java |   32 +
 .../protocol/thrift/IoTDBDataNodeReceiverTest.java |   65 +
 .../transform/converter/ValueConverterTest.java    |   70 +
 .../PipeConvertedInsertRowStatementTest.java       |   55 +
 .../memory/InsertNodeMemoryEstimatorTest.java      |   12 +
 .../tsfile/PipeTsFileResourceSegmentLockTest.java  |   71 +
 .../sink/IoTDBDataNodeAsyncClientManagerTest.java  |   57 +
 .../pipe/sink/PipeDataNodeThriftRequestTest.java   |  665 +++++++
 .../db/pipe/sink/PipeSchemaRegionSinkTest.java     |  386 ++++
 .../PipeSchemaRegionWritePlanEventBatchTest.java   |  464 +++++
 .../apache/iotdb/db/pipe/sink/PipeSinkTest.java    |  213 ++
 .../handler/PipeTransferTrackableHandlerTest.java  |   38 +-
 .../sink/util/TabletStatementConverterTest.java    |   64 +
 .../db/pipe/source/PipeRealtimeExtractTest.java    |  151 +-
 ...ricalDataRegionTsFileAndDeletionSourceTest.java |  100 +
 .../PipeTsFileEpochProgressIndexKeeperTest.java    |   46 +-
 ...nternalRPCServiceImplPushMultiPipeMetaTest.java |  246 +++
 .../execution/aggregation/AccumulatorTest.java     |   46 +
 .../SlidingWindowAggregatorFactoryTest.java}       |   29 +-
 .../fragment/FragmentInstanceContextTest.java      |  623 ++++++
 .../fragment/QueryModificationLoaderTest.java      |    3 +
 .../execution/operator/CteScanOperatorTest.java    |    2 +-
 .../operator/ExplainAnalyzeOperatorTest.java       |   96 +
 .../operator/SingleDeviceViewOperatorTest.java     |    9 +-
 .../process/window/function/FunctionTestUtils.java |    5 +-
 .../operator/window/SessionWindowTest.java         |   70 +
 .../schedule/DefaultDriverSchedulerTest.java       |   41 +
 .../queue/MultilevelPriorityQueueTest.java         |   13 +-
 .../queryengine/plan/analyze/AnalyzeUtilsTest.java |   74 +
 .../plan/analyze/load/LoadTsFileAnalyzerTest.java  |   97 +
 .../metadata/relational/ShowCreateTaskTest.java    |  234 +++
 .../config/sys/pipe/ShowPipeTaskTest.java          |   72 +
 ...TableModelStatementMemorySourceVisitorTest.java |   88 +
 .../parser/MigrateRegionMultiRegionParseTest.java  |   63 +
 .../parser/RemoveDataNodeMultiNodeParseTest.java   |   59 +
 .../plan/parser/StatementGeneratorTest.java        |   36 +
 .../LocalExecutionPlannerOperatorsMemoryTest.java  |  164 ++
 .../distribution/AggregationTableScanTest.java     |    4 +-
 .../planner/node/PlanGraphJsonPrinterTest.java     |  573 ++++++
 .../planner/node/write/InsertRowNodeSerdeTest.java |  127 ++
 .../node/write/InsertRowsNodeSerdeTest.java        |   35 +
 .../write/InsertRowsOfOneDeviceNodeSerdeTest.java  |   34 +
 .../node/write/InsertTabletNodeSerdeTest.java      |  130 ++
 .../planner/node/write/WritePlanNodeSplitTest.java |   41 +
 .../write/InsertNodeIsMeasurementFailedTest.java   |  277 +++
 .../analyzer/AggregationCornerCaseTest.java        |   12 +-
 .../relational/analyzer/TableFunctionTest.java     |  187 ++
 .../ExternalTsFileQueryResourceTest.java           |  203 ++
 .../relational/planner/CteMaterializerTest.java    |    1 +
 .../plan/relational/planner/CteSubqueryTest.java   |    1 +
 .../plan/relational/sql/ExplainFormatTest.java     |  186 ++
 .../plan/relational/sql/ShowCreateTopicTest.java   |   73 +
 .../MigrateRegionMultiRegionStatementTest.java     |   75 +
 .../RemoveDataNodeMultiNodeStatementTest.java      |   69 +
 .../relational/sql/parser/TopicStatementTest.java  |   48 +
 .../scheduler/load/LoadTsFileSchedulerTest.java    |   31 +
 .../crud/InsertStatementPartialInsertTest.java     |  320 +++
 .../FragmentInstanceStatisticsJsonDrawerTest.java  |  594 ++++++
 .../logfile/FakeCRC32DeserializerTest.java         |  108 +
 .../schemaregion/tag/TagLogFileTest.java           |   57 +
 .../schemaregion/tag/TagManagerTest.java           |  216 ++
 .../schemaengine/table/DataNodeTableCacheTest.java |  106 +
 .../buffer/TimeSeriesMetadataCacheTest.java        |  283 +++
 .../storageengine/dataregion/DataRegionTest.java   |   30 +-
 .../utils/writer/AbstractCompactionWriterTest.java |  167 ++
 .../compaction/repair/AbstractRepairDataTest.java  |   11 +-
 .../AbstractMemTablePartialInsertTest.java         |  113 ++
 .../memtable/MemChunkDeserializeTest.java          |   23 +
 .../dataregion/memtable/TsFileProcessorTest.java   |  172 ++
 .../modification/TableDeletionEntryTest.java       |    9 +
 .../dataregion/snapshot/IoTDBSnapshotTest.java     |  196 +-
 .../active/ActiveLoadFailedMessageHandlerTest.java |   51 +
 .../load/active/ActiveLoadTsFileLoaderTest.java    |  152 ++
 ...atementDataTypeConvertExecutionVisitorTest.java |  399 ++++
 .../ConsensusLogToTabletConverterTest.java         |   58 +
 ...SubscriptionPipeEventBatchSegmentLockTest.java} |   34 +-
 .../receiver/SubscriptionReceiverV1Test.java       |   95 +
 .../iotdb/db/utils/ConfigurationFileUtilsTest.java |   90 +-
 .../apache/iotdb/db/utils/EnvironmentUtils.java    |   88 +-
 .../iotdb/db/utils/EnvironmentUtilsTest.java       |   52 +
 .../org/apache/iotdb/db/utils/MemUtilsTest.java    |  127 ++
 .../src/test/resources/iotdb-common.properties     |    2 +-
 .../src/test/resources/iotdb-system.properties     |    3 +-
 iotdb-core/metrics/core/pom.xml                    |    4 +-
 iotdb-core/metrics/interface/pom.xml               |    8 +-
 .../reporter/iotdb/IoTDBSessionReporter.java       |    4 +-
 iotdb-core/metrics/pom.xml                         |    2 +-
 iotdb-core/node-commons/pom.xml                    |   30 +-
 .../conf/iotdb-system.properties.template          |  119 +-
 .../apache/iotdb/commons/i18n/CommonMessages.java  |    8 +
 .../apache/iotdb/commons/i18n/PipeMessages.java    |    7 +
 .../apache/iotdb/commons/i18n/UtilMessages.java    |    2 +
 .../apache/iotdb/commons/i18n/CommonMessages.java  |    8 +
 .../apache/iotdb/commons/i18n/PipeMessages.java    |    6 +
 .../apache/iotdb/commons/i18n/UtilMessages.java    |    2 +
 .../iotdb/commons/auth/user/BasicUserManager.java  |    6 +-
 .../async/AsyncAINodeInternalServiceClient.java    |    2 +-
 .../AsyncConfigNodeInternalServiceClient.java      |    2 +-
 .../async/AsyncDataNodeExternalServiceClient.java  |    2 +-
 .../async/AsyncDataNodeInternalServiceClient.java  |    2 +-
 .../AsyncDataNodeMPPDataExchangeServiceClient.java |    2 +-
 .../async/AsyncIoTConsensusV2ServiceClient.java    |    2 +-
 .../async/AsyncPipeDataTransferServiceClient.java  |    2 +-
 .../client/request/AsyncRequestManager.java        |   19 +-
 .../commons/client/sync/SyncAINodeClient.java      |    3 +-
 .../client/sync/SyncConfigNodeIServiceClient.java  |    3 +-
 .../sync/SyncDataNodeInternalServiceClient.java    |    3 +-
 .../SyncDataNodeMPPDataExchangeServiceClient.java  |    3 +-
 .../sync/SyncIoTConsensusV2ServiceClient.java      |    3 +-
 .../commons/concurrent/IoTDBThreadPoolFactory.java |   17 +
 .../apache/iotdb/commons/conf/CommonConfig.java    |   72 +
 .../iotdb/commons/conf/CommonDescriptor.java       |   77 +-
 .../iotdb/commons/conf/ConfigurationFileUtils.java |   16 +-
 .../commons/consensus/index/ProgressIndex.java     |   11 +
 .../index/impl/TimeWindowStateProgressIndex.java   |   12 +-
 .../disk/strategy/DirectoryStrategyType.java       |   32 +-
 .../MinFolderOccupiedSpaceFirstStrategy.java       |  103 +-
 .../RepairDataPartitionTableProgressState.java}    |   15 +-
 .../commons/executable/ExecutableManager.java      |    3 +-
 .../memory/AutoResizingBufferMemoryMetrics.java    |  112 ++
 .../apache/iotdb/commons/memory/MemoryConfig.java  |   87 +-
 .../iotdb/commons/partition/DataPartition.java     |   19 +-
 .../plugin/constructor/PipeSinkConstructor.java    |    8 +-
 .../commons/pipe/agent/task/PipeTaskAgent.java     |  124 +-
 .../agent/task/execution/PipeSubtaskExecutor.java  |   31 +-
 .../pipe/agent/task/meta/PipeMetaKeeper.java       |  177 +-
 .../pipe/agent/task/meta/PipeRuntimeMeta.java      |    9 +
 .../pipe/agent/task/meta/PipeStaticMeta.java       |   64 +
 .../commons/pipe/agent/task/meta/PipeTaskMeta.java |    4 +
 .../pipe/agent/task/meta/PipeTemporaryMeta.java    |   29 +-
 .../agent/task/meta/PipeTemporaryMetaInAgent.java  |   25 +-
 .../task/meta/PipeTemporaryMetaInCoordinator.java  |   29 +-
 .../task/subtask/PipeAbstractSinkSubtask.java      |   57 +-
 .../agent/task/subtask/PipeReportableSubtask.java  |   56 +-
 .../pipe/agent/task/subtask/PipeSubtask.java       |   17 +-
 .../pipe/config/constant/PipeSinkConstant.java     |   22 +
 .../pipe/config/constant/PipeSourceConstant.java   |    2 +
 .../pipe/config/constant/SystemConstant.java       |   16 +
 .../options/PipeInclusionOptions.java              |    4 +-
 .../pipe/datastructure/pattern/TablePattern.java   |   17 +-
 .../pipe/datastructure/pattern/TreePattern.java    |  196 +-
 .../queue/serializer/PlainQueueSerializer.java     |    3 +-
 .../datastructure/visibility/VisibilityUtils.java  |   85 +-
 .../commons/pipe/resource/log/PipeLogger.java      |   18 +-
 .../resource/log/PipePeriodicalLogReducer.java     |   75 +-
 .../pipe/sink/client/IoTDBSyncClientManager.java   |    6 +-
 .../pipe/sink/limiter/PipeEndPointRateLimiter.java |    2 +-
 .../thrift/request/PipeTransferFileSealReqV2.java  |    8 +
 .../pipe/sink/protocol/IoTDBAirGapSink.java        |    5 +-
 .../commons/pipe/sink/protocol/IoTDBSink.java      |    8 +
 .../protocol/PipeSinkWithSchedulingDelay.java}     |   11 +-
 .../iotdb/commons/pipe/source/IoTDBSource.java     |   23 -
 .../execution/MemoryEstimationHelper.java          |    4 +-
 .../plan/planner/plan/node/PlanNodeType.java       |    2 +
 .../function/TableBuiltinTableFunction.java        |    4 +
 .../plan/relational/sql/ast/GroupBy.java           |   24 +-
 .../sql/util/CommonQuerySqlFormatter.java          |    9 +-
 .../queryengine/utils/cte/CteDataStore.java        |   14 +
 .../schema/column/ColumnHeaderConstant.java        |   46 +-
 .../commons/schema/table/InformationSchema.java    |    9 +
 .../schema/table/InsertNodeMeasurementInfo.java    |    9 +-
 .../schema/table/column/TsTableColumnCategory.java |    7 +-
 .../service/AbstractThriftServiceThread.java       |   52 +-
 .../iotdb/commons/service/NoopServerContext.java   |   48 +
 .../iotdb/commons/service/metric/enums/Metric.java |    2 +
 .../subscription/config/SubscriptionConfig.java    |    4 +
 .../commons/subscription/meta/topic/TopicMeta.java |  271 ++-
 .../TableBuiltinAggregationFunction.java           |    4 +-
 .../builtin/relational/tvf/M4TableFunction.java    |  802 ++++++++
 .../org/apache/iotdb/commons/utils/FileUtils.java  |   17 +
 .../org/apache/iotdb/commons/utils/IOUtils.java    |   24 +-
 .../apache/iotdb/commons/utils/JVMCommonUtils.java |   11 +-
 .../utils/KillPoint/RegionMaintainKillPoints.java  |   34 +
 .../org/apache/iotdb/commons/utils/PathUtils.java  |   56 +-
 .../iotdb/commons/IoTDBThreadPoolFactoryTest.java  |   16 +
 .../client/mock/MockInternalRPCService.java        |    7 +-
 .../client/request/AsyncRequestManagerTest.java    |  226 +++
 ...monDescriptorDiskSpaceWarningThresholdTest.java |   78 +
 ...FolderOccupiedSpaceFirstStrategyRealFsTest.java |  127 ++
 .../disk/strategy/DirectoryStrategyTypeTest.java   |   63 +
 .../agent/task/meta/PipeTemporaryMetaTest.java     |   92 +
 .../options/PipeInclusionOptionsTest.java          |   48 +
 .../pattern/TreePatternParseTest.java              |   83 +
 .../visibility/VisibilityUtilsTest.java            |   97 +
 .../commons/pipe/resource/PipeLoggerTest.java      |   83 +
 .../resource/log/PipePeriodicalLogReducerTest.java |   65 +
 .../common/PipeTransferSliceReqBuilderTest.java    |   32 +
 .../thrift/request/PipeRequestTypeTest.java        |   61 +
 .../request/PipeTransferCompressedReqTest.java     |  112 ++
 .../request/PipeTransferFileSealReqV2Test.java     |   65 +
 .../iotdb/commons/pipe/task/PipeMetaDeSerTest.java |   26 +
 .../commons/pipe/task/PipeMetaKeeperTest.java      |  189 ++
 .../commons/pipe/task/PipeSleepIntervalTest.java   |   86 +-
 .../table/InsertNodeMeasurementInfoTest.java       |   83 +
 .../NoopServerContextTest.java}                    |   31 +-
 .../commons/subscription/topic/TopicDeSerTest.java |  200 ++
 .../apache/iotdb/commons/utils/FileUtilsTest.java  |    8 +-
 .../apache/iotdb/commons/utils/IOUtilsTest.java    |  147 ++
 .../iotdb/commons/utils/JVMCommonUtilsTest.java    |   27 +
 iotdb-core/pom.xml                                 |    2 +-
 iotdb-core/relational-grammar/pom.xml              |    2 +-
 .../db/relational/grammar/sql/RelationalSql.g4     |   31 +-
 iotdb-protocol/pom.xml                             |    2 +-
 iotdb-protocol/thrift-ainode/pom.xml               |    4 +-
 iotdb-protocol/thrift-commons/pom.xml              |    2 +-
 .../thrift-commons/src/main/thrift/common.thrift   |    2 +
 iotdb-protocol/thrift-confignode/pom.xml           |    4 +-
 .../src/main/thrift/confignode.thrift              |   23 +-
 iotdb-protocol/thrift-consensus/pom.xml            |    4 +-
 iotdb-protocol/thrift-datanode/pom.xml             |    4 +-
 .../src/main/thrift/datanode.thrift                |   36 +
 library-udf/pom.xml                                |    8 +-
 library-udf/src/assembly/tools/register-UDF.bat    |    1 +
 library-udf/src/assembly/tools/register-UDF.sh     |    1 +
 pom.xml                                            |  181 +-
 scripts/conf/confignode-env.sh                     |   61 +-
 scripts/conf/datanode-env.sh                       |   70 +-
 scripts/sbin/start-cli.sh                          |   13 +-
 scripts/sbin/windows/start-cli.bat                 |   23 +-
 scripts/sbin/windows/start-confignode.bat          |   20 +-
 scripts/sbin/windows/start-datanode.bat            |   19 +-
 scripts/tools/ops/health_check.sh                  |    2 +-
 scripts/tools/windows/ops/health_check.bat         |    4 +-
 1387 files changed, 84040 insertions(+), 7340 deletions(-)

diff --cc dn1/LICENSE
index 145d60d9498,00000000000..d21627d28ee
mode 100644,000000..100644
--- a/dn1/LICENSE
+++ b/dn1/LICENSE
@@@ -1,293 -1,0 +1,312 @@@
 +                                 Apache License
 +                           Version 2.0, January 2004
 +                        http://www.apache.org/licenses/
 +
 +   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
 +
 +   1. Definitions.
 +
 +      "License" shall mean the terms and conditions for use, reproduction,
 +      and distribution as defined by Sections 1 through 9 of this document.
 +
 +      "Licensor" shall mean the copyright owner or entity authorized by
 +      the copyright owner that is granting the License.
 +
 +      "Legal Entity" shall mean the union of the acting entity and all
 +      other entities that control, are controlled by, or are under common
 +      control with that entity. For the purposes of this definition,
 +      "control" means (i) the power, direct or indirect, to cause the
 +      direction or management of such entity, whether by contract or
 +      otherwise, or (ii) ownership of fifty percent (50%) or more of the
 +      outstanding shares, or (iii) beneficial ownership of such entity.
 +
 +      "You" (or "Your") shall mean an individual or Legal Entity
 +      exercising permissions granted by this License.
 +
 +      "Source" form shall mean the preferred form for making modifications,
 +      including but not limited to software source code, documentation
 +      source, and configuration files.
 +
 +      "Object" form shall mean any form resulting from mechanical
 +      transformation or translation of a Source form, including but
 +      not limited to compiled object code, generated documentation,
 +      and conversions to other media types.
 +
 +      "Work" shall mean the work of authorship, whether in Source or
 +      Object form, made available under the License, as indicated by a
 +      copyright notice that is included in or attached to the work
 +      (an example is provided in the Appendix below).
 +
 +      "Derivative Works" shall mean any work, whether in Source or Object
 +      form, that is based on (or derived from) the Work and for which the
 +      editorial revisions, annotations, elaborations, or other modifications
 +      represent, as a whole, an original work of authorship. For the purposes
 +      of this License, Derivative Works shall not include works that remain
 +      separable from, or merely link (or bind by name) to the interfaces of,
 +      the Work and Derivative Works thereof.
 +
 +      "Contribution" shall mean any work of authorship, including
 +      the original version of the Work and any modifications or additions
 +      to that Work or Derivative Works thereof, that is intentionally
 +      submitted to Licensor for inclusion in the Work by the copyright owner
 +      or by an individual or Legal Entity authorized to submit on behalf of
 +      the copyright owner. For the purposes of this definition, "submitted"
 +      means any form of electronic, verbal, or written communication sent
 +      to the Licensor or its representatives, including but not limited to
 +      communication on electronic mailing lists, source code control systems,
 +      and issue tracking systems that are managed by, or on behalf of, the
 +      Licensor for the purpose of discussing and improving the Work, but
 +      excluding communication that is conspicuously marked or otherwise
 +      designated in writing by the copyright owner as "Not a Contribution."
 +
 +      "Contributor" shall mean Licensor and any individual or Legal Entity
 +      on behalf of whom a Contribution has been received by Licensor and
 +      subsequently incorporated within the Work.
 +
 +   2. Grant of Copyright License. Subject to the terms and conditions of
 +      this License, each Contributor hereby grants to You a perpetual,
 +      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
 +      copyright license to reproduce, prepare Derivative Works of,
 +      publicly display, publicly perform, sublicense, and distribute the
 +      Work and such Derivative Works in Source or Object form.
 +
 +   3. Grant of Patent License. Subject to the terms and conditions of
 +      this License, each Contributor hereby grants to You a perpetual,
 +      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
 +      (except as stated in this section) patent license to make, have made,
 +      use, offer to sell, sell, import, and otherwise transfer the Work,
 +      where such license applies only to those patent claims licensable
 +      by such Contributor that are necessarily infringed by their
 +      Contribution(s) alone or by combination of their Contribution(s)
 +      with the Work to which such Contribution(s) was submitted. If You
 +      institute patent litigation against any entity (including a
 +      cross-claim or counterclaim in a lawsuit) alleging that the Work
 +      or a Contribution incorporated within the Work constitutes direct
 +      or contributory patent infringement, then any patent licenses
 +      granted to You under this License for that Work shall terminate
 +      as of the date such litigation is filed.
 +
 +   4. Redistribution. You may reproduce and distribute copies of the
 +      Work or Derivative Works thereof in any medium, with or without
 +      modifications, and in Source or Object form, provided that You
 +      meet the following conditions:
 +
 +      (a) You must give any other recipients of the Work or
 +          Derivative Works a copy of this License; and
 +
 +      (b) You must cause any modified files to carry prominent notices
 +          stating that You changed the files; and
 +
 +      (c) You must retain, in the Source form of any Derivative Works
 +          that You distribute, all copyright, patent, trademark, and
 +          attribution notices from the Source form of the Work,
 +          excluding those notices that do not pertain to any part of
 +          the Derivative Works; and
 +
 +      (d) If the Work includes a "NOTICE" text file as part of its
 +          distribution, then any Derivative Works that You distribute must
 +          include a readable copy of the attribution notices contained
 +          within such NOTICE file, excluding those notices that do not
 +          pertain to any part of the Derivative Works, in at least one
 +          of the following places: within a NOTICE text file distributed
 +          as part of the Derivative Works; within the Source form or
 +          documentation, if provided along with the Derivative Works; or,
 +          within a display generated by the Derivative Works, if and
 +          wherever such third-party notices normally appear. The contents
 +          of the NOTICE file are for informational purposes only and
 +          do not modify the License. You may add Your own attribution
 +          notices within Derivative Works that You distribute, alongside
 +          or as an addendum to the NOTICE text from the Work, provided
 +          that such additional attribution notices cannot be construed
 +          as modifying the License.
 +
 +      You may add Your own copyright statement to Your modifications and
 +      may provide additional or different license terms and conditions
 +      for use, reproduction, or distribution of Your modifications, or
 +      for any such Derivative Works as a whole, provided Your use,
 +      reproduction, and distribution of the Work otherwise complies with
 +      the conditions stated in this License.
 +
 +   5. Submission of Contributions. Unless You explicitly state otherwise,
 +      any Contribution intentionally submitted for inclusion in the Work
 +      by You to the Licensor shall be under the terms and conditions of
 +      this License, without any additional terms or conditions.
 +      Notwithstanding the above, nothing herein shall supersede or modify
 +      the terms of any separate license agreement you may have executed
 +      with Licensor regarding such Contributions.
 +
 +   6. Trademarks. This License does not grant permission to use the trade
 +      names, trademarks, service marks, or product names of the Licensor,
 +      except as required for reasonable and customary use in describing the
 +      origin of the Work and reproducing the content of the NOTICE file.
 +
 +   7. Disclaimer of Warranty. Unless required by applicable law or
 +      agreed to in writing, Licensor provides the Work (and each
 +      Contributor provides its Contributions) on an "AS IS" BASIS,
 +      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 +      implied, including, without limitation, any warranties or conditions
 +      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
 +      PARTICULAR PURPOSE. You are solely responsible for determining the
 +      appropriateness of using or redistributing the Work and assume any
 +      risks associated with Your exercise of permissions under this License.
 +
 +   8. Limitation of Liability. In no event and under no legal theory,
 +      whether in tort (including negligence), contract, or otherwise,
 +      unless required by applicable law (such as deliberate and grossly
 +      negligent acts) or agreed to in writing, shall any Contributor be
 +      liable to You for damages, including any direct, indirect, special,
 +      incidental, or consequential damages of any character arising as a
 +      result of this License or out of the use or inability to use the
 +      Work (including but not limited to damages for loss of goodwill,
 +      work stoppage, computer failure or malfunction, or any and all
 +      other commercial damages or losses), even if such Contributor
 +      has been advised of the possibility of such damages.
 +
 +   9. Accepting Warranty or Additional Liability. While redistributing
 +      the Work or Derivative Works thereof, You may choose to offer,
 +      and charge a fee for, acceptance of support, warranty, indemnity,
 +      or other liability obligations and/or rights consistent with this
 +      License. However, in accepting such obligations, You may act only
 +      on Your own behalf and on Your sole responsibility, not on behalf
 +      of any other Contributor, and only if You agree to indemnify,
 +      defend, and hold each Contributor harmless for any liability
 +      incurred by, or claims asserted against, such Contributor by reason
 +      of your accepting any such warranty or additional liability.
 +
 +   END OF TERMS AND CONDITIONS
 +
 +   APPENDIX: How to apply the Apache License to your work.
 +
 +      To apply the Apache License to your work, attach the following
 +      boilerplate notice, with the fields enclosed by brackets "[]"
 +      replaced with your own identifying information. (Don't include
 +      the brackets!)  The text should be enclosed in the appropriate
 +      comment syntax for the file format. We also recommend that a
 +      file or class name and description of purpose be included on the
 +      same "printed page" as the copyright notice for easier
 +      identification within third-party archives.
 +
 +   Copyright [yyyy] [name of copyright owner]
 +
 +   Licensed under the Apache License, Version 2.0 (the "License");
 +   you may not use this file except in compliance with the License.
 +   You may obtain a copy of the License at
 +
 +       http://www.apache.org/licenses/LICENSE-2.0
 +
 +   Unless required by applicable law or agreed to in writing, software
 +   distributed under the License is distributed on an "AS IS" BASIS,
 +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 +   See the License for the specific language governing permissions and
 +   limitations under the License.
 +
 +
 +================================================================
 +APACHE IOTDB SUBCOMPONENTS:
 +
 +Apache IoTDB project includes a number of submodules with separate copyright notices
 +and license terms. Your use of these submodules is subject to the terms and
 +conditions of the following licenses.
 +
 +================================================================
 +
 +The binary distribution of this product bundles these dependencies under the
 +following license. See licenses/ for text of these licenses.
 +
 +Apache License 2.0
 +--------------------------------------
 +commons-cli:commons-cli:1.5.0
 +com.google.code.gson:gson:2.13.1
 +com.google.guava.guava:32.1.2-jre
 +com.fasterxml.jackson.core:jackson-annotations:2.16.2
 +com.fasterxml.jackson.core:jackson-core:2.16.2
 +com.fasterxml.jackson.core:jackson-databind:2.16.2
- jakarta.inject:jakarta.inject:2.6.1
++com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-base:2.18.6
++com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-json-provider:2.18.6
++com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations:2.18.6
++io.swagger.core.v3:swagger-annotations-jakarta:2.2.50
++io.swagger.core.v3:swagger-core-jakarta:2.2.50
++io.swagger.core.v3:swagger-integration-jakarta:2.2.50
++io.swagger.core.v3:swagger-jaxrs2-jakarta:2.2.50
++io.swagger.core.v3:swagger-models-jakarta:2.2.50
++jakarta.inject:jakarta.inject-api:2.0.1
 +at.yawk.lz4:lz4-java:1.10.0
 +com.github.ben-manes.caffeine:caffeine:2.9.3
- org.eclipse.jetty:jetty-http:9.4.58.v20250814
- org.eclipse.jetty:jetty-io:9.4.58.v20250814
- org.eclipse.jetty:jetty-security:9.4.58.v20250814
- org.eclipse.jetty:jetty-server:9.4.58.v20250814
- org.eclipse.jetty:jetty-servlet:9.4.58.v20250814
- org.eclipse.jetty:jetty-util:9.4.58.v20250814
++org.eclipse.jetty:jetty-http:12.0.36
++org.eclipse.jetty:jetty-io:12.0.36
++org.eclipse.jetty:jetty-security:12.0.36
++org.eclipse.jetty:jetty-server:12.0.36
++org.eclipse.jetty:jetty-session:12.0.36
++org.eclipse.jetty.ee10:jetty-ee10-servlet:12.0.36
++org.eclipse.jetty:jetty-util:12.0.36
 +com.google.code.findbugs:jsr305:3.0.2
 +com.librato.metrics:librato-java:2.1.0
- org.apache.thrift:libthrift:0.14.1
++org.apache.thrift:libthrift:0.23.0
 +io.dropwizard.metrics:metrics-core:4.2.19
 +io.dropwizard.metrics:metrics-jvm:3.2.2
 +com.librato.metrics:metrics-librato:5.1.0
 +com.github.moquette-io.moquette:moquette-broker:0.18
 +io.netty:netty-buffer:4.1.134.Final
 +io.netty:netty-codec:4.1.134.Final
 +io.netty:netty-codec-http:4.1.134.Final
 +io.netty:netty-codec-mqtt:4.1.134.Final
 +io.netty:netty-common:4.1.134.Final
 +io.netty:netty-handler:4.1.134.Final
 +io.netty:netty-resolver:4.1.134.Final
 +io.netty:netty-transport:4.1.134.Final
 +io.netty:netty-transport-native-epoll:4.1.134.Final:linux-aarch_64
 +io.netty:netty-transport-native-epoll:4.1.134.Final:linux-x86_64
 +io.netty:netty-transport-native-unix-common:4.1.134.Final
 +org.osgi:org.osgi.core:7.0.0
 +org.osgi:osgi.cmpn:7.0.0
 +org.ops4j.pax.jdbc:pax-jdbc-common:1.5.6
 +org.xerial.snappy:snappy-java:1.1.10.5
 +io.airlift.airline:0.9
 +
 +
 +BSD 3-Clause
 +------------
- org.antlr:antlr-runtime:4.9.3
++org.antlr:antlr4-runtime:4.13.2
 +org.ow2.asm:asm:9.3
 +org.jline:jline:3.26.2
 +
 +
 +BSD 2-Clause
 +------------
 +com.github.luben:zstd-jni:1.5.6-3
 +
 +
 +MIT License
 +------------
 +org.slf4j:slf4j-api:2.0.9
 +com.bugsnag:bugsnag:3.7.2
++io.github.classgraph:classgraph:4.8.184
 +
 +
 +EPL 1.0
 +------------
 +com.h2database:h2-mvstore:2.1.212
- ch.qos.logback:logback-classic:1.3.15
- ch.qos.logback:logback-core:1.3.15
++
++
++EPL 2.0
++------------
++ch.qos.logback:logback-classic:1.5.34
++ch.qos.logback:logback-core:1.5.34
++jakarta.annotation:jakarta.annotation-api:3.0.0
++jakarta.servlet:jakarta.servlet-api:6.0.0
++
++EDL 1.0
++------------
++jakarta.activation:jakarta.activation-api:2.1.0
++jakarta.xml.bind:jakarta.xml.bind-api:3.0.1
 +
 +
 +CDDL 1.1
 +------------
- jakarta.annotation:jakarta.annotation-api:1.3.5
- jakarta.servlet:jakarta.servlet-api:4.0.4
 +javax.xml.bind:jaxb-api:2.4.0-b180725.0427
 +org.glassfish.jaxb:jaxb-runtime:2.3.6
 +
 +
 +Public Domain
 +------------
 +org.tukaani:xz:1.9
diff --cc dn1/NOTICE
index 00000000000,00000000000..8027f950b34
new file mode 100644
--- /dev/null
+++ b/dn1/NOTICE
@@@ -1,0 -1,0 +1,24 @@@
++Apache IoTDB
++Copyright 2018-2026 The Apache Software Foundation.
++
++This product includes software developed at
++The Apache Software Foundation (http://www.apache.org/).
++
++============================================================================
++
++IoTDB project uses 4 Chinese Patents:
++* 201711384490X
++* 201810111712.9
++* 201711322631.5
++* 201711319331.1
++
++According to the Apache 2.0 License. The owner of the patents, Tsinghua University,
++grant the users the right to the use of patent under the requirement of Apache 2.0 License.
++
++============================================================================
++
++Apache Commons Collections
++Copyright 2001-2019 The Apache Software Foundation
++
++This product includes software developed at
++The Apache Software Foundation (http://www.apache.org/).
diff --cc dn1/README.md
index ff4ca4a5f46,00000000000..8d6923fbdb2
mode 100644,000000..100644
--- a/dn1/README.md
+++ b/dn1/README.md
@@@ -1,555 -1,0 +1,555 @@@
 +<!--
 +
 +    Licensed to the Apache Software Foundation (ASF) under one
 +    or more contributor license agreements.  See the NOTICE file
 +    distributed with this work for additional information
 +    regarding copyright ownership.  The ASF licenses this file
 +    to you under the Apache License, Version 2.0 (the
 +    "License"); you may not use this file except in compliance
 +    with the License.  You may obtain a copy of the License at
 +
 +        http://www.apache.org/licenses/LICENSE-2.0
 +
 +    Unless required by applicable law or agreed to in writing,
 +    software distributed under the License is distributed on an
 +    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 +    KIND, either express or implied.  See the License for the
 +    specific language governing permissions and limitations
 +    under the License.
 +
 +-->
 +[English](./README.md) | [中文](./README_ZH.md)
 +
 +# IoTDB
 +[![Unit-Test](https://github.com/apache/iotdb/actions/workflows/unit-test.yml/badge.svg)](https://github.com/apache/iotdb/actions/workflows/unit-test.yml)
 +[![codecov](https://codecov.io/github/apache/iotdb/graph/badge.svg?token=ejF3UGk0Nv)](https://codecov.io/github/apache/iotdb)
 +[![GitHub release](https://img.shields.io/github/release/apache/iotdb.svg)](https://github.com/apache/iotdb/releases)
 +[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
 +![](https://github-size-badge.herokuapp.com/apache/iotdb.svg)
 +![](https://img.shields.io/github/downloads/apache/iotdb/total.svg)
 +![](https://img.shields.io/badge/platform-win%20%7C%20macos%20%7C%20linux-yellow.svg)
- ![](https://img.shields.io/badge/java--language-1.8+-blue.svg)
++![](https://img.shields.io/badge/java--language-17+-blue.svg)
 +[![IoTDB Website](https://img.shields.io/website-up-down-green-red/https/shields.io.svg?label=iotdb-website)](https://iotdb.apache.org/)
 +[![Maven Central](https://img.shields.io/maven-central/v/org.apache.iotdb/iotdb-parent.svg)](https://central.sonatype.com/artifact/org.apache.iotdb/iotdb-parent)
 +[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/apache/iotdb)
 +[![Slack Status](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social)](https://join.slack.com/t/apacheiotdb/shared_invite/zt-3sh0ws7xf-JjVayYQt_RSUUHJ~iJOiSA)
 +
 +# Overview
 +
 +IoTDB (Internet of Things Database) is a data management system for time series data, which provides users with specific services, including data collection, storage and analysis. Due to its lightweight structure, high performance and usable features, together with its seamless integration with the Hadoop and Spark ecosystem, IoTDB meets the requirements of massive dataset storage, high throughput data input, and complex data analysis in the industrial IoT field.
 +
 +[Click for More Information](https://www.timecho.com/archives/shi-xu-shu-ju-ku-iotdb-gong-neng-xiang-jie-yu-xing-ye-ying-yong)
 +
 +IoTDB depends on [TsFile](https://github.com/apache/tsfile) which is a columnar storage file format designed for time series data. The branch `iotdb` of TsFile project is used to deploy SNAPSHOT version for IoTDB project.
 +
 +# Main Features
 +
 +The main features of IoTDB are as follows:
 +
 +1. Flexible deployment strategy. IoTDB provides users with a one-click installation tool on either the cloud platform or the terminal devices, and a data synchronization tool bridging the data on cloud platform and terminals.
 +2. Low cost on hardware. IoTDB can reach a high compression ratio of disk storage.
 +3. Efficient directory structure. IoTDB supports efficient organization for complex time series data structures from intelligent networking devices, organization for time series data from devices of the same type, and fuzzy searching strategy for massive and complex directory of time series data.
 +4. High-throughput read and write. IoTDB supports millions of low-power devices' strong connection data access, high-speed data read and write for intelligent networking devices and mixed devices mentioned above.
 +5. Rich query semantics. IoTDB supports time alignment for time series data across devices and measurements, computation in time series field (frequency domain transformation) and rich aggregation function support in time dimension.
 +6. Easy to get started. IoTDB supports SQL-like language, JDBC standard API and import/export tools which are easy to use.
 +7. Seamless integration with state-of-the-practice Open Source Ecosystem. IoTDB supports analysis ecosystems, such as Hadoop and Spark, as well as visualization tools, such as Grafana.
 +
 +For the latest information about IoTDB, please visit [IoTDB official website](https://iotdb.apache.org/). If you encounter any problems or identify any bugs while using IoTDB, please report an issue in [Jira](https://issues.apache.org/jira/projects/IOTDB/issues).
 +
 +<!-- TOC -->
 +
 +## Outline
 +
 +- [IoTDB](#iotdb)
 +- [Overview](#overview)
 +- [Main Features](#main-features)
 +  - [Outline](#outline)
 +- [Quick Start](#quick-start)
 +  - [Prerequisites](#prerequisites)
 +  - [Installation](#installation)
 +    - [Build from source](#build-from-source)
 +    - [Configurations](#configurations)
 +  - [Start](#start)
 +    - [Start IoTDB](#start-iotdb)
 +    - [Use IoTDB](#use-iotdb)
 +      - [Use Cli](#use-cli)
 +      - [Basic commands for IoTDB](#basic-commands-for-iotdb)
 +    - [Stop IoTDB](#stop-iotdb)
 +  - [Only build server](#only-build-server)
 +  - [Only build cli](#only-build-cli)
 +  - [Usage of CSV Import and Export Tool](#usage-of-csv-import-and-export-tool)
 +
 +<!-- /TOC -->
 +
 +# Quick Start
 +
 +This short guide will walk you through the basic process of using IoTDB. For a more detailed introduction, please visit our website's [User Guide](https://iotdb.apache.org/UserGuide/latest/QuickStart/QuickStart.html).
 +
 +## Prerequisites
 +
 +To use IoTDB, you need to have:
 +
- 1. Java >= 1.8 (1.8 to 25 are verified. Please make sure the environment path has been set accordingly).
++1. Java >= 17 (17 to 25 are verified. Please make sure the environment path has been set accordingly).
 +2. Maven >= 3.6 (If you want to compile and install IoTDB from source code).
 +3. Set the max open files num as 65535 to avoid the "too many open files" error.
 +4. (Optional) Set the somaxconn as 65535 to avoid "connection reset" error when the system is under high load.
 +    ```
 +    # Linux
 +    > sudo sysctl -w net.core.somaxconn=65535
 +   
 +    # FreeBSD or Darwin
 +    > sudo sysctl -w kern.ipc.somaxconn=65535
 +    ```
 +
 +> ⚠️ **Important: System Resource Limits**
 +>
 +> IoTDB requires sufficient system resource limits to start correctly.
 +> If these limits are not configured, IoTDB may fail to start or emit warnings such as
 +> `"too many open files"` or `"connection reset"` in the logs.
 +>
 +> **Linux / macOS**
 +> ```bash
 +> ulimit -n 65535
 +> sudo sysctl -w net.core.somaxconn=65535
 +> ```
 +>
 +> **Docker Users**
 +> When running IoTDB in Docker, these limits must be applied on the **host machine**
 +> or explicitly passed to the container:
 +> ```bash
 +> docker run --ulimit nofile=65535:65535 ...
 +> ```
 +>
 +> **Windows Users**
 +> These commands are not applicable on Windows.
 +> Please follow the Windows installation steps below and ensure sufficient system resources.
 +### Linux
 +
 +(This guide is based on an installation of Ubuntu 22.04.)
 +
 +#### Git
 +
 +Make sure `Git` is installed, if it's missing, simply install it via:
 +
 +    sudo apt install git
 +
 +#### Java
 +
 +Make sure `Java` is installed, if it's missing, simply install it via:
 +
 +    sudo apt install default-jdk
 +
 +#### Flex
 +
 +    sudo apt install flex
 +
 +#### Bison
 +
 +    sudo apt install bison
 +
 +#### Boost
 +
 +    sudo apt install libboost-all-dev
 +
 +#### OpenSSL header files
 +
 +Usually OpenSSL is already installed, however it's missing the header files we need to compile.
 +So ensure these are installed:
 +
 +    sudo apt install libssl-dev
 +
 +### Mac OS
 +
 +#### Git
 +
 +First ensure `git` works.
 +
 +Usually on a new Mac, as soon as you simply type `git` in a `Terminal` window, a popup will come up and ask if you want to finish installing the Mac developer tools. 
 +Just say yes.
 +As soon as this is finished, you are free to use `git`.
 +
 +#### Homebrew
 +
 +Then install `Homebrew` - If this hasn't been installed yet, as we are going to be installing everything using `Homebrew`.
 +
 +    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
 +
 +#### Java
 +
 +As soon as that's done install `Java`, if this hasn't been installed yet:
 +
 +    brew install java
 +
 +Depending on your version of Homebrew, it will tell you to do one of the following (depending on the type of processor in your device).
 +
 +Mainly on the Intel-based models:
 +
 +    sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
 +
 +Mainly on the ARM-based models:
 +
 +    sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
 +
 +#### CPP Prerequisites 
 +
 +Building `Thrift` requires us to add two more dependencies to the picture.
 +
 +This however is only needed when enabling the `with-cpp` profile:
 +
 +    brew install boost
 +    brew install bison
 +    brew install openssl
 +
 +### Windows
 +
 +#### Chocolatey
 +
 +Then install `Chocolatey` - If this hasn't been installed yet, as we are going to be installing everything using `Chocolatey`.
 +
 +https://chocolatey.org/install
 +
 +#### Git
 +
 +    choco install git.install
 +
 +#### Java
 +
 +    choco install openjdk
 +
 +#### Visual Studio 19 2022
 +
 +    choco install visualstudio2022community
 +    choco install visualstudio2022buildtools
 +    choco install visualstudio2022-workload-nativedesktop
 +
 +#### Flex / Bison
 +
 +    choco install winflexbison
 +
 +#### Boost
 +
 +    choco install boost-msvc-14.2
 +
 +#### OpenSSL
 +
 +    choco install openssl
 +
 +## Installation
 +
 +IoTDB provides three installation methods, you can refer to the following suggestions, choose the one fits you best:
 +
 +* Installation from source code. If you need to modify the code yourself, you can use this method.
 +* Installation from binary files. Download the binary files from the official website. This is the recommended method, in which you will get a binary released package which is out-of-the-box.
 +* Using Docker:The path to the dockerfile is [here](https://github.com/apache/iotdb/tree/master/docker/src/main).
 +
 +
 +Here in the Quick Start, we give a brief introduction of using source code to install IoTDB. For further information, please refer to [User Guide](https://iotdb.apache.org/UserGuide/latest/QuickStart/QuickStart.html).
 +
 +## Build from source
 +
 +### Prepare Thrift compiler
 +
 +Skip this chapter if you are using Windows. 
 +
 +As we use Thrift for our RPC module (communication and
 +protocol definition), we involve Thrift during the compilation, so Thrift compiler 0.13.0 (or
 +higher) is required to generate Thrift Java code. Thrift officially provides binary compiler for
 +Windows, but unfortunately, they do not provide that for Unix OSs. 
 +
 +If you have permission to install new software, use `apt install` or `yum install` or `brew install`
 +to install the Thrift compiler. (If you already have installed the thrift compiler, skip this step.)
 +Then, you may add the following parameter
 +when running Maven: `-Dthrift.download-url=http://apache.org/licenses/LICENSE-2.0.txt -Dthrift.exec.absolute.path=<YOUR LOCAL THRIFT BINARY FILE>`.
 +
 +If not, then you have to compile the thrift compiler, and it requires you install a boost library first.
 +Therefore, we compiled a Unix compiler ourselves and put it onto GitHub, and with the help of a
 +maven plugin, it will be downloaded automatically during compilation. 
 +This compiler works fine with gcc8 or later, Ubuntu MacOS, and CentOS, but previous versions 
 +and other OSs are not guaranteed.
 +
 +If you can not download the thrift compiler automatically because of a network problem, you can download 
 +it by yourself, and then either:
 +rename your thrift file to `{project_root}\thrift\target\tools\thrift_0.12.0_0.13.0_linux.exe`;
 +or, add Maven commands:
 +`-Dthrift.download-url=http://apache.org/licenses/LICENSE-2.0.txt -Dthrift.exec.absolute.path=<YOUR LOCAL THRIFT BINARY FILE>`.
 +
 +### Compile IoTDB
 +
 +You can download the source code from:
 +
 +```
 +git clone https://github.com/apache/iotdb.git
 +```
 +
 +The default dev branch is the master branch, if you want to use a released version x.x.x:
 +
 +```
 +git checkout vx.x.x
 +```
 +
 +Or checkout to the branch of a big version, e.g., the branch of 1.0 is rel/1.0.
 +
 +```
 +git checkout rel/x.x
 +```
 +
 +### Build IoTDB from source
 +
 +Under the root path of iotdb:
 +
 +```
 +> mvn clean package -pl distribution -am -DskipTests
 +```
 +
 +After being built, the IoTDB distribution is located at the folder: "distribution/target".
 +
 +
 +### Only build cli
 +
 +Under the iotdb/iotdb-client path:
 +
 +```
 +> mvn clean package -pl cli -am -DskipTests
 +```
 +
 +After being built, the IoTDB cli is located at the folder "cli/target".
 +
 +### Build with Chinese Log & Error Messages
 +
 +IoTDB supports compile-time internationalization (i18n) for log and error messages. By default, messages are in English. To build with Chinese messages, activate the `with-zh-locale` Maven profile:
 +
 +```
 +> mvn clean package -pl distribution -am -DskipTests -P with-zh-locale
 +```
 +
 +This works by swapping the source directory `src/main/i18n/en` (default) with `src/main/i18n/zh`, where each module keeps locale-specific Java constant classes containing translated message strings.
 +
 +### Build Others
 +
 +Use `-P with-cpp` for compiling the cpp client. (For more details, read client-cpp's Readme file.)
 +
 +**NOTE: Directories "`thrift/target/generated-sources/thrift`", "`thrift-sync/target/generated-sources/thrift`",
 +"`thrift-cluster/target/generated-sources/thrift`", "`thrift-influxdb/target/generated-sources/thrift`" 
 +and "`antlr/target/generated-sources/antlr4`" need to be added to sources roots to avoid compilation errors in the IDE.**
 +
 +**In IDEA, you just need to right click on the root project name and choose "`Maven->Reload Project`" after 
 +you run `mvn package` successfully.**
 +
 +### Configurations
 +
 +Configuration files are under the "conf" folder.
 +
 +  * environment config module (`datanode-env.bat`, `datanode-env.sh`),
 +  * system config module (`iotdb-system.properties`)
 +  * log config module (`logback.xml`).
 +
 +For more information, please see [Config Manual](https://iotdb.apache.org/UserGuide/latest/Reference/DataNode-Config-Manual.html).
 +
 +## Start
 +
 +You can go through the following steps to test the installation. If there is no error returned after execution, the installation is completed.
 +
 +### Start IoTDB
 +
 +Users can start 1C1D IoTDB by the start-standalone script under the sbin folder.
 +
 +```
 +# Unix/OS X
 +> sbin/start-standalone.sh
 +
 +# Windows
 +> sbin\start-standalone.bat
 +```
 +
 +### Use IoTDB
 +
 +#### Use Cli
 +
 +IoTDB offers different ways to interact with server, here we introduce the basic steps of using Cli tool to insert and query data.
 +
 +After installing IoTDB, there is a default user 'root', its default password is 'root'. Users can use this
 +default user to login Cli to use IoTDB. The start-up script of Cli is the start-cli script in the folder sbin. When executing the script, user should assign
 +IP, PORT, USER_NAME and PASSWORD. The default parameters are "-h 127.0.0.1 -p 6667 -u root -pw root".
 +
 +Here is the command for starting the Cli:
 +
 +```
 +# Unix/OS X
 +> sbin/start-cli.sh -h 127.0.0.1 -p 6667 -u root -pw root
 +
 +# Windows
 +> sbin\start-cli.bat -h 127.0.0.1 -p 6667 -u root -pw root
 +```
 +
 +The command line cli is interactive, so you should see the welcome logo and statements if everything is ready:
 +
 +```
 + _____       _________  ______   ______
 +|_   _|     |  _   _  ||_   _ `.|_   _ \
 +  | |   .--.|_/ | | \_|  | | `. \ | |_) |
 +  | | / .'`\ \  | |      | |  | | |  __'.
 + _| |_| \__. | _| |_    _| |_.' /_| |__) |
 +|_____|'.__.' |_____|  |______.'|_______/  version x.x.x
 +
 +
 +IoTDB> login successfully
 +IoTDB>
 +```
 +
 +#### Basic commands for IoTDB
 +
 +Now, let us introduce the way of creating timeseries, inserting data and querying data.
 +
 +The data in IoTDB is organized as timeseries. Each timeseries includes multiple data–time pairs, and is owned by a database. Before defining a timeseries, we should define a database using CREATE DATABASE first, and here is an example:
 +
 +```
 +IoTDB> CREATE DATABASE root.ln
 +```
 +
 +We can also use SHOW DATABASES to check the database being created:
 +
 +```
 +IoTDB> SHOW DATABASES
 ++-------------+
 +|     Database|
 ++-------------+
 +|      root.ln|
 ++-------------+
 +Total line number = 1
 +```
 +
 +After the database is set, we can use CREATE TIMESERIES to create a new timeseries. When creating a timeseries, we should define its data type and the encoding scheme. Here we create two timeseries:
 +
 +```
 +IoTDB> CREATE TIMESERIES root.ln.wf01.wt01.status WITH DATATYPE=BOOLEAN, ENCODING=PLAIN
 +IoTDB> CREATE TIMESERIES root.ln.wf01.wt01.temperature WITH DATATYPE=FLOAT, ENCODING=RLE
 +```
 +
 +In order to query the specific timeseries, we can use SHOW TIMESERIES <Path>. <Path> represent the location of the timeseries. The default value is "null", which queries all the timeseries in the system (the same as using "SHOW TIMESERIES root"). Here are some examples:
 +
 +1. Querying all timeseries in the system:
 +
 +```
 +IoTDB> SHOW TIMESERIES
 ++-----------------------------+-----+-------------+--------+--------+-----------+----+----------+
 +|                   Timeseries|Alias|Database|DataType|Encoding|Compression|Tags|Attributes|
 ++-----------------------------+-----+-------------+--------+--------+-----------+----+----------+
 +|root.ln.wf01.wt01.temperature| null|      root.ln|   FLOAT|     RLE|     SNAPPY|null|      null|
 +|     root.ln.wf01.wt01.status| null|      root.ln| BOOLEAN|   PLAIN|     SNAPPY|null|      null|
 ++-----------------------------+-----+-------------+--------+--------+-----------+----+----------+
 +Total line number = 2
 +```
 +
 +2. Querying a specific timeseries (root.ln.wf01.wt01.status):
 +
 +```
 +IoTDB> SHOW TIMESERIES root.ln.wf01.wt01.status
 ++------------------------+-----+-------------+--------+--------+-----------+----+----------+
 +|              timeseries|alias|database|dataType|encoding|compression|tags|attributes|
 ++------------------------+-----+-------------+--------+--------+-----------+----+----------+
 +|root.ln.wf01.wt01.status| null|      root.ln| BOOLEAN|   PLAIN|     SNAPPY|null|      null|
 ++------------------------+-----+-------------+--------+--------+-----------+----+----------+
 +Total line number = 1
 +```
 +
 +Inserting timeseries data is a basic operation of IoTDB, you can use the ‘INSERT’ command to finish this. Before insertion, you should assign the timestamp and the suffix path name:
 +
 +```
 +IoTDB> INSERT INTO root.ln.wf01.wt01(timestamp,status) values(100,true);
 +IoTDB> INSERT INTO root.ln.wf01.wt01(timestamp,status,temperature) values(200,false,20.71)
 +```
 +
 +The data that you have just inserted will be displayed as follows:
 +
 +```
 +IoTDB> SELECT status FROM root.ln.wf01.wt01
 ++------------------------+------------------------+
 +|                    Time|root.ln.wf01.wt01.status|
 ++------------------------+------------------------+
 +|1970-01-01T00:00:00.100Z|                    true|
 +|1970-01-01T00:00:00.200Z|                   false|
 ++------------------------+------------------------+
 +Total line number = 2
 +```
 +
 +You can also query several timeseries data using one SQL statement:
 +
 +```
 +IoTDB> SELECT * FROM root.ln.wf01.wt01
 ++------------------------+-----------------------------+------------------------+
 +|                    Time|root.ln.wf01.wt01.temperature|root.ln.wf01.wt01.status|
 ++------------------------+-----------------------------+------------------------+
 +|1970-01-01T00:00:00.100Z|                         null|                    true|
 +|1970-01-01T00:00:00.200Z|                        20.71|                   false|
 ++------------------------+-----------------------------+------------------------+
 +Total line number = 2
 +```
 +
 +To change the time zone in Cli, you can use the following SQL:
 +
 +```
 +IoTDB> SET time_zone=+08:00
 +Time zone has set to +08:00
 +IoTDB> SHOW time_zone
 +Current time zone: Asia/Shanghai
 +```
 +
 +Add then the query result will show using the new time zone.
 +
 +```
 +IoTDB> SELECT * FROM root.ln.wf01.wt01
 ++-----------------------------+-----------------------------+------------------------+
 +|                         Time|root.ln.wf01.wt01.temperature|root.ln.wf01.wt01.status|
 ++-----------------------------+-----------------------------+------------------------+
 +|1970-01-01T08:00:00.100+08:00|                         null|                    true|
 +|1970-01-01T08:00:00.200+08:00|                        20.71|                   false|
 ++-----------------------------+-----------------------------+------------------------+
 +Total line number = 2
 +```
 +
 +The commands to exit the Cli are:
 +
 +```
 +IoTDB> quit
 +or
 +IoTDB> exit
 +```
 +
 +For more information about the commands supported by IoTDB SQL, please see [User Guide](https://iotdb.apache.org/UserGuide/latest/QuickStart/QuickStart.html).
 +
 +### Stop IoTDB
 +
 +The server can be stopped with "ctrl-C" or the following script:
 +
 +```
 +# Unix/OS X
 +> sbin/stop-standalone.sh
 +
 +# Windows
 +> sbin\stop-standalone.bat
 +```
 +
 +# The use of Data Import and Export Tool
 +
 +see [The use of Data Import Tool](https://iotdb.apache.org/UserGuide/latest/Tools-System/Data-Import-Tool.html)
 +see [The use of Data Export Tool](https://iotdb.apache.org/UserGuide/latest/Tools-System/Data-Export-Tool.html)
 +
 +
 +# Frequent Questions for Compiling
 +see [Frequent Questions when Compiling the Source Code](https://iotdb.apache.org/Community/Development-Guide.html#frequently-asked-questions)
 +
 +# Contact Us
 +
 +### QQ Group
 +
 +* Apache IoTDB User Group: 659990460
 +
 +### Wechat Group
 +
 +* Add friend: `apache_iotdb`, and then we'll invite you to the group.
 +
 +### Slack
 +
 +* [Slack channel](https://join.slack.com/t/apacheiotdb/shared_invite/zt-3sh0ws7xf-JjVayYQt_RSUUHJ~iJOiSA)
 +
 +see [Join the community](https://github.com/apache/iotdb/issues/1995) for more!
diff --cc dn1/README_ZH.md
index 71fca90457b,00000000000..73ea63cf67d
mode 100644,000000..100644
--- a/dn1/README_ZH.md
+++ b/dn1/README_ZH.md
@@@ -1,412 -1,0 +1,412 @@@
 +<!--
 +
 +    Licensed to the Apache Software Foundation (ASF) under one
 +    or more contributor license agreements.  See the NOTICE file
 +    distributed with this work for additional information
 +    regarding copyright ownership.  The ASF licenses this file
 +    to you under the Apache License, Version 2.0 (the
 +    "License"); you may not use this file except in compliance
 +    with the License.  You may obtain a copy of the License at
 +
 +        http://www.apache.org/licenses/LICENSE-2.0
 +
 +    Unless required by applicable law or agreed to in writing,
 +    software distributed under the License is distributed on an
 +    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 +    KIND, either express or implied.  See the License for the
 +    specific language governing permissions and limitations
 +    under the License.
 +
 +-->
 +[English](./README.md) | [中文](./README_ZH.md)
 +
 +# IoTDB
 +[![Main Mac and Linux](https://github.com/apache/iotdb/actions/workflows/main-unix.yml/badge.svg)](https://github.com/apache/iotdb/actions/workflows/main-unix.yml)
 +[![Main Win](https://github.com/apache/iotdb/actions/workflows/main-win.yml/badge.svg)](https://github.com/apache/iotdb/actions/workflows/main-win.yml)<!--[![coveralls](https://coveralls.io/repos/github/apache/iotdb/badge.svg?branch=master)](https://coveralls.io/repos/github/apache/iotdb/badge.svg?branch=master)-->
 +[![GitHub release](https://img.shields.io/github/release/apache/iotdb.svg)](https://github.com/apache/iotdb/releases)
 +[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
 +![](https://github-size-badge.herokuapp.com/apache/iotdb.svg)
 +![](https://img.shields.io/github/downloads/apache/iotdb/total.svg)
 +![](https://img.shields.io/badge/platform-win%20%7C%20macos%20%7C%20linux-yellow.svg)
- ![](https://img.shields.io/badge/java--language-1.8+-blue.svg)
++![](https://img.shields.io/badge/java--language-17+-blue.svg)
 +[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/apache/iotdb.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/iotdb/context:java)
 +[![IoTDB Website](https://img.shields.io/website-up-down-green-red/https/shields.io.svg?label=iotdb-website)](https://iotdb.apache.org/)
 +[![Maven Central](https://img.shields.io/maven-central/v/org.apache.iotdb/iotdb-parent.svg)](https://central.sonatype.com/artifact/org.apache.iotdb/iotdb-parent)
 +[![Slack Status](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social)](https://join.slack.com/t/apacheiotdb/shared_invite/zt-3sh0ws7xf-JjVayYQt_RSUUHJ~iJOiSA)
 +
 +# 简介
 +IoTDB (Internet of Things Database) 是一款[时序数据库管理系统](https://www.timecho.com/archives/48),可以为用户提供数据收集、存储和分析等服务。IoTDB由于其轻量级架构、高性能和高可用的特性,以及与 Hadoop 和 Spark 生态的无缝集成,满足了工业 IoT 领域中海量数据存储、高吞吐量数据写入和复杂数据查询分析的需求。
 +更多功能请见[时序数据库IoTDB:功能详解与行业应用](https://www.timecho.com/archives/shi-xu-shu-ju-ku-iotdb-gong-neng-xiang-jie-yu-xing-ye-ying-yong)。
 +
 +IoTDB 依赖 [TsFile](https://github.com/apache/tsfile) 项目,它是一种专门用于时序数据管理的文件格式. TsFile 仓库的 `iotdb` 分支被用来为 IoTDB master 分支部署 SNAPSHOT 版本.
 +
 +# 主要特点
 +
 +IoTDB的主要特点如下:
 +
 +1. 灵活的部署策略。IoTDB为用户提供了一个在云平台或终端设备上的一键安装工具,以及一个连接云平台和终端上的数据的数据同步工具。
 +2. 硬件成本低。IoTDB可以达到很高的磁盘存储压缩比。
 +3. 高效的目录结构。IoTDB支持智能网络设备对复杂时间序列数据结构的高效组织,同类设备对时间序列数据的组织,海量复杂时间序列数据目录的模糊搜索策略。
 +4. 高吞吐量读写。IoTDB支持数以百万计的低功耗设备的强连接数据访问、高速数据读写,适用于上述智能网络设备和混合设备。
 +5. 丰富的查询语义。IoTDB支持跨设备和测量的时间序列数据的时间对齐、时间序列字段的计算(频域转换)和时间维度的丰富聚合函数支持。
 +6. 学习成本非常低。IoTDB支持类似sql的语言、JDBC标准API和易于使用的导入/导出工具。
 +7. 与先进的开放源码生态系统的无缝集成。IoTDB支持分析生态系统,如Hadoop、Spark和可视化工具(如Grafana)。
 +
 +有关IoTDB的最新信息,请访问[IoTDB官方网站](https://iotdb.apache.org/)。如果您在使用IoTDB时遇到任何问题或发现任何bug,请在[jira]中提交(https://issues.apache.org/jira/projects/IOTDB/issues)。
 +
 +<!-- TOC -->
 +
 +## 目录
 +
 +- [IoTDB](#iotdb)
 +- [简介](#简介)
 +- [主要特点](#主要特点)
 +  - [目录](#目录)
 +- [快速开始](#快速开始)
 +  - [环境准备](#环境准备)
 +  - [安装](#安装)
 +    - [从源码构建](#从源码构建)
 +      - [配置](#配置)
 +  - [开始](#开始)
 +    - [启动 IoTDB](#启动-iotdb)
 +    - [使用 IoTDB](#使用-iotdb)
 +      - [使用 Cli 命令行](#使用-cli-命令行)
 +      - [基本的 IoTDB 命令](#基本的-iotdb-命令)
 +    - [停止 IoTDB](#停止-iotdb)
 +  - [只编译 server](#只编译-server)
 +  - [只编译 cli](#只编译-cli)
 +  - [导入导出CSV工具](#导入导出CSV工具)
 +
 +<!-- /TOC -->
 +
 +# 快速开始
 +
 +这篇简短的指南将带您了解使用IoTDB的基本过程。如需更详细的介绍,请访问我们的网站[用户指南](https://iotdb.apache.org/zh/UserGuide/latest/QuickStart/QuickStart.html)。
 +
 +## 环境准备
 +
 +要使用IoTDB,您需要:
- 1. Java >= 1.8 (目前 1.8 到 25 已经被验证可用。请确保环变量境路径已正确设置)。
++1. Java >= 17 (目前 17 到 25 已经被验证可用。请确保环变量境路径已正确设置)。
 +2. Maven >= 3.6 (如果希望从源代码编译和安装IoTDB)。
 +3. 设置 max open files 为 65535,以避免"too many open files"错误。
 +4. (可选) 将 somaxconn 设置为 65535 以避免系统在高负载时出现 "connection reset" 错误。 
 +    ```
 +    # Linux
 +    > sudo sysctl -w net.core.somaxconn=65535
 +   
 +    # FreeBSD or Darwin
 +    > sudo sysctl -w kern.ipc.somaxconn=65535
 +    ```
 +
 +## 安装
 +
 +IoTDB提供了三种安装方法,您可以参考以下建议,选择最适合您的一种:
 +
 +* 从源代码安装。如果需要自己修改代码,可以使用此方法。
 +
 +* 从二进制文件安装。推荐的方法是从官方网站下载二进制文件,您将获得一个开箱即用的二进制发布包。
 +
 +* 使用Docker: dockerfile的路径是https://github.com/apache/iotdb/tree/master/docker/src/main
 +
 +在这篇《快速入门》中,我们简要介绍如何使用源代码安装IoTDB。如需进一步资料,请参阅官网[用户指南](https://iotdb.apache.org/zh/UserGuide/latest/QuickStart/QuickStart.html)。
 +
 +## 从源码构建
 +
 +### 关于准备Thrift编译器
 +
 +如果您使用Windows,请跳过此段。
 +
 +我们使用Thrift作为RPC模块来提供客户端-服务器间的通信和协议支持,因此在编译阶段我们需要使用Thrift 0.13.0
 +(或更高)编译器生成对应的Java代码。 Thrift只提供了Windows下的二进制编译器,Unix下需要通过源码自行编译。
 +
 +如果你有安装权限,可以通过`apt install`, `yum install`, `brew install`来安装thrift编译器,然后在下面的编译命令中
 +都添加如下参数即可:`-Dthrift.download-url=http://apache.org/licenses/LICENSE-2.0.txt -Dthrift.exec.absolute.path=<你的thrift可执行文件路径>`。
 +
 +
 +同时我们预先编译了一个Thrift编译器,并将其上传到了GitHub ,借助一个Maven插件,在编译时可以自动将其下载。
 +该预编译的Thrift编译器在gcc8,Ubuntu, CentOS, MacOS下可以工作,但是在更低的gcc
 +版本以及其他操作系统上尚未确认。
 +如果您发现因为网络问题总是提示下载不到thrift文件,那么您需要手动下载,并将编译器放置到目录`{project_root}\thrift\target\tools\thrift_0.12.0_0.13.0_linux.exe`。
 +如果您放到其他地方,就需要在运行maven的命令中添加:`-Dthrift.download-url=http://apache.org/licenses/LICENSE-2.0.txt -Dthrift.exec.absolute.path=<你的thrift可执行文件路径>`。
 +
 +如果您对Maven足够熟悉,您也可以直接修改我们的根pom文件来避免每次编译都使用上述参数。
 +Thrift官方网址为:https://thrift.apache.org/
 +
 +从 git 克隆源代码:
 +
 +```
 +git clone https://github.com/apache/iotdb.git
 +```
 +
 +默认的主分支是master分支,如果你想使用某个发布版本x.x.x,请切换 tag:
 +
 +```
 +git checkout vx.x.x
 +```
 +
 +或者切换大版本所在分支,如 1.0 版本的分支为 rel/1.0
 +
 +```
 +git checkout rel/x.x
 +```
 +
 +### 源码编译 IoTDB
 +
 +在 iotdb 根目录下执行:
 +
 +```
 +> mvn clean package -pl distribution -am -DskipTests
 +```
 +
 +编译完成后, IoTDB 二进制包将生成在: "distribution/target".
 +
 +### 只编译 cli
 +
 +在 iotdb/iotdb-client 目录下执行:
 +
 +```
 +> mvn clean package -pl cli -am -DskipTests
 +```
 +
 +编译完成后, IoTDB cli 将生成在 "cli/target".
 +
 +### 编译中文日志和错误信息版本
 +
 +IoTDB 支持编译时国际化(i18n),可将日志和错误信息切换为中文。默认编译使用英文,如需中文版本,请激活 `with-zh-locale` Maven profile:
 +
 +```
 +> mvn clean package -pl distribution -am -DskipTests -P with-zh-locale
 +```
 +
 +该机制通过在编译时将源码目录从 `src/main/i18n/en`(默认)替换为 `src/main/i18n/zh` 实现,各模块在对应目录下维护翻译后的 Java 消息常量类。
 +
 +### 编译其他模块
 +
 +通过添加 `-P with-cpp` 可以进行c++客户端API的编译。
 +
 +**注意:"`thrift/target/generated-sources/thrift`", "`thrift-sync/target/generated-sources/thrift`","`thrift-cluster/target/generated-sources/thrift`","`thrift-influxdb/target/generated-sources/thrift`" 和  "`antlr/target/generated-sources/antlr4`" 目录需要添加到源代码根中,以免在 IDE 中产生编译错误。**
 +
 +**IDEA的操作方法:在上述maven命令编译好后,右键项目名称,选择"`Maven->Reload project`",即可。**
 +
 +### 配置
 +
 +配置文件在"conf"文件夹下
 +* 环境配置模块(`datanode-env.bat`, `datanode-env.sh`),
 +* 系统配置模块(`iotdb-system.properties`)
 +* 日志配置模块(`logback.xml`)。
 +
 +有关详细信息,请参见[配置参数](https://iotdb.apache.org/zh/UserGuide/latest/Reference/DataNode-Config-Manual.html)。
 +
 +## 开始
 +
 +您可以通过以下步骤来测试安装,如果执行后没有返回错误,安装就完成了。
 +
 +### 启动 IoTDB
 +
 +可以通过运行 sbin 文件夹下的 start-standalone 脚本启动 1C1D IoTDB。
 +
 +```
 +# Unix/OS X
 +> sbin/start-standalone.sh
 +
 +# Windows
 +> sbin\start-standalone.bat
 +```
 +
 +### 使用 IoTDB
 +
 +#### 使用 Cli 命令行
 +
 +IoTDB提供了与服务器交互的不同方式,这里我们将介绍使用 Cli 工具插入和查询数据的基本步骤。
 +
 +安装 IoTDB 后,有一个默认的用户`root`,它的默认密码是`root`。用户可以使用这个
 +默认用户登录 Cli 并使用 IoTDB。Cli 的启动脚本是 sbin 文件夹中的 start-cli 脚本。
 +在执行脚本时,用户应该指定 IP,端口,USER_NAME 和 密码。默认参数为`-h 127.0.0.1 -p 6667 -u root -pw root`。
 +
 +
 +下面是启动 Cli 的命令:
 +
 +```
 +# Unix/OS X
 +> sbin/start-cli.sh -h 127.0.0.1 -p 6667 -u root -pw root
 +
 +# Windows
 +> sbin\start-cli.bat -h 127.0.0.1 -p 6667 -u root -pw root
 +```
 +
 +命令行客户端是交互式的,所以如果一切就绪,您应该看到欢迎标志和声明:
 +
 +```
 + _____       _________  ______   ______
 +|_   _|     |  _   _  ||_   _ `.|_   _ \
 +  | |   .--.|_/ | | \_|  | | `. \ | |_) |
 +  | | / .'`\ \  | |      | |  | | |  __'.
 + _| |_| \__. | _| |_    _| |_.' /_| |__) |
 +|_____|'.__.' |_____|  |______.'|_______/  version x.x.x
 +
 +
 +IoTDB> login successfully
 +IoTDB>
 +```
 +
 +#### 基本的 IoTDB 命令
 +
 +现在,让我们介绍创建 timeseries、插入数据和查询数据的方法。
 +
 +
 +IoTDB中的数据组织为 timeseries。每个 timeseries 包含多个`数据-时间`对,由一个 database 拥有。
 +在定义 timeseries 之前,我们应该先使用 CREATE DATABASE 来创建一个数据库,下面是一个例子:
 +
 +```
 +IoTDB> CREATE DATABASE root.ln
 +```
 +
 +我们也可以使用`SHOW DATABASES`来检查已创建的数据库:
 +
 +```
 +IoTDB> SHOW DATABASES
 ++--------+
 +|Database|
 ++--------+
 +| root.ln|
 ++--------+
 +Total line number = 1
 +```
 +
 +在设置 database 之后,我们可以使用CREATE TIMESERIES来创建一个新的TIMESERIES。
 +在创建 timeseries 时,我们应该定义它的数据类型和编码方案。这里我们创建两个 timeseries:
 +
 +
 +```
 +IoTDB> CREATE TIMESERIES root.ln.wf01.wt01.status WITH DATATYPE=BOOLEAN, ENCODING=PLAIN
 +IoTDB> CREATE TIMESERIES root.ln.wf01.wt01.temperature WITH DATATYPE=FLOAT, ENCODING=RLE
 +```
 +
 +为了查询特定的timeseries,我们可以使用 `SHOW TIMESERIES <Path>`. <Path> 表示被查询的 timeseries 的路径. 默认值是`null`, 表示查询系统中所有的 timeseries (同`SHOW TIMESERIES root`). 
 +以下是一些示例:
 +
 +1. 查询系统中所有 timeseries:
 +
 +```
 +IoTDB> SHOW TIMESERIES
 ++-----------------------------+-----+-------------+--------+--------+-----------+----+----------+
 +|                   timeseries|alias|database|dataType|encoding|compression|tags|attributes|
 ++-----------------------------+-----+-------------+--------+--------+-----------+----+----------+
 +|root.ln.wf01.wt01.temperature| null|      root.ln|   FLOAT|     RLE|     SNAPPY|null|      null|
 +|     root.ln.wf01.wt01.status| null|      root.ln| BOOLEAN|   PLAIN|     SNAPPY|null|      null|
 ++-----------------------------+-----+-------------+--------+--------+-----------+----+----------+
 +Total line number = 2
 +```
 +
 +2. 查询指定的 timeseries(root.ln.wf01.wt01.status):
 +
 +```
 +IoTDB> SHOW TIMESERIES root.ln.wf01.wt01.status
 ++------------------------+-----+-------------+--------+--------+-----------+----+----------+
 +|              timeseries|alias|database|dataType|encoding|compression|tags|attributes|
 ++------------------------+-----+-------------+--------+--------+-----------+----+----------+
 +|root.ln.wf01.wt01.status| null|      root.ln| BOOLEAN|   PLAIN|     SNAPPY|null|      null|
 ++------------------------+-----+-------------+--------+--------+-----------+----+----------+
 +Total line number = 1
 +```
 +
 +插入 timeseries 数据是IoTDB的一个基本操作,你可以使用`INSERT` 命令来完成这个操作。
 +在插入之前,您应该指定时间戳和后缀路径名:
 +
 +```
 +IoTDB> INSERT INTO root.ln.wf01.wt01(timestamp,status) values(100,true);
 +IoTDB> INSERT INTO root.ln.wf01.wt01(timestamp,status,temperature) values(200,false,20.71)
 +```
 +
 +你刚才插入的数据会显示如下:
 +
 +```
 +IoTDB> SELECT status FROM root.ln.wf01.wt01
 ++-----------------------------+------------------------+
 +|                         Time|root.ln.wf01.wt01.status|
 ++-----------------------------+------------------------+
 +|1970-01-01T08:00:00.100+08:00|                    true|
 +|1970-01-01T08:00:00.200+08:00|                   false|
 ++-----------------------------+------------------------+
 +Total line number = 2
 +```
 +
 +您还可以使用一条SQL语句查询多个 timeseries 数据:
 +
 +```
 +IoTDB> SELECT * FROM root.ln.wf01.wt01
 ++-----------------------------+-----------------------------+------------------------+
 +|                         Time|root.ln.wf01.wt01.temperature|root.ln.wf01.wt01.status|
 ++-----------------------------+-----------------------------+------------------------+
 +|1970-01-01T08:00:00.100+08:00|                         null|                    true|
 +|1970-01-01T08:00:00.200+08:00|                        20.71|                   false|
 ++-----------------------------+-----------------------------+------------------------+
 +Total line number = 2
 +```
 +
 +如果需要修改 Cli 中的时区,您可以使用以下语句:
 +
 +```
 +IoTDB> SET time_zone=+00:00
 +Time zone has set to +00:00
 +IoTDB> SHOW time_zone
 +Current time zone: Z
 +```
 +
 +之后查询结果将会以更新后的新时区显示:
 +
 +```
 +IoTDB> SELECT * FROM root.ln.wf01.wt01
 ++------------------------+-----------------------------+------------------------+
 +|                    Time|root.ln.wf01.wt01.temperature|root.ln.wf01.wt01.status|
 ++------------------------+-----------------------------+------------------------+
 +|1970-01-01T00:00:00.100Z|                         null|                    true|
 +|1970-01-01T00:00:00.200Z|                        20.71|                   false|
 ++------------------------+-----------------------------+------------------------+
 +Total line number = 2
 +```
 +
 +你可以使用如下命令退出:
 +
 +```
 +IoTDB> quit
 +or
 +IoTDB> exit
 +```
 +
 +有关IoTDB SQL支持的命令的更多信息,请参见[用户指南](https://iotdb.apache.org/zh/UserGuide/latest/QuickStart/QuickStart.html)。
 +
 +### 停止 IoTDB
 +
 +server 可以使用 "ctrl-C" 或者执行下面的脚本:
 +
 +```
 +# Unix/OS X
 +> sbin/stop-standalone.sh
 +
 +# Windows
 +> sbin\stop-standalone.bat
 +```
 +
 +# 数据导入导出工具
 +
 +查看 [数据导入工具](https://iotdb.apache.org/zh/UserGuide/latest/Tools-System/Data-Import-Tool.html)
 +查看 [数据导出工具](https://iotdb.apache.org/zh/UserGuide/latest/Tools-System/Data-Export-Tool.html)
 +
 +# 常见编译错误
 +查看 [常见编译错误](https://iotdb.apache.org/zh/Community/Development-Guide.html#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98)
 +
 +# 联系我们
 +### QQ群
 +
 +* Apache IoTDB 交流群:659990460
 +
 +### Wechat Group
 +
 +* 添加好友 `apache_iotdb`,我们会邀请您进群
 +
 +### Slack
 +
 +* https://join.slack.com/t/apacheiotdb/shared_invite/zt-3sh0ws7xf-JjVayYQt_RSUUHJ~iJOiSA
 +
 +获取更多内容,请查看 [加入社区](https://github.com/apache/iotdb/issues/1995) 
diff --cc dn1/RELEASE_NOTES.md
index 00000000000,00000000000..6637974a2bf
new file mode 100644
--- /dev/null
+++ b/dn1/RELEASE_NOTES.md
@@@ -1,0 -1,0 +1,2053 @@@
++<!--
++
++    Licensed to the Apache Software Foundation (ASF) under one
++    or more contributor license agreements.  See the NOTICE file
++    distributed with this work for additional information
++    regarding copyright ownership.  The ASF licenses this file
++    to you under the Apache License, Version 2.0 (the
++    "License"); you may not use this file except in compliance
++    with the License.  You may obtain a copy of the License at
++
++        http://www.apache.org/licenses/LICENSE-2.0
++
++    Unless required by applicable law or agreed to in writing,
++    software distributed under the License is distributed on an
++    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++    KIND, either express or implied.  See the License for the
++    specific language governing permissions and limitations
++    under the License.
++
++-->
++
++# Apache IoTDB 2.0.8
++
++## Features & Improvements
++- Data Query: Added list display for available DataNode nodes
++- Data Query: Added a system table for statistics on query latency in the table model
++- Data Query: Python SessionDataset supported converting TsBlock to DataFrame and returning DataFrame in batches
++- Storage Management: Supported custom column names for the TIME column
++- Storage Management: Supported viewing the complete definition statement of created tables/views via SQL
++- System Management: Added a system table for DataNode node connection status in the table model
++- Stream Processing: Pipe synchronization supported excluding specified devices / measurement points
++- Stream Processing: Supported specifying multiple exact paths in the path parameter of tree model data synchronization pipe statements
++- Stream Processing: Supported comma-separated mixed use of source.pattern and source.path parameters when filtering paths in Pipe
++- AI Management: Built-in Chronos-2 model supports prediction functions.
++- AI Management: Built-in Timer-XL and Sundial models supported concurrent inference
++- Others: Fixed security vulnerabilities CVE-2025-12183, CVE-2025-66566, and CVE-2025-11226
++- ...
++
++
++## Bugs
++- Fixed the issue where the result set returned by the query was empty after last cache hit.
++- Fixed the issue where reverse query with time filter conditions might miss partial data when a sequence in the memtable contained more than 200,000 points in TVList.
++- Fixed the issue that aligned time series query timed out because canSkip failed to filter out firstTimeseriesMetadata.
++- Fixed the issue where the result returned by LAST query with alias should be adjusted to the measurement alias.
++- Fixed the issue where time filter conditions incorrectly filtered valid data in latest point query under specific cases.
++- Fixed the issue that deletion would fail if performed immediately after a failed write operation.
++- Fixed the potential NPE issue when using the active load function to load TsFiles that use non-default time columns.
++- ...
++
++# Apache IoTDB 2.0.7
++
++## Features & Improvements
++
++- Others: Remove risky RPC interfaces.
++- Others: Remove JEXL functions.
++- Others: Check naming when creating a Pipe.
++- Others: Change the default client RPC service address to 127.0.0.1.
++- Others: Modify code to make internal services bind to the value specified by `dn_internal_address`instead of the default address.
++
++## Bugs
++- Fixed an issue in the partition table automatic deletion logic: Only TTL configured at the DB level takes effect, using the maximum TTL value within the DB.
++- ...
++
++# Apache IoTDB 2.0.6
++
++## Features & Improvements
++- Data Query: Supports table model query and write-back functions.
++- Data Query: The MATCH RECOGNIZE feature for table models supports aggregate functions to capture continuous data for analysis and calculation.
++- Data Query: Added built-in scalar functions - bit manipulation functions for table models.
++- Data Query: Added pushdown-enabled EXTRACT time function for table models.
++- Others: Fixed security vulnerabilities CVE-2025-12183, CVE-2025-66566 and CVE-2025-11226.
++- ...
++## Bugs
++- Fixed the issue where executing queries with CASE WHEN throws an internal server error.
++- Fixed the issue where creating a view succeeds but querying the view fails when the tree model database name is the same as the device name in tree-to-table scenarios.
++- Fixed the issue where the automatic database creation function fails subsequently if a database is deleted after successful table model data synchronization, and the database is not restarted.
++- Fixed the issue where modifying the password of a user that failed to be created throws an internal server error.
++- Fixed the issue where an error is thrown when using the IF PERMITTED clause to modify sequence encoding and compression settings.
++- Fixed the issue where querying BLOB data types via the tree model RESTAPI interface /rest/v2/query returns garbled results.
++- Fixed the issue where incorrect exception information is displayed when checking pipe status after creating a pipe in a table model that only contains tree-to-table views.
++- Fixed the issue where the number of server connections keeps increasing when using a user without MAINTAIN permission (non-root user in table models) in a Session.
++- ...
++
++# Apache IoTDB 2.0.5
++
++## Features & Improvements
++- Data Query: Support manual creation of tree-to-table views
++- Data Query: Table model adds window functions
++- Data Query: Table model adds the aggregate function approx_most_frequent
++- Data Query: Table model JOIN function expansion, supporting LEFT & RIGHT JOIN, ASOF LEFT JOIN
++- Data Query: Table model supports row pattern recognition, enabling capture of continuous data for analysis and calculation
++- Storage Management: Table model adds multiple system tables, such as: VIEWS (table view information), MODELS (model information), etc.
++- AI Management: AINode adds two built-in models: Timer-XL and Timer-Sundial
++- AI Management: AINode supports inference functions for tree models and table models
++- ...
++
++# Apache IoTDB 2.0.4
++
++## Features & Improvements
++- Data Query: Added user-defined table functions (UDTF) and various built-in table functions to the table model.
++- Data Query: Added support for ASOF INNER JOIN on time columns in the table model.
++- Data Query: Added the approximate aggregation function approx_count_distinct to the table model.
++- Stream Processing: Added support for asynchronous loading of TsFile through SQL.
++- System Management: Added support for disaster recovery load balancing strategy in replica selection during scaling down.
++- System Management: Adapted to Windows Server 2025.
++- Scripts and Tools: Categorized and organized script tools, and separated Windows-specific scripts.
++- ...
++
++## Bugs
++- Fixed the memory leak issue in the WAL compression buffer.
++- Fixed the issue where the async connector gets stuck after running for a long time.
++- Fixed the issue where data subscription cannot be terminated after using data export scripts.
++- Fixed the issue where pipe restarts frequently due to insertnode and resource management memory problems under memory pressure.
++- Fixed the NPE issue triggered during memory statistics estimation on the data synchronization receiver end.
++- Fixed the error when configuring ConsumerConstant.NODE_URLS_KEY as a cluster address while using SubscriptionPullConsumer to consume data.
++- Fixed the deadlock issue on DN startup caused by concurrent agent pipe metadata fetching and CN metadata pushing.
++- ...
++
++# Apache IoTDB 2.0.3
++
++## Features & Improvements
++
++- Data Query: Added new aggregate function count_if and scalar functions greatest / least to the table model.
++- Data Query: Significantly improved the performance of full-table count(*) queries in the table model.
++- AI Management: Added timestamps to the results returned by AINode.
++- System Management: Optimized the performance of the table model's metadata module.
++- System Management: Enabled the table model to actively listens and loads TsFile.
++- System Management: Added support for TsBlock deserialization in the Python and Go client query interfaces.
++- Ecosystem Integration: Expanded the table model's ecosystem to integrate with Spark.
++- Scripts and Tools: The import-schema and export-schema scripts now support importing and exporting metadata for the table model.
++- ...
++
++## Bugs
++
++- Fixed the issue where a single write request exceeding the total size of the WAL queue caused write queries to hang.
++- Fixed the issue where the receiver experienced OOM (Out of Memory) after resuming synchronization following a long period of inactivity.
++- Fixed the issue where repeatedly setting TTL for DB and Table led to inserted data being unqueryable and returning an empty list.
++- Fixed the issue where a regular user with create+insert permissions on a table encountered exceptions when loading tsfile.
++- Fixed the issue where passwords were logged when SessionPool getSession timed out.
++- Fixed the issue in the Go client tree model query interface where the absence of a check for the Time column led to an "index out of range [-1]" error when retrieving Time column data.
++- Fixed the issue where distinct hits aggregate pushdown optimization and is used with group by date_bin, causing execution exceptions in aggregate queries.
++- Fixed the issue of whitespace characters at the beginning and end of port and directory address parameters in the configuration file.
++- Fixed the issue where setting the maximum number of concurrent RPC clients less than the number of CPU threads caused DN startup failure.
++- Fixed the issue where using a template, after activation, writing to extended columns, and then creating a pipe, caused the series under the device to double.
++- Fixed the issue where metadata synchronization, creating a pipe after a template, caused the series to double when using show timeseries.
++- Fixed the issue where a regular user with INSERT permissions encountered exceptions when exporting metadata using export-schema.sh.
++- ...
++
++# Apache IoTDB 2.0.2-1
++
++This is a bug-fix version of 2.0.2
++
++- Fix the bug that will remove the data partition table by mistake in case of us/ns time precision and using ttl
++
++
++# Apache IoTDB 2.0.2
++
++## Features & Improvements
++
++- Data Query: Added management of table model UDFs, including user-defined scalar functions (UDSF) and user-defined aggregate functions (UDAF).
++- Data Query: Table model now supports permission management, user management, and authorization for related operations.
++- Data Query: Introduced new system tables and various O&M statements to optimize system management.
++- System Management: The tree model and table model are now fully isolated at the database level.
++- System Management: The built-in MQTT Service is now compatible with the table model.
++- System Management: The CSharp client now supports the table model.
++- System Management: The Go client now supports the table model.
++- System Management: Added a C++ Session write interface for the table model.
++- Data Synchronization: The table model now supports metadata synchronization and synchronization delete operations.
++- Scripts and Tools: The import-data/export-data scripts now support the table model and local TsFile Load.
++- ...
++
++## Bugs
++
++- Fixed the memory leak issue when writing data using SQL.
++- Fixed the issue of duplicate timestamps appearing in table model queries.
++- Fixed the issue of duplicate removal anomaly in table model aggregate queries with GROUP BY.
++- Fixed the handling of Long.MIN_VALUE or Long.MAX_VALUE during write and merge processes.
++- Fixed the issue of Long.MIN_VALUE timestamp causing time partition overflow and subsequent load failure.
++- Fixed the issue of out-of-order data within a single TSFile on the destination data node during region migration in load operations.
++- Fixed the issue where Explain Analyze caused the execution plan to fail to properly perform column pruning.
++- Fixed the issue where the C# Session could not correctly fetch result sets when querying large amounts of data (exceeding fetch_size) on a cluster with more than one node.
++- Fixed the inconsistency in reading JDK environment variables by ConfigNode and DataNode on Windows.
++- Fixed the issue where the query distribution time statistics in Explain Analyze were larger than actual values, and changed the query distribution time monitoring from FI level to Query level.
++  ...
++
++# Apache IoTDB 2.0.1-beta
++
++## Features & Improvements
++
++- Table Model: IoTDB has introduced a new model named table model, and supports standard SQL query syntax, including SELECT, WHERE, JOIN, GROUP BY, ORDER BY, LIMIT clause and subQuery.
++- Data Query: The table model supports a variety of functions and operators, including logical operators, mathematical functions, and the time-series specific function DIFF, etc.
++- Data Query: The databases of the table model and tree model are invisible to each other, and users can choose the appropriate model based on their needs.
++- Data Query: Users can control the loading of UDF, PipePlugin, Trigger, and AINode via URI with configuration items to load JAR packages.
++- Storage Engine: The table model supports data ingestion through the Session interface, and the Session interface supports automatic metadata creation.
++- Storage Engine: The Python client now supports four new data types: String, Blob, Date, and Timestamp.
++- Storage Engine: The comparison rules for the priority of same-type merge tasks have been optimized.
++- Data Synchronization: Support for specifying authentication information of the receiving end at the sending end.
++- Stream Processing Module: TsFile Load now supports the table model.
++- Stream Processing Module: Pipe now supports the table model.
++- System Management: The Benchmark tool has been adapted to support the table model.
++- System Management: The Benchmark tool now supports four new data types: String, Blob, Date, and Timestamp.
++- System Management: The stability of DataNode scaling down has been enhanced.
++- System Management: Users are now allowed to perform drop database operations in readonly mode.
++- Scripts and Tools: The import-data/export-data scripts have been extended to support new data types (string, binary large objects, date, timestamp).
++- Scripts and Tools: The import-data/export-data scripts have been iterated to support the import and export of three types of data: TsFile, CSV, and SQL.
++- Ecosystem Integration: Support for Kubernetes Operator.
++  ...
++
++## Bugs
++
++- Fixed the issue where the query result set contained duplicate timestamps.
++- Fixed the issue where deleted data could be queried again when triggered to merge after deletion.
++- Fixed the issue where the target sequence in  SELECT INTO containing backticks would result in writing the wrong sequence.
++- Fixed the issue where an array out-of-bounds exception was thrown in the HAVING clause of the tree model due to a non-existent column name.
++- Fixed the issue where MergeReader needed to consider memory allocation to avoid negative available memory during out-of-order and reverse queries.
++- Fixed the issue where the CN in the cluster could not register large pipe plugins (greater than 100MB) and the parameters were not configurable.
++- Fixed the issue of controlling the memory size of TimeIndex referenced by Pipe for TsFileResource.
++- Fixed the issue where the Storage Engine - File Count - mods displayed negative values on the monitoring dashboard.
++- Fixed the issue where the query result order was incorrect in the C# client.
++
++...
++
++# Apache IoTDB 1.3.4-1
++
++This is a bug-fix version of 1.3.4
++
++- Fix the bug that will remove the data partition table by mistake in case of us/ns time precision and using ttl
++
++
++# Apache IoTDB 1.3.4
++
++## Features & Improvements
++
++- Data Query: Users can now control the loading of JAR packages via URI for UDF, PipePlugin, Trigger, and AINode through configuration items.
++- Data Query:  Added monitoring for TimeIndex cached during the merge process.
++- System Management: Expanded UDF functions with the addition of the pattern_match function for pattern matching.
++- System Management:The Python session SDK now includes a parameter for connection timeout.
++- System Management:Introduced authorization for cluster management-related operations.
++- System Management:ConfigNode/DataNode now supports scaling down using SQL.
++- System Management:ConfigNode automatically cleans up partition information exceeding the TTL (cleans up every 2 hours).
++- Data Synchronization: Supports specifying authorization information for the receiver on the sender's end.
++- Ecosystem Integration: Supports Kubernetes Operator.
++- Scripts and Tools: The import-data/export-data scripts have been expanded to support new data types (strings, large binary objects, dates, timestamps).
++- Scripts and Tools:The import-data/export-data scripts have been iterated to support importing and exporting data in three formats: TsFile, CSV, and SQL.
++  ...
++
++## Bugs
++
++- Fixed the issue where an ArrayIndexOutOfBoundsException occurred when a column name did not exist in the HAVING clause of the tree model.
++- Fixed the issue where the target sequence in SELECT INTO contained backticks, resulting in incorrect sequences being written.
++- Fixed the issue where an empty iot-consensus file was generated after an abnormal power outage, causing the DataNode (dn) to fail to start.
++- Fixed the issue where the storage engine reported an error during asynchronous recovery after manually deleting the resource file, leading to Pipe startup failure.
++- Fixed the issue where data forwarded by external Pipe could not be synchronized between dual-lives.
++- Fixed the issue where the C# Session could not correctly fetch result sets when querying large amounts of data (exceeding fetch_size) on a cluster with more than one node.
++- Fixed the issue where the order of query results was incorrect in the C# client.
++- Fixed the issue where duplicate timestamps were included in query result sets.
++- Fixed the issue where query results were incorrect for single-device queries with sort+offset+limit+align by device.
++- Fixed the issue where data synchronization failed when a sequence S1 of data type A was deleted and then a sequence S1 of data type B was written, and a TTL existed.
++- Fixed the issue where MergeReader needed to consider memory allocation to avoid negative available memory during out-of-order and reverse queries.
++- Fixed the inconsistency in how ConfigNode and DataNode read the JDK environment variables on Windows.
++- ...
++
++# Apache IoTDB 1.3.3
++
++## Features & Improvements
++
++- Storage Engine: Added new data types String, Blob, Date, and Timestamp.
++- Storage Engine: Multi-level storage has added a rate-limiting mechanism.
++- Storage Engine: New merge target file splitting feature, with additional configuration file parameters, and improved memory control performance of the merge module.
++- Data Query: Filter performance optimization, enhancing the speed of aggregate queries and where condition queries.
++- Data Query: New client query requests load balancing optimization.
++- Data Query: New active metadata statistics query added.
++- Data Query: Optimized memory control strategy during the query planning phase.
++- Data Synchronization: The sender supports transferring files to a specified directory, and the receiver automatically loads them into IoTDB.
++- Data Synchronization: The receiver has a new automatic conversion mechanism for data type requests.
++- Data Synchronization: Enhanced observability on the receiver side, supporting ops/latency statistics for multiple internal interfaces, consolidated into a single pipeTransfer display.
++- Data Loading: DataNode actively listens and loads TsFiles, with additional observability metrics.
++- Stream Processing Module: New data subscription capability, supporting subscription to database data in the form of data points or tsfile files.
++- Stream Processing Module: Alter Pipe supports the ability to alter the source.
++- System Management: Optimized configuration files, with the original three configuration files merged into one, reducing user operational costs.
++- System Management: Optimized restart recovery performance, reducing startup time.
++- System Management: Internal addition of monitoring items such as device count, estimated remaining time for data synchronization, size of data to be synchronized, and synchronization speed.
++- Scripts and Tools: The import-tsfile script is expanded to support running the script on a different server from the IoTDB server.
++- Scripts and Tools: New metadata import and export scripts added.
++- Scripts and Tools: New support for Kubernetes Helm added.
++- AINode: AINode module added.
++  ...
++
++## Bugs
++
++- Fixed the issue of NullPointerException (NPE) when merging chunks with modifications and empty pages in the sequential space.
++- Fixed the issue where the wrong parent file was used when reassigning the file position for skipped files during merge, leading to failure in creating hard links.
++- Fixed the issue where the newly added four data types had null values written, and the TsFile handling of the STRING type was incorrect, causing a BufferUnderflowException: null.
++- Fixed the issue in the high availability scenario where stopping the DataNode resulted in a PipeException: Failed to start consensus pipe.
++- Fixed the issue in Stream mode where the first batch of written data points might require a flush to be synchronized.
++- Fixed the compatibility issue with pipe plugin upgrades.
++- Fixed the issue where the `ORDER BY` clause became ineffective when used in combination with `LIMIT` in the last query.
++  ...
++
++# Apache IoTDB 1.3.2
++
++## Features & Improvements
++
++- Storage Module: Performance improvement in the insertRecords interface for writing
++- Query Module: New Explain Analyze statement added (monitoring the time spent on each stage of a single SQL execution)
++- Query Module: New UDAF (User-Defined Aggregate Function) framework added
++- Query Module: New MaxBy/MinBy functions added, supporting the retrieval of maximum/minimum values along with the corresponding timestamps
++- Query Module: Performance improvement in value filtering queries
++- Data Synchronization: Path matching supports path pattern
++- Data Synchronization: Supports metadata synchronization (including time series and related attributes, permissions, etc.)
++- Stream Processing: Added Alter Pipe statement, supporting hot updates of plugins for Pipe tasks
++- System Module: System data point count statistics now include statistics for data imported by loading TsFile
++- Scripts and Tools: New local upgrade backup tool added (backing up original data through hard links)
++- Scripts and Tools: New export-data/import-data scripts added, supporting data export in CSV, TsFile formats or SQL statements
++- Scripts and Tools: Windows environment now supports distinguishing ConfigNode, DataNode, and Cli by window name
++  ...
++- 
++## Bugs
++
++- Optimize the error message when a NullPointerException (NPE) occurs due to a timeout when dropping a database.
++- Add logs for notifyLeaderReady, notifyLeaderChanged, and procedure worker.
++- Add compatibility handling for existing erroneous data during file merging.
++- Fix the deadlock issue caused by flushing empty files during querying.
++- Fix the issue where Ratis becomes unresponsive during read, write, and delete operations.
++- Fix the concurrent bug in load and merge operations.
++- Fix the issue where the system's compression ratio is recorded as a negative number in the file for certain scenarios.
++- Fix the ConcurrentModificationException issue during memory estimation for merge tasks.
++- Fix potential deadlocks that may occur when writing, automatically creating, and deleting databases concurrently.
++  ...
++
++# Apache IoTDB 1.3.1
++
++## Features & Improvements
++- Add cluster script for one-click start-stop (start-all/stop-all.sh & start-all/stop-all.bat)
++- Add script for one-click instance information collection (collect-info.sh & collect-info.bat)
++- Add new statistical aggregators include stddev and variance
++- Add repair tsfile data command
++- Support setting timeout threshold for Fill clause. When time beyond the threshold, do not fill value.
++- Simplify the time range specification for data synchronization, directly set start and end times
++- Improved system observability (adding dispersion monitoring of cluster nodes, observability of distributed task scheduling framework)
++- Optimized default log output strategy
++- Enhance memory control for Load TsFile, covering the entire process
++- Rest API (Version 2) adds column type return.
++- Improve the process of query execution
++- Session automatically fetch all available DataNodes
++  ...
++
++# Apache IoTDB 1.3.0
++
++## Bugs
++
++- Fix issue with abnormal behavior when time precision is not in milliseconds during grouping by month.
++- Fix issue with abnormal behavior when duration contains multiple units during grouping by month.
++- Fix bug where limit and offset cannot be pushed down when there is an order by clause.
++- Fix abnormal behavior in combination scenario of grouping by month + align by device + limit.
++- Fix deserialization errors during IoT protocol synchronization.
++- Fix concurrent exceptions in deleting timeseries.
++- Fix issue where group by level in view sequences does not execute correctly.
++- Fix potential issue of metadata creation failure when increasing election timeout
++
++## Features & Improvements
++
++- Optimize the permission module and support timeseries permission control
++- Optimize heap and off-heap memory configuration in startup script
++- Computed-type view timeseries support LAST queries
++- Add pipe-related monitoring metrics
++- Pipe rename 'Extractor' to 'Source' and 'Connector' to 'Sink'
++- [IOTDB-6138] Support Negative timestamp
++- [IOTDB-6193] Reject Node startup when loading configuration file failed
++- [IOTDB-6194] Rename target_config_node_list to seed_config_node
++- [IOTDB-6200] Change schema template to device template
++- [IOTDB-6207] Add Write Point Metrics for load function
++- [IOTDB-6208] Node error detection through broken thrift pipe
++- [IOTDB-6217] When the number of time series reaches the upper limit, the prompt message should be changed to prioritize using device templates
++- [IOTDB-6218] Rename storage_query_schema_consensus_free_memory_proportion to datanode_memory_proportion
++- [IOTDB-6219] Fix the display problem of explain that the print result is not aligned
++- [IOTDB-6220] Pipe: Add check logic to avoid self-transmission
++- [IOTDB-6222] Optimize the performance of Python client
++- [IOTDB-6230] Add HEAPDUMP configuration in datanode-env.sh
++- [IOTDB-6231]SchemaCache supports precise eviction
++- [IOTDB-6232] Adding SSL function to dn_rpc_port
++
++# Apache IoTDB 1.2.2
++
++## Bugs
++
++- [IOTDB-6160] while using ` in target path, select into will throw error
++- [IOTDB-6167] DataNode can't register to cluster when fetch system configuration throws NPE
++- [IOTDB-6168] ConfigNode register retry logic does not worked
++- [IOTDB-6171] NPE will be thrown while printing FI with debug on
++- [IOTDB-6184] Merge Sort finishes one iterator too long
++- [IOTDB-6191] Fix group by year not considering leap years
++- [IOTDB-6226] Fix the problem of inaccurate GC monitor detection at the beginning and adjusting the alert threshold
++- [IOTDB-6239] Show regions display error create time
++
++## Features & Improvements
++
++- [IOTDB-6029] Implementing flink-sql-iotdb-connector
++- [IOTDB-6084] Pipe: support node-urls in connector-v1
++- [IOTDB-6103] Adding count_time aggregation feature
++- [IOTDB-6112] Limit & Offset push down doesn't take effect while there exist time filter
++- [IOTDB-6115] Limit & Offset push down doesn't take effect while there exist null value
++- [IOTDB-6120] push down limit/offset in query with group by time
++- [IOTDB-6129] ConfigNode restarts without relying on Seed-ConfigNode
++- [IOTDB-6131] Iotdb rest service supports insertRecords function
++- [IOTDB-6151] Move DataNode's system.properties to upper dir
++- [IOTDB-6173] Change default encoder of INT32 and INT64 from RLE to TS_2DIFF
++- Adjust the default thrift timeout parameter to 60s
++- Accelerate the deletion execution
++
++## Bugs
++
++- [IOTDB-6064] Pipe: Fix deadlock in rolling back procedures concurrently
++- [IOTDB-6081] Pipe: use HybridExtractor instead of LogExtractor when realtime mode is set to log to avoid OOM under heavy insertion load
++- [IOTDB-6145] Pipe: can not release TsFile or WAL resource after pipe is dropped
++- [IOTDB-6146] Pipe: can not transfer data after 1000+ pipes' creating and dropping
++- [IOTDB-6082] Improve disk space metrics
++- [IOTDB-6104] tmp directory won't be cleaned after udf query end
++- [IOTDB-6119] Add ConfigNode leader service check
++- [IOTDB-6125] Fix DataPartition allocation bug when insert big batch data
++- [IOTDB-6127] Pipe: buffered events in processor stage can not be consumed by connector
++- [IOTDB-6132] CrossSpaceCompaction: The estimated memory size is too large for cross space compaction task
++- [IOTDB-6133] NullPointerException occurs in unsequence InnerSpaceCompactionTask
++- [IOTDB-6148] Pipe: Fixed the bug that some uncommited progresses may be reported
++- [IOTDB-6156] Fixed TConfiguration invalidly in Thrift AsyncServer For IoTConsensus
++- [IOTDB-6164] Can create illegal path through rest api
++- Fix datanode status is ReadOnly because the disk is full
++- Fix DataPartition allocation bug when insert big batch
++- Fix flush point statistics
++- Fix SchemaFileSketchTool is not found
++- Refactoring DeleteOutdatedFileTask in WalNode
++- Add compression and encoding type check for FastCompactionPerformer
++- Add lazy page reader for aligned page reader to avoid huge memory cost when reading rows of aligned timeseries
++- Pipe: use PipeTaskCoordinatorLock instead of ReentrantLock for multi thread sync
++- Pipe: fix pipe procedure stuck because of data node async request forever waiting for response
++- Pipe: fix NPE when HybridProgressIndex.updateToMinimumIsAfterProgressIndex after system reboot (DR: SimpleConsensus)
++- Pipe: fix pipe coordinator deadlock causing CN election timeout
++- Pipe: Improve performance for 10000+ pipes
++- RATIS-1873. Remove RetryCache assertion that doesn't hold
++
++# Apache IoTDB 1.2.1
++
++## Features & Improvements
++
++- [IOTDB-5557] The metadata query results are inconsistent
++- [IOTDB-5997] Improve efficiency of ConfigNode PartitionInfo loadSnapshot
++- [IOTDB-6019] Fix concurrent update of last query
++- [IOTDB-6036] The mods file is too large, causing Query very slow even OOM problem
++- [IOTDB-6055] Enable auto restart of the pipes stopped by ConfigNode because of critical exception
++- [IOTDB-6066] Add ConfigNode timeslot metric
++- [IOTDB-6073] Add ClientManager metrics
++- [IOTDB-6077] Add force stop
++- [IOTDB-6079] Cluster computing resource balance
++- [IOTDB-6082] Improve disk space metrics
++- [IOTDB-6087] Implement stream interface of Mods read
++- [IOTDB-6090] Add memory estimator on inner space compaction
++- [IOTDB-6092] Factor mods files into memory estimates for cross-space compaction tasks
++- [IOTDB-6093] Add multiple validation methods after compaction
++- [IOTDB-6106] Fixed the timeout parameter not working in thrift asyncClient
++- [IOTDB-6108] AlignedTVList memory calculation is imprecise
++-
++## Bugs
++
++- [IOTDB-5855] DataRegion leader Distribution is same as DataRegion Distribution
++- [IOTDB-5860] Total Number of file is wrong
++- [IOTDB-5996] Incorrect time display of show queries
++- [IOTDB-6057] Resolve the compatibility from 1.1.x to 1.2.0
++- [IOTDB-6065] Considering LastCacheContainer in the memory estimation of SchemaCacheEntry
++- [IOTDB-6074] Ignore error message when TagManager createSnapshot
++- [IOTDB-6075] Pipe: File resource races when different tsfile load operations concurrently modify the same tsfile at receiver
++- [IOTDB-6076] Add duplicate checking when upsert alias
++- [IOTDB-6078] fix timeChunk default compressType
++- [IOTDB-6089] Improve the lock behaviour of the pipe heartbeat
++- [IOTDB-6091] Add compression and encoding type check for FastCompactionPerformer
++- [IOTDB-6094] Load:Fix construct tsFileResource bug
++- [IOTDB-6095] Tsfiles in sequence space may be overlap with each other due to LastFlushTime bug
++- [IOTDB-6096] M4 will output zero while meeting null
++- [IOTDB-6097] ipe subscription running with the pattern option may cause OOM
++- [IOTDB-6098] Flush error when writing aligned timeseries
++- [IOTDB-6100] Pipe: Fix running in hybrid mode will cause wal cannot be deleted & some pipe data lost due to wrong ProducerType of Disruptor
++- [IOTDB-6105] Load: NPE when analyzing tsfile
++
++# Apache IoTDB 1.2.0
++
++## New Feature
++
++* [IOTDB-5567] add SQL for querying seriesslotid and timeslotid
++* [IOTDB-5631] Add a built-in aggregation functions named time_duration
++* [IOTDB-5636] Add round as built-in scalar function
++* [IOTDB-5637] Add substr as built-in scalar function
++* [IOTDB-5638] Support case when syntax in IoTDB
++* [IOTDB-5643] Add REPLACE as a built-in scalar function
++* [IOTDB-5683] Support aggregation function Mode for query
++* [IOTDB-5711] Python API should support connecting multiple nodes
++* [IOTDB-5752] Python Client supports write redirection
++* [IOTDB-5765] Support Order By Expression
++* [IOTDB-5771] add SPRINTZ and RLBE encodor and LZMA2 compressor
++* [IOTDB-5924] Add SessionPool deletion API
++* [IOTDB-5950] Support Dynamic Schema Template
++* [IOTDB-5951] Support show timeseries/device with specific string contained in path
++* [IOTDB-5955] Support create timeseries using schema template in Session API
++
++## Improvements
++
++* [IOTDB-5630] Make function cast a built-in function
++* [IOTDB-5689] Close Isink when ISourceHandle is closed
++* [IOTDB-5715] Improve the performance of query order by time desc
++* [IOTDB-5763] Optimize the memory estimate for INTO operations
++* [IOTDB-5887] Optimize the construction performance of PathPatternTree without wildcards
++* [IOTDB-5888] TTL logs didn' t consider timestamp precision
++* [IOTDB-5896] Failed to execute delete statement
++* [IOTDB-5908] Add more query metrics
++* [IOTDB-5911] print-iotdb-data-dir tool cannot work
++* [IOTDB-5914] Remove redundant debug log in Session
++* [IOTDB-5919] show variables add a variable timestamp_precision
++* [IOTDB-5926] Optimize metric implementation
++* [IOTDB-5929] Enable DataPartition inherit policy
++* [IOTDB-5943] Avoid rpc invoking for SimpleQueryTerminator when endpoint is local address
++* [IOTDB-5944] Follower doesn' t need to update last cache when using IoT_consensus
++* [IOTDB-5945] Add a cache to avoid initialize duplicated device id object in write process
++* [IOTDB-5946] Optimize the implement of tablet in Go client
++* [IOTDB-5949] Support show timeseries with datatype filter
++* [IOTDB-5952] Support FIFO strategy in DataNodeSchemaCache
++* [IOTDB-6022] The WAL piles up when multi-replica iotconsensus is written at high concurrency
++
++
++## Bug Fixes
++
++* [IOTDB-5604] NPE when execute Agg + align by device query without assigned DataRegion
++* [IOTDB-5619] group by tags query NPE
++* [IOTDB-5644] Unexpected result when there are no select expressions after analyzed in query
++* [IOTDB-5657] Limit does not take effect in last query
++* [IOTDB-5700] UDF query did not clean temp file after the query is finished
++* [IOTDB-5716] Wrong dependency when pipeline consumeOneByOneOperator
++* [IOTDB-5717] Incorrect result when querying with limit push-downing & order by time desc
++* [IOTDB-5722] Wrong default execution branch in PlanVisitor
++* [IOTDB-5735] The result of adding the distinct function to the align by device is incorrect
++* [IOTDB-5755] Fix the problem that 123w can not be used in Identifier
++* [IOTDB-5756] NPE when where predicate is NotEqualExpression and one of subExpression is not exist
++* [IOTDB-5757] Not Supported Exception when use like ' s3 || false' in where even Type of s3 is Boolean
++* [IOTDB-5760] Query is blocked because of no memory
++* [IOTDB-5764] Cannot specify alias successfully when the FROM clause contains multiple path suffixes
++* [IOTDB-5769] Offset doesn' t take effect in some special case
++* [IOTDB-5774] The syntax that path nodes start or end with a wildcard to fuzzy match is not supported
++* [IOTDB-5784] Incorrect result when querying with offset push-down and time filter
++* [IOTDB-5815] NPE when using UDF to query
++* [IOTDB-5837] Exceptions for select into using placeholders
++* [IOTDB-5851] Using limit clause in show devices query will throw NPE
++* [IOTDB-5858] Metric doesn' t display the schemaCache hit ratio
++* [IOTDB-5861] Last quey is incomplete
++* [IOTDB-5889] TTL Cannot delete expired tsfiles
++* [IOTDB-5897] NullPointerException In compaction
++* [IOTDB-5905] Some aligned timeseries data point lost after flush
++* [IOTDB-5934] Optimize cluster partition policy
++* [IOTDB-5953] LastCache memory control param does not take effect
++* [IOTDB-5963] Sometimes we may get out-of-order query result
++* [IOTDB-6016] Release file num cost after cross compaction task
++
++
++# Apache IoTDB 1.1.2
++## New Feature
++
++* [IOTDB-5919]show variables add a variable timestamp_precision
++* Add Python SessionPool
++
++## Improvement/Bugfix
++
++* [IOTDB-5901] Load: load tsfile without data will throw NPE
++* [IOTDB-5903] Fix cannot select any inner space compaction task when there is only unsequence data
++* [IOTDB-5878] Allow ratis-client retry when gRPC IO Unavailable
++* [IOTDB-5939] Correct Flusing Task Timeout Detect Thread
++* [IOTDB-5905] Fix aligned timeseries data point lost after flushed in some scenario
++* [IOTDB-5963] Make sure that TsBlock blocked on memory is added in queue before the next TsBlock returned by root operator
++* [IOTDB-5819] Fix npe when booting net metrics
++* [IOTDB-6023] Pipe: Fix load tsfile error while handling empty value chunk
++* [IOTDB-5971] Fix potential QUOTE problem in iotdb reporter
++* [IOTDB-5993] ConfigNode leader changing causes lacking some DataPartition allocation result in the response of getOrCreateDataPartition method
++* [IOTDB-5910] Fix compaction scheduler thread pool is not shutdown when aborting compaction
++* [IOTDB-6056] Pipe: Failed to load tsfile with empty pages (NPE occurs when loading)
++* [IOTDB-5916]Fix exception when file is deleted during compaction selection
++* [IOTDB-5896] Fix the NPE issue when taking snapshot in WAL combined with Aligned Binary
++* [IOTDB-5929] Enable DataPartition inherit policy
++* [IOTDB-5934] Optimize cluster partition policy
++* [IOTDB-5926] Remove Useless Rater in Timer
++* [IOTDB-6030] Improve efficiency of ConfigNode PartitionInfo takeSnapshot
++* [IOTDB-5997] Improve efficiency of ConfigNode PartitionInfo loadSnapshot
++* Fix potential deadlock when freeing memory in MemoryPool
++* Release resource of FI after all drivers have been closed
++* Set default degree of parallelism back to the num of CPU
++* Make SequenceStrategy and MaxDiskUsableSpaceFirstStrategy are allowed in cluster mode
++* Fix npe exception when invalid in metric module
++* Fix CQ does not take effect in ns time_precision
++* Fix storage engine memory config initialization
++* Fix template related schema query
++* add default charset setting in start-datanode.bat and print default charset when starting
++* Fix TsfileResource error after delete device in sequence working memtable
++* load TsFile bugs: Not checking whether the tsfile data loaded locally is in the same time partition during the loading process & LoadTsFilePieceNode error when loading tsfile with empty value chunks
++* Fix alias query failure after restarting DataNode
++
++# Apache IoTDB 1.1.1
++## New Feature
++
++* [IOTDB-2569] ZSTD compression
++
++## Improvement/Bugfix
++
++* [IOTDB-5781] Change the default strategy to SequenceStrategy
++* [IOTDB-5780] Let users know a node was successfully removed and data is recovered
++* [IOTDB-5735] The result of adding the distinct function to the align by device is incorrect
++* [IOTDB-5777] When writing data using non-root users, the permission authentication module takes too long
++* [IOTDB-5835] Fix wal accumulation caused by datanode restart
++* [IOTDB-5828] Optimize the implementation of some metric items in the metric module to prevent Prometheus pull timeouts
++* [IOTDB-5813] ConfigNode restart error due to installSnapshot failed
++* [IOTDB-5657] Limit does not take effect in last query
++* [IOTDB-5717] Incorrect result when querying with limit push-downing & order by time desc
++* [IOTDB-5722] Wrong default execution branch in PlanVisitor
++* [IOTDB-5784] Incorrect result when querying with offset push-down and time filter
++* [IOTDB-5815] NPE when using UDF to query
++* [IOTDB-5829] Query with limit clause will cause other concurrent query break down
++* [IOTDB-5824] show devices with * cannot display satisfied devices
++* [IOTDB-5831] Drop database won't delete totally files in disk
++* [IOTDB-5818] Cross_space compaction of Aligned timeseries is stucked
++* [IOTDB-5859] Compaction error when using Version as first sort dimension
++* [IOTDB-5869] Fix load overlap sequence TsFile
++
++# Apache IoTDB 1.1.0
++
++## New Features
++
++* [IOTDB-4572] support order by time in align by device
++* [IOTDB-4816] Support Show Queries command
++* [IOTDB-4817] Support kill query command
++* [IOTDB-5077] Support new command formats in  SHOW REGIONS
++* [IOTDB-5108] Support region migration
++* [IOTDB-5202] Support show regions with specific database
++* [IOTDB-5282] Add SQL show variables, which can display the current cluster variables
++* [IOTDB-5341] Support GROUP BY VARIATION in aggregation query
++* [IOTDB-5372] Support data type cast in SELECT INTO
++* [IOTDB-5382] Support DIFF as built-in scalar function in IoTDB
++* [IOTDB-5393] Show Region creation time when execute show regions
++* [IOTDB-5456] Implement COUNT_IF built-in aggregation function
++* [IOTDB-5515] Support GROUP BY CONDITION in aggregation query
++* [IOTDB-5555] Enable modify dn_rpc_port and dn_rpc_address in datanode-engine.properties 
++* Support docker deployment 
++* Rename SeriesSlotId to SeriesSlotNum in show regions
++
++## Improvements
++
++* [IOTDB-4497] Improve NodeStatus definition
++* [IOTDB-5066] Upgraded the GetSlots SQLs
++* [IOTDB-5161] Add output type check for WHERE & HAVING clause and refuse expressions whose return type are not boolean exist in WHERE & HAVING clause
++* [IOTDB-5185] Fixed that old snapshot is not deleted in IoTConsensus
++* [IOTDB-5287] Added status “Discouraged” to RegionGroup
++* [IOTDB-5449] Wait for query resource while the query queue is full instead of throwing exception directly 
++* change STARTUP_RETRY_INTERVAL_IN_MS from 30s to 3s
++
++## Bug Fixes
++
++* [IOTDB-4684] Fix devices with the same name but different alignment properties are compacted into the wrong alignment property
++* [IOTDB-5061] Add initialize state check when create snapshot
++* [IOTDB-5090] Fix the NPE when executing stop-datanode.sh
++* [IOTDB-5112] Fixed IoTConsensus synchronization stuck under low load or during restart
++* [IOTDB-5126] Fix that show-regions show IP rather than hostname even though the hostname is used when registering
++* [IOTDB-5165] Fix fail to pass compaction validation when resources degrade to FileTimeIndex
++* [IOTDB-5170] Fix the problem that datanode is closed when executing stop-confignode.bat on Windows platform
++* [IOTDB-5199] Fix NPE in StorageExector inLoading process
++* [IOTDB-5216] Fix order by timeseries doesn't take effect in aligned last query
++* [IOTDB-5228] NPE if the file does not exist while creating TsFileSequenceReader instance
++* [IOTDB-5240] Fix schema template timeseries read/write error after restart
++* [IOTDB-5245] Fix data is incomplete in last query
++* [IOTDB-5277] Fix DataNode restart failure when SchemaRegion loading snapshot
++* [IOTDB-5278] Fix JDBC Driver cannot connect to the dbeaver
++* [IOTDB-5285] Fix TimePartition error when restarting with different time partition configuration
++* [IOTDB-5269] Fix wrong data of devices ought to be deleted after executing `delete from` sql
++* [IOTDB-5324] Fix wal cann't be deleted in destDataNode after region migration when data_replication_factor is 1 in IoTConsensus
++* [IOTDB-5389] Cause DataNode startup to fail when wal_mode is disabled in IoTConsensus
++* [IOTDB-5414] Fix timeseries with alias deleted success but can still be queried by alias
++* [IOTDB-5426] Cannot trigger flush for sequence file when timed flush enabled
++* [IOTDB-5441] Fix NPE while fetch schema that is not in template used by related device
++* [IOTDB-5469] Fix get schema info failure after creating template with backquote characters successfully
++* [IOTDB-5474] Fix count nodes using level bug
++* [IOTDB-5480] IoTConsensus sync lag may be negative under single copy
++* [IOTDB-5488] Support set system to readonly on local
++* [IOTDB-5492] Skip broken tsfile when recovering system
++* [IOTDB-5512] Fixed IoTConsensus may repeatedly send some log when restarting
++* [IOTDB-5516] Fix creating timeseries failure after dropping all databases
++* [IOTDB-5526] Fix deleting timeseries failure when it belongs to a device activating template
++* [IOTDB-5548] Fix dropping template failure when using pure number as template name
++* [IOTDB-5592] Fix unexpected error while using full path(starting with root) in having/where clause
++* [IOTDB-5620] Fix flush stuck when there is a lot of time partitions in each DataRegion
++* [IOTDB-5639] Fix file not found exception in cross space compaction selector
++* [IOTDB-5657] Fix LIMIT&OFFSET does not take effect in last query
++* [IOTDB-5684] Fix log folder generation when using ConfigNode's Simple consensus protocol
++* [IOTDB-5685] Fix error msg of failing to create a timeseries on an existing path when ReadOnly state
++* [IOTDB-5686] Fix devices with the same name but different alignment properties meets error in inner seq compaction
++* [IOTDB-5700] Clean temporary files created by UDF query after it finishes 
++* Add SHOW_CQ privilege
++
++# Apache IoTDB 1.0.0
++
++## New Features
++
++* New architecture that supports standalone and cluster mode with two types of nodes: ConfigNode, DataNode
++* Support ConfigNode management: Start/Add, Stop, Remove
++* Support DataNode management: Start/Add, Stop, Remove
++* Support replication of ConfigNode, Schema and Data
++* Support Consensus Protocol: Simple, IoT, Ratis
++* Support Cluster management sql: show cluster, show regions
++* Support administration in Cluster:  User, Permission, Role management
++* Support authorization when login and executing a command
++* Support create/show/count/delete database
++* Support show/count devices
++* Support create/show/count timeseries
++* Support schema template management
++* Support MPP(massively parallel process) framework in cluster
++* Support insertion, deletion and all query types in Cluster
++* Support CSV import/export tools
++* Support TsFile import/export tools
++* Support Sync TsFile from an IoTDB with one replica to another with any replica number
++* Support UDF framework in Cluster
++* Support new UDF 'change_points
++* Support stateful, stateless Trigger in Cluster
++* Support Select into in Cluster
++* Support Continuous Query in Cluster
++* Support flush on local/cluster
++* Support clear cache on local/cluster
++* Support metric for DataNode and ConfigNode with output to IoTDB, Prometheus, and JMX
++* Support DBAPI in python client
++* Support RestApi, MQTT for cluster
++* Support having clause and between expression in query
++* Support order by timeseries in last query
++* Support hot configuration of data_dirs
++
++# Apache IoTDB 0.13.3
++
++## Improvements
++
++* [IOTDB-4525] Accelerate restart process
++* [IOTDB-3164] Add compaction memory control
++* [IOTDB-4364] Reduce read amplification in compaction
++* [IOTDB-4424] Specify error message when time value of insert sql can not be correctly parsed
++* [IOTDB-4492] Control total file size of cross space compaction task
++* [IOTDB-4542] Optimize schema validate error message
++* Optimize pattern matching in Regexp
++
++## Bug Fixes
++
++* [IOTDB-3988] Fix reload problem of metric module and refactor metric module
++* [IOTDB-4239] fix NPE to insert a null value into a TEXT timeseries
++* [IOTDB-4318] Fix RESTAPI data type conversion failed
++* [IOTDB-4320] Fix insert row with null cause recover throw NPE
++* [IOTDB-4343] Fix NPE when using MQTT protocol
++* [IOTDB-4357] fix start in windows, IOTDB_LOG_DIR_IS_UNDEFINED folder appears
++* [IOTDB-4585] Incorrect query result after deleting data for aligned timeseries
++* [IOTDB-4615] TTL adapts timestamp precision
++* [IOTDB-4636] IndexOutOfBoundsException when compacting aligned series
++* Fix PathAlreadyExistException during concurrent auto creating aligned timeseries
++
++# Apache IoTDB 0.13.2
++
++## Improvements
++
++[IOTDB-2669] Improve C++ client insertTablet performance
++[IOTDB-3087] enlarge default value of avg_series_point_number_threshold
++[IOTDB-3861] Enable insert null values in Session
++[IOTDB-3996] REST API nonQuery support Continuous Query
++[IOTDB-4120] Optimize memory allocation of Expression
++[IOTDB-4190] update documents about nifi-iotdb-bundle
++REST support "select into" in nonQuery API
++Import-CSV supports specify data type and no need quotation for text value
++
++## Bug Fixes
++
++[IOTDB-2736] DELETE_STORAGE_GROUP can not be granted to user (reporting 401)
++[IOTDB-2760] Ordinary users do not grant any permissions, but can still show operations
++[IOTDB-2769] Fix auth mapping of GRANT_ROLE_PRIVILEGE and GRANT_USER_ROLE
++[IOTDB-3302] Without any authorization, ordinary users still have the right to query other user information
++[IOTDB-4023] The C++ interface query result returns records error
++[IOTDB-4047] Query NPE after change device alignment
++[IOTDB-4096] Fix the names of metric pushed to Prometheus are inconsistency in micrometer and dropwizard
++[IOTDB-4194] IOException happened in Compaction
++[IOTDB-4215] Fix incorrect aggregate query results due to wrong unseq file traversal order
++[IOTDB-4216] Fix execute create aligned timeseries but a non-aligned timeseries created
++[IOTDB-4222] DeadLock when concurrently deleting and creating storage groups
++[ISSUE-6774] Connection error when using DataGrip with JDBC driver
++[ISSUE-6937] After restart, the aligned series turns to non-aligned
++[ISSUE-6987] Fix select error when selecting a single quotation mark
++
++# Apache IoTDB 0.13.1
++
++## New Features
++
++* [IOTDB-2602] "Without null" supports filtering based on partial columns
++* [IOTDB-3873] Aligned timeseries support single point fill query
++* [ISSUE-6171] Support createTimeseriesOfTemplate in Session
++* [IOTDB-3742] Support COUNT NODES by root.**
++
++## Improvements
++
++* [IOTDB-2820] Update UserGuide SQL about Trigger
++* [IOTDB-2837] Add check and sort for NumpyTablet to make sure timestamps are ordered
++* [IOTDB-2838] Check and auto correct endian type for NumpyTablet
++* [IOTDB-2873] provide json template for grafana
++* [IOTDB-2888] Unary expression can followed by a constant
++* [IOTDB-3747] Default Paging of Schema Query with limit 10000
++* [IOTDB-3797] Print detailed info in session when connection fails
++* [IOTDB-3851] C++ client method of tablet sorting optimization
++* [IOTDB-3879] Modify document about the Programming-Cpp-Native-API
++* [IOTDB-3901] C++ client method of insertRecordsOfOneDevice sorting optimization
++
++## Bug Fixes
++
++* [IOTDB-2753] Insert a time series with a null value and report 500
++* [IOTDB-2759] Result of "Show paths set schema template" or "using template" is not complete
++* [IOTDB-2775] Fix throwing exception when query non-exist device in TsFileSequenceReader
++* [IOTDB-2787] Fix aligned mem chunk concurrent problem
++* [IOTDB-2826] Fix can not drop schema template
++* [IOTDB-2828] Update system_version in system.properties after upgrading
++* [IOTDB-2835] Fix empty page in selfcheck method of TsFileSequenceReader
++* [IOTDB-2837] Add check and sort for NumpyTablet to make sure timestamps are ordered
++* [IOTDB-2852] The import-csv tool can not import the data to nonaligned device
++* [IOTDB-2859] Fix python tablet with None value is incorrect
++* [IOTDB-2862] Fix SQL injection risks of grafana-connector
++* [IOTDB-2864] Fix Read-only occurred when insert Text value to aligned timeseries
++* [IOTDB-2882] Fix unary expression display bug
++* [IOTDB-2902] Handling user privileges for aligned timeseries related features
++* [IOTDB-2903] Fix show latest timeseries result does not sorted by time
++* [IOTDB-2910] Fix count result not right after deleting storage group
++* [IOTDB-2915] MLogTxtWriter error while parsing CreateAlignedTimeseriesPlan
++* [IOTDB-2922] Fix NPE when compacting with files that contains zero device
++* [IOTDB-2924] UDF Framework: index overflow while iterating sliding windows
++* [IOTDB-2983] Serialization error in Partial insert
++* [IOTDB-2999] Remove useless config and fix default value error.
++* [IOTDB-3018] Fix compaction bugs on handling deleted target file
++* [IOTDB-3029] The prefix path generated by the select into target sequence contains * and ** currently unchecked
++* [IOTDB-3045] The query result contains some timeseries that have been deleted
++* [IOTDB-3120] Print the tsfile name when meet IOException
++* [IOTDB-3158] Fix NPE exception when use iotdb-reporter
++* [IOTDB-3160] TsFile will be corrupted when flushing memtable appears OOM
++* [IOTDB-3168] Forbid the path with * could be inserted
++* [IOTDB-3171] Fix NPE when getting modification file
++* [IOTDB-3219] Fix stop-server on windows
++* [IOTDB-3247] Recover aligned sensors after deleting timeseries, query lost data
++* [IOTDB-3301] Tag recover bug after IoTDB server restart
++* [IOTDB-3364] Fix Query stucked with null valued aligned timeseries bug
++* [IOTDB-3420] Fix show paths set schema template t1 error
++* [IOTDB-3494] Fix TypeError in py-session
++* [IOTDB-3523] Fix the count and COUNT not equal bug when querying with group by level
++* [IOTDB-3645] Fix use statistics bug in aggregation query
++* [IOTDB-3651] Stop compaction schedule when all compaction is disable
++* [IOTDB-3709] Fix a loop occurred in TsFileResourceList, causing the query to fail and oom occurs
++* [IOTDB-3730] Fix ArrayIndexOutOfBounds when flushing a memtable
++* [IOTDB-3795] Remove setting read-only when handling compaction exception
++* [IOTDB-3803] failed to insert data of TEXT by session
++* [IOTDB-3816] Fix /zero bug in recover
++* [IOTDB-3822] Fix cross compaction overlap bug
++* [IOTDB-3826] Fix duplicate success when concurrent creating same timeseries
++* [IOTDB-3858] IndexOutOfBoundsException: bitIndex < 0
++* [ISSUE-5482] Fix Release zip files include incorrect version of Guava
++* [ISSUE-5773] Aggregation result is not complete
++* [ISSUE-5964] Fix bug of aligned timeseries time duplicated aggregation
++
++
++# Apache IoTDB 0.13.0
++
++## New Features
++
++* [IOTDB-924] Support insert multi rows in SQL
++* [IOTDB-959] Add Create Storage Group Grammar 
++* [IOTDB-1037] set rpc\_compression as a parameter in JDBC URL
++* [IOTDB-1059] Support sql statement insert without timestamp
++* [IOTDB-1143] Support Continuous query
++* [IOTDB-1199] Support aligned timeseries and schema template 
++* [IOTDB-1319] Support Trigger
++* [IOTDB-1391] Add a new Aggregation function extreme (max absolute value)
++* [IOTDB-1399] Add a session interface to connect multiple nodes
++* [IOTDB-1400] Support arithmetic operations in SELECT clauses
++* [IOTDB-1403] Dictionary encoding for TEXT
++* [IOTDB-1490] Add built-in UDTFs: sinh, conh, tanh
++* [IOTDB-1514] Support null in insertTablet
++* [IOTDB-1524] Support SELECT ... INTO ... clause 
++* [IOTDB-1647] Nested Expressions in SELECT clauses
++* [IOTDB-1673] CLI upgrade to JLine3
++* [IOTDB-1739] Constant timeseries generating functions (const, pi and e) 
++* [IOTDB-1760] Support avg, count, extreme, first\_value, last\_value, max\_time, max\_value, min\_time, min\_value, sum aggregations in group by fill
++* [IOTDB-1761] Add metric framework for IoTDB
++* [IOTDB-1775] Add CAST function to convert data type
++* [IOTDB-1823] Support group by multi level
++* [IOTDB-1844] Query support timeseries prefix and suffix matching: root.\*sg\*
++* [IOTDB-1859] Support REST API
++* [IOTDB-1860] New Grafana plugin
++* [IOTDB-1886] Support Constant Expressions in Select Clauses
++* [IOTDB-1973] Supports aggregate queries, constants, and arithmetic nested expressions in SELECT clauses
++* [IOTDB-1986] Support select UDF as alisa clauses 
++* [IOTDB-1989] Spark-IoTDB-connector support inserting data
++* [IOTDB-2131] Support previous, linear, constant value fill funtion New fill
++* [ISSUE-3811] Provide a data type column for the last query dataset
++* add rabbitmq example
++
++## Improvements
++
++* [IOTDB-1280] Rewrite the Antlr grammar file
++* [IOTDB-1372] Enhance management of TsFileResource 
++* [IOTDB-1428] Ask query threads to quit if query is timeout 
++* [IOTDB-1450] Deletion should only delete related time partitions
++* [IOTDB-1463] Implement builder pattern for Session and SessionPool 
++* [IOTDB-1477] Optimize code logic of generateAlignByDevicePlan() 
++* [IOTDB-1559] Refactor the IT framework
++* [IOTDB-1564] Make hearbeat and election timeout parameters be configurable
++* [IOTDB-1581] Consider deletions when recovering tsFileResource of incomplete tsfile 
++* [IOTDB-1607] Optimize Tracing
++* [IOTDB-1613] Recover mods file if  write modification failed
++* [IOTDB-1639] Refactoring the cluster class structure to make it consistent with the server module 
++* [IOTDB-1730] client-cpp, enhance session::insertTablet() etc.'s performance 
++* [IOTDB-1852] Accelerate queryies by using statistics
++* [IOTDB-1857] Remove useless handle logic for CountPlan in executeNonQuery in cluster module
++* [IOTDB-1884] Distinguish between zero and null values in sum aggregation
++* [IOTDB-1924] Remove the operation of clearing the cache after the compaction is over
++* [IOTDB-1950] Add Bloom Filter cache for query 
++* [IOTDB-2001] Remove redundant StorageGroupNotReadyException
++* [IOTDB-2011] Update last cache while doing show latest timeseries query
++* [IOTDB-2022] SessionDataSet implements AutoCloseable
++* [IOTDB-2075] Accelerate the process of insertTablets by using thread pool
++* [IOTDB-2119] IoTDB CSV export tools add timestamp accuracy setting function 
++* [IOTDB-2162] Simplify the recovery merge process
++* [IOTDB-2176] Limit target chunk size when performing inner space compaction
++* [IOTDB-2193] Reduce unnecessary lock operations of RaftLogManager to improve writing performance 
++* [IOTDB-2195] Control the concurrent query execution thread
++* [IOTDB-2632] Set compaction_write_throughput_mb_per_sec to 16 by default
++* [ISSUE-3445] New compaction strategy and compaction scheduling strategy
++* [ISSUE-3856] refine exception handling logic in commitTo in RaftLogManager
++* [Cluster] No need to shake hands with itself when one node restart 
++
++
++## Incompatible changes
++
++* [IOTDB-1026] Support wildcard \*\* in Path And Replace PrefixPath usage with PathPattern in IOTDB-SQL
++* [IOTDB-1620] Support backtick (\`) character and double quotes (") to quote identifiers 
++* [IOTDB-1650] Rename the sql command `move` to `unload` 
++
++## Miscellaneous changes
++
++* [IOTDB-1342] modify error message about LIMIT and OFFSET used in conjunction with the FILL clause
++* [IOTDB-1372] delete devices field in FileTimeIndex 
++* [IOTDB-1531] Check tsfile creation time when recovering
++* [IOTDB-1541] Change sequence of wal and memtable in insertion
++* [IOTDB-1923] Separate the request unpacking and execution processing logic of TSServiceImpl
++* [IOTDB-1969] Remove statistic resources of old metric framework from iotdb-server
++* [IOTDB-2014] MicrometerPrometheusReporter#getReporterType return null 
++* [IOTDB-2043] refactor: remove haveSorted param from Session
++* [IOTDB-2154] add TsFileUtils.isTsFileComplete
++* [IOTDB-2206] Rename StorageGroupProcessor to VirtualStorageGroupProcessor
++* [IOTDB-2208] Reconstruct the process of generating resultset header of query
++* [ISSUE-4047] Generic type in Statistics extend Serializable 
++* Add compaction version in cache key
++* Add a constructor of IoTDBDescriptorHolder to prohibit instantiation
++
++## Bug Fixes
++
++* [IOTDB-1266] Fix SHOW TIMESERIES will only display 2000 timeseries
++* [IOTDB-1478] The whole IoTDB can not read/write if any one sg is not ready
++* [IOTDB-1562] Fix incorrect exception processing in insertXXX() API
++* [IOTDB-1583] Raft log failed to be committed in cluster version 
++* [IOTDB-1592] BugFix: SLimit Not effective in align by device 
++* [IOTDB-1736] Fix error code is not printed in TSServiceImpl's log 
++* [IOTDB-1749] sync-tool's lockInstance() dose not take effect
++* [IOTDB-1758] sync-tool, empty uuid file cause tool can not auto-recovery
++* [IOTDB-1848] Failed to initialize pool: Does not support setReadOnly in grafana-connector
++* [IOTDB-1853] Fix bug about more than one TimeseriesMetadata in TsFile
++* [IOTDB-2010] fix incomplete show timeseries result
++* [IOTDB-2021] Fix Bloom Filter Cache doesn't take effect bug 
++* [IOTDB-2060] Fix NPE when using fill without a filter
++* [IOTDB-2074] Fix NullPointerException when recovering compaction in MacOS
++* [IOTDB-2077] Unexpected exception when executing raw data query without VF with limit clause
++* [IOTDB-2088] Fix IndexOutOfBound exception in AggregationPlan.groupAggResultByLevel
++* [IOTDB-2116] Fix all client connections are stuck bug caused by logback bug 
++* [IOTDB-2129] Wrong result returned when querying by nested expressions with aliases
++* [IOTDB-2143] fix wrong precision in cluster mode
++* [IOTDB-2153] [IOTDB-2157] fix incorrect path search space 
++* [IOTDB-2159] Fix wrong status code when inserting data to a read-only cluster
++* [IOTDB-2163] Fix unexpected amount of columns in a cluster slimit query
++* [IOTDB-2174] Fix Regexp filter serializing and deserializing error 
++* [IOTDB-2180] Fix show latest timeseries in cluster
++* [IOTDB-2183] Fix the config problems in cluster mode
++* [IOTDB-2185] Fix get an exception when parsing the header of CSV
++* [IOTDB-2209] Fix logback CVE-2021-42550 issue
++* [IOTDB-2251] [IOTDB-2252] Fix Query deadlock 
++* [IOTDB-2267] UDF: Error code 500 caused by user logic
++* [IOTDB-2282] fix tag recovery bug after tag upsert
++* [IOTDB-2290] Fix Incorrect query result in C++ client 
++* Fix CPP client could not be successfully built on windows
++* Fix dead lock in setDataTTL method
++
++
++# Apache IoTDB 0.12.5
++
++## New Features
++* [IOTDB-2078] Split large TsFile tool
++* [IOTDB-2192] Support extreme function
++
++## Improvements
++* [IOTDB-1297] Refactor the memory control when enabling time partitions
++* [IOTDB-2195] Control the concurrent query execution thread
++* [IOTDB-2475] Remove sg not ready log in batch process
++* [IOTDB-2502] Add query sql in error log if encountering exception
++* [IOTDB-2506] Refine the lock granularity of the aggregation query
++* [IOTDB-2534] add character support while using double quote
++* [IOTDB-2562] Change default value of sync mlog period parameter
++* Avoid too many warning logs being printed, when opening too many file handlers
++
++
++## Bug Fixes
++* [IOTDB-1960] Fix count timeseries bug in cluster mode
++* [IOTDB-2174] Fix Regexp filter serializing and deserializing error
++* [IoTDB-2185] fix get an exception bug when parsing the header of CSV
++* [IOTDB-2194] Fix SHOW TIMESERIES will only display 2000 timeseries in cluster mode
++* [IOTDB-2197] Fix datatype conversion exception in Spark Connector
++* [IOTDB-2209] Fix logback CVE-2021-42550 issue
++* [IOTDB-2219] Fix query in-memory data is incorrect in cluster mode
++* [IOTDB-2222] Fix OOM and data was written in incorrectly bugs of Spark Connector
++* [IOTDB-2251] [IOTDB-2252] Fix Query deadlock
++* [IOTDB-2282] fix tag recover bug after tag update
++* [IOTDB-2320] MemoryLeak cause by wal Scheduled trim task thread
++* [IOTDB-2381] Fix deadlock caused by incorrect buffer pool size counter
++* [IOTDB-2400] Fix series reader bug
++* [IOTDB-2426] WAL deadlock caused by too many open files
++* [IOTDB-2445] Fix overlapped data should be consumed first bug
++* [IOTDB-2499] Fix division by zero error when recovering merge
++* [IOTDB-2507] Fix NPE when merge recover
++* [IOTDB-2528] Fix MLog corruption and recovery bug after killing system
++* [IOTDB-2532] Fix query with align by device can't get value after clear cache
++* [IOTDB-2533] Fix change max_deduplicated_path_num does not take effect
++* [IOTDB-2544] Fix tag info sync error during metadata sync
++* [IOTDB-2550] Avoid show timeseries error after alter tag on sync sender
++* [IOTDB-2567]  Fix thread and ByteBuffer leak after service stopped
++* [IOTDB-2568] "show query processlist" is blocked
++* [IOTDB-2580] Fix DirectByteBuffer and thread leak when deleting storage group
++* [IOTDB-2584] Fix cross space compaction selector
++* [IOTDB-2603] Fix compaction recover
++* [IOTDB-2604] Fix batch size is invalid in import-csv tool
++* [IOTDB-2620] Unrecognizable operator type (SHOW) for AuthorityChecker
++* [IOTDB-2624] Fix "overlapped data should be consumed first" occurs when executing query
++* [IOTDB-2640] Fix cross compaction recover bug
++* [IOTDB-2641] Fix time range of TsFile resource overlaps after unseq compaction
++* [IOTDB-2642] Fix the new file has a higher compact priority than the old file in unseq compaction
++* Fix a logical bug in processPlanLocally in cluster mode
++* Throw Exception while using last query with align by device
++* Add a judgement to determine raft log size can fit into buffer before log appending in cluster mode
++* Fix grafana can't be used bug
++
++# Apache IoTDB 0.12.4
++
++## New Features
++
++* [IOTDB-1823] group by multi level
++
++## Improvements
++
++* [IOTDB-2027] Rollback invalid entry after WAL writing failure
++* [IOTDB-2061] Add max concurrent sub query parameter, read data in batches to limit max IO and add max cached buffer size configuration
++* [IOTDB-2065] release TsFileSequenceReader soon when it is no longer used
++* [IOTDB-2072] Remove TVListAllocator to reduce the TVList mem cost
++* [IOTDB-2101] Reduce the memory footprint of QueryDataSource
++* [IOTDB-2102] Push limit operator down to each reader
++* [IOTDB-2123] Accelerate recovery process
++* update user guide for cpp-cpi and disable compiling nodejs in cpp-cli
++* Ignore too many WAL BufferOverflow log
++
++
++## Bug Fixes
++* [IOTDB-1408] Statement with 'as' executes incorrectly in mutil-path scenes
++* [IOTDB-2023] Fix serializing and deserializing bugs of Filters
++* [IOTDB-2025] Fix count nodes and devices incorrectly in cluster
++* [IOTDB-2031] Fix incorrect result of descending query with value filter in cluster
++* [IOTDB-2032] Fix incorrect result of descending query with multiple time partitions
++* [IOTDB-2039] Fix data redundant after too many open files exception occurs during compaction
++* [IOTDB-2047] Fix NPE when memControl is disabled and insert TEXT value to a non-TEXT series
++* [IOTDB-2058] Fix Query is blocked without sub-query-threads exist bug
++* [IOTDB-2063] Fix MinTimeDescAggregationResult implementation bug
++* [IOTDB-2064] Fix the NPE caused by map serde
++* [IOTDB-2068] Fix GZIP compressor meets ArrayIndexOutOfBoundsException
++* [IOTDB-2124] the filtering condition does not take efffect for last query in cluster
++* [IOTDB-2138] Fix data loss after IoTDB recover
++* [IOTDB-2140] Fix merge throw NullPointerException
++* [IOTDB-2152] PyClient: Override `__eq__()` of TSDataType, TSEncoding and Compressor to avoid unexpected comparation behaviour
++* [IOTDB-2160] Fix cluster groupby query cross-node reference leaks
++* [ISSUE-3335] Fix the bug of start-cli.sh -e mode can't work with wild card \*
++* fix memory leak: replace RandomDeleteCache with Caffine CacheLoader
++* Fix connection refused using session when users forget to set client ip
++
++
++# Apache IoTDB 0.12.3
++
++## Improvements
++
++* [IOTDB-842] Better Export/Import-CSV Tool
++* [IOTDB-1738] Cache paths list in batched insert plan
++* [IOTDB-1792] remove tomcat-embed dependency and make all transitive dependencies versions consistent
++* [ISSUE-4072] Parallel insert records in Session
++* Print the file path while meeting error in case of reading chunk
++
++## Bug Fixes
++
++* [IOTDB-1275] Fix backgroup exec for cli -e function causes an infinite loop
++* [IOTDB-1287] Fix C++ class Session has 2 useless sort()
++* [IOTDB-1289] fix CPP mem-leak in SessionExample.cpp insertRecords()
++* [IOTDB-1484] fix auto create schema in cluster
++* [IOTDB-1578] Set unsequnce when loading TsFile with the same establish time
++* [IOTDB-1619] Fix an error msg when restart iotdb-cluster
++* [IOTDB-1629] fix the NPE when using value fill in cluster mode
++* [IOTDB-1632] Fix Value fill function fills even when the data exists
++* [IOTDB-1651] add reconnect to solve out of sequence in sync module
++* [IOTDB-1659] Fix Windows CLI cannot set maxPRC less than or equal to 0
++* [IOTDB-1670] Fix cli -e mode didn't fetch timestamp_precision from server
++* [IOTDB-1674] Fix command interpret error causing somaxconn warning failed
++* [IOTDB-1677] Fix not generate file apache-iotdb-0.x.x-client-cpp-linux-x86_64-bin.zip.sha512
++* [IOTDB-1678] Fix client-cpp session bug: can cause connection leak.
++* [IOTDB-1679] client-cpp: Session descontruction need release server resource
++* [IOTDB-1690] Fix align by device type cast error
++* [IOTDB-1693] fix IoTDB restart does not truncate broken ChunkGroup bug
++* [IOTDB-1703] Fix MManager slow recover with tag
++* [IOTDB-1714] fix Could not find or load main class when start with jmx on win 
++* [IOTDB-1723] Fix concurrency issue in compaction selection
++* [IOTDB-1726] Wrong hashCode() and equals() method in ChunkMetadata
++* [IOTDB-1727] Fix Slow creation of timeseries with tag
++* [IOTDB-1731] Fix sync error between different os
++* [IOTDB-1733] Fix dropping built-in function
++* [IOTDB-1741] Avoid double close in level compaction execution
++* [IOTDB-1785] Fix Illegal String ending with . being parsed to PartialPath
++* [IOTDB-1836] Fix Query Exception Bug after deleting all sgs
++* [IOTDB-1837] Fix tagIndex rebuild failure after upgrade mlog from mlog.txt to mlog.bin
++* [IOTDB-1838] The compacting status in SGP is always false
++* [IOTDB-1846] Fix the error when count the total number of devices in cluster mode
++* [IoTDB-1847] Not throw excpetion when pulling non--existent time series
++* [IOTDB-1850] Fix deserialize page merge rate limiter
++* [IoTDB-1865] Compaction is blocking when removing old files in Cluster
++* [IOTDB-1868] Use RwLock to reduce the lock time for nodeRing
++* [IOTDB-1872] Fix data increases abnormally after IoTDB restarts
++* [IOTDB-1877] Fix Sync recovery and reconnection bugs in both sender and receiver
++* [IOTDB-1879] Fix some Unsequence files never be merged to higher level or Sequence folder
++* [IOTDB-1887] Fix importing csv data containing null throws exception
++* [IOTDB-1893] Fix Can not release file lock in sync verify singleton 
++* [IOTDB-1895] Cache leader optimization for batch write interfaces on multiple devices
++* [IOTDB-1903] Fix IndexOutOfRangeException when starting IoTDB
++* [IoTDB-1913] Fix When exporting a amount of data from csv, it will report network error or OOM
++* [IOTDB-1925] Fix the modification of max_select_unseq_file_num_in_each_compaction parameter does not take effect
++* [IOTDB-1958] Add storage group not ready exception
++* [IOTDB-1961] Cluster query memory leak
++* [IOTDB-1975] OOM caused by that MaxQueryDeduplicatedPathNum doesn't take effect
++* [IOTDB-1983] Fix DescReadWriteBatchData serializing bug
++* [IOTDB-1990] Fix unchecked null result by calling IReaderByTimestamp.getValuesInTimestamps()
++* [ISSUE-3945] Fix Fuzzy query not support multiDevices and alignByDevice Dataset
++* [ISSUE-4288] Fix CI issue caused by the invalid pentaho download url
++* [ISSUE-4293] SessionPool: InterruptedException is not properly handled in synchronized wait()
++* [ISSUE-4308] READ_TIMESERIES privilege granted to users and roles can not take effect when quering by UDFs
++* fix merge ClassCastException: MeasurementMNode
++* change sync version check to major version
++* init dummyIndex after restart cluster
++
++# Apache IoTDB 0.12.2
++
++## New Features
++
++* [IOTDB-959] Add create storage group Grammar
++* [IOTDB-1399] Add a session interface to connect multiple nodes
++* [IOTDB-1466] Support device template
++* [IOTDB-1491] UDTF query supported in cluster
++* [IOTDB-1496] Timed flush memtable
++* [IOTDB-1536] Support fuzzy query REGEXP
++* [IOTDB-1561] Support fill by specific value
++* [IOTDB-1565] Add sql: set system to readonly/writable
++* [IOTDB-1569] Timed close TsFileProcessor
++* [IOTDB-1586] Support mysql-style Like clause
++* [ISSUE-3811] Provide a data type column for the last query dataset
++* TTL can be set to the prefix path of storage group
++* add JMX monitor to all ThreadPools in the server module
++
++## Improvements
++
++* [IOTDB-1566] Do not restrict concurrent write partitions
++* [IOTDB-1585] ModificationFile‘s write interface blocking
++* [IOTDB-1587] SessionPool optimization: a more aggressive Session creation strategy
++* Use StringCachedPool in TsFileResource to reduce the memory size
++* write performance optimization when replicaNum == 1
++* Optimize Primitive Array Manager
++* Function Improvement: add overlapped page rate in Tracing
++
++## Bug Fixes
++
++* [IOTDB-1282] fix C++ class SessionDataSet mem-leak
++* [IOTDB-1407] fix Filtering time series based on tags query fails Occasionally
++* [IOTDB-1437] Fix the TsFileSketchTool NPE
++* [IOTDB-1442] Time filter & TTL do not take effect in cluster
++* [IOTDB-1452] remove compaction log/ change logger to daily
++* [IOTDB-1447] ClientPool is blocking other nodes when one node fails
++* [IOTDB-1456] Fix Error occurred while executing delete timeseries statement
++* [IOTDB-1461] Fix compaction conflicts with ttl
++* [IOTDB-1462] Fix cross space compaction recover null pointer bug
++* [IOTDB-1464] fix take byte array null pointer
++* [IOTDB-1469] fix cross space compaction lost data bug
++* [IOTDB-1471] Fix path not right in "sg may not ready" log
++* [IOTDB-1475] MeasurementId check while create timeseries or template/ disable time or timestamp in timeseries path
++* [IOTDB-1488] Fix metaMember's forwarding clientPool timeout in cluster module
++* [IOTDB-1494] fix compaction block flush bug
++* [IoTDB-1499] Remove series registration using IoTDBSink
++* [IoTDB-1501] Fix compaction recover delete tsfile bug
++* [IOTDB-1529] Fix mlog recover idx bug and synchronize setStorageGroup
++* [IOTDB-1537] fix insertTablet permission
++* [IOTDB-1539] Fix delete operation with value filter is abnormal
++* [IOTDB-1540] Bug Fix: 500 when using IN operator
++* [IOTDB-1541] Fix query result not right due to non-precise time index of resource
++* [IOTDB-1542] Cpp client segment fault: char[] buffer overflow caused by long exception message
++* [IOTDB-1545] Query dataset memory leak on server caused by cpp client
++* [IOTDB-1546] Optimize the Upgrade Tool rewrite logic to reduce the temp memory cost
++* [IOTDB-1552] Only allow equivalent filter for TEXT data type
++* [IOTDB-1556] Abort auto create device when meet exception in setStorageGroup
++* [IOTDB-1574] Deleted file handler leak
++* [IOTDB-1580] Error result of order by time desc when enable time partition
++* [IOTDB-1584] Doesn't support order by time desc in cluster mode
++* [IOTDB-1588] Bug fix: MAX_TIME is incorrect in cluster mode
++* [IOTDB-1594] Fix show timeseries returns incorrect tag value
++* [IOTDB-1600] Fix InsertRowsOfOneDevicePlan being not supported in cluster mode
++* [IOTDB-1610] Fix TsFileRewriteTool writing incorrect data file
++* [ISSUE-3116] Bug when using natural month unit in time interval in group by query
++* [ISSUE-3316] Query result with the same time range is inconsistent in group by query
++* [ISSUE-3436] Fix query result not right after deleting multiple time interval of one timeseries
++* [ISSUE-3458] fix load configuration does not take effect
++* [ISSUE-3545] Fix Time interval value is disorder in group by month
++* [ISSUE-3653] fix Max_time and last return inconsistent result
++* [ISSUE-3690] Memory leaks on the server when cpp client invokes checkTimeseriesExists
++* [ISSUE-3805] OOM caused by Chunk cache
++* [ISSUE-3865] Meaningless connection reset issues caused by low default value for SOMAXCONN
++* Fix DataMigrationExample OOM if migrate too many timeseries
++* Handle false positive cases which may cause NPE of tsfile bloom filter
++* Fix Windows shell error on JDK11 & fix iotdb-env.bat not working
++* Fix cluster auto create schema bug when retry locally
++* Fix thrift out of sequence in cluster module
++* Skip non exist measurement in where clause in align by device
++* fix blocking query when selecting TsFile in compaction
++* Fix redundant data in compaction recover
++* Fix load tsfile with time partition enable
++
++## Incompatible changes
++
++* [IOTDB-1485] Replace tsfile_size_threshold by unseq_tsfile_size/seq_tsfile_size
++
++## Miscellaneous changes
++
++* [IOTDB-1499] Remove unused exception throwing notation in IoTDBSink
++* [IOTDB-1500] Remove current dynamic query memory control
++* [ISSUE-3674] Disable thrift code generation for Javascript
++* enable cacheLeader by default
++* add audit log when execute delete and set sg for tracing
++* modify nodeTool user to root
++
++# Apache IoTDB 0.12.1
++
++## Bug Fixes
++
++* [GITHUB-3373] Remove the broken cached leader connection & optimize the insertRecords method in session
++* [IOTDB-1433] Fix bug in getMetadataAndEndOffset when querying non-exist device
++* [IOTDB-1432] fix level compaction loss data
++* [IOTDB-1427] Fix compaction lock with query
++* [IOTDB-1420] Fix compaction ttl bug
++* [IOTDB-1419] Remove redundant clearCompactionStatus, fix continuous compaction doesn't take effect when
++  enablePartition
++* [IOTDB-1415] Fix OOM caused by ChunkCache
++* [IOTDB-1414] NPE occurred when call getStorageGroupNodeByPath() method using not exist path
++* [IOTDB-1412] Unclear exception message thrown when executing empty InsertTabletPlan
++* [IOTDB-1411] Fix thriftMaxFrameSize and thriftDefaultBufferSize does not in effect
++* [IOTDB-1398] Do not select unseq files when there are uncompacted old unseq files
++* [IOTDB-1390] Fix unseq compaction loss data bug
++* [IOTDB-1384] Fix group by bug
++* [ISSUE-3378] Fix NPE when clear upgrade folder; Fix some upgraded pageHeader missing statistics
++* [GITHUB-3339] Try to fix sg dead lock
++* [GITHUB-3329] Fix upgrade NPE and DeadLock
++* [GITHUB-3319] Fix upgrade tool cannot close file reader
++* [IOTDB-1212] Fix The given error message is not right when executing select sin(non_existence) from root.sg1.d1
++* [IOTDB-1219] Fix a potential NPE issue in UDF module
++* [IOTDB-1286] Fix 4 C++ mem-leak points
++* [IOTDB-1294] Fix delete operation become invalid after compaction
++* [IOTDB-1313] Fix lossing time precision when import csv with unsupported timestamp format
++* [IOTDB-1316] The importCsv tool should continue inserting if a part of insertion failed
++* [IOTDB-1317] Fix log CatchUp always failed due to not check the follower's match index
++* [IOTDB-1323] Fix return a success message when encounter RuntimeException during the insertion process
++* [IOTDB-1325] Fix StackOverflow Exception in group by natural month query
++* [IOTDB-1330] Fix the load tsfile bug when the cross multi partition's tsfile only have one page
++* [IOTDB-1348] Fix Last plan not work in cluster mode
++* [IOTDB-1376] Fix BatchProcessException was not correctly handled in BaseApplier
++* [ISSUE-3277] Fix TotalSeriesNumber in MManager counted twice when recovering
++* [ISSUE-3116] Fix bug when using natural month unit in time interval in group by query
++* [ISSUE-3309] Fix InsertRecordsOfOneDevice runs too slow
++* Fix the plan index is always zero when using insertRecords interface to run the cluster
++* Add authority check for users create timeseries using executeBatch interface without the privilege
++* Fix versionInfo NPE when query upgrading 0.11 tsfile
++* Fix upgrade tool cannot load old tsfile if time partition enabled in 0.11
++* Fix import csv throw ArrayOutOfIndexError when the last value in a line is null
++* Fix upgrade tool cannot close file reader
++
++## Improvements
++
++* [GITHUB-3399] Change the default primitive array size to 32
++* [IOTDB-1387] Support Without Null ALL in align by device clause, Filter RowRecord automatically if any column in it is
++  null or all columns are null
++* [IOTDB-1385] Extract the super user to the configuration
++* [IOTDB-1315] ExportCsvTool should support timestamp `yyyy-MM-dd'T'HH:mm:ss.SSSZ`
++* [IOTDB-1339] optimize TimeoutChangeableTSnappyFramedTransport
++* [IOTDB-1356] Separate unseq_file_num_in_each_level from selecting candidate file in unseq compaction
++* [IOTDB-1357] Compaction use append chunk merge strategy when chunk is already large enough
++* [IOTDB-1380] Automatically close the dataset while there is no more data
++* Optimize sync leader for meta
++
++## New Features
++
++* [GITHUB-3389] TTL can be set to any path
++* [GITHUB-3387] Add parameter compaction_interval=10000ms
++* [IOTDB-1190] Fully support HTTP URL char set in timeseries path
++* [IOTDB-1321][IOTDB-1322] Filter RowRecord automatically if any column in it is null or all columns are null
++* [IOTDB-1357] Compaction use append chunk merge strategy when chunk is already large
++* [ISSUE-3089] Make it possible for storage groups to have name with hyphen
++
++## Miscellaneous changes
++
++* [GITHUB-3346] upgrade netty and claim exclusion for enforcer check
++* [IOTDB-1259] upgrade libthrift from 0.12.0/0.13.0 to 0.14.1
++* Uncomment the less used configurations
++* Enable the configration `concurrent_writing_time_partition`
++
++
++# Apache IoTDB 0.12.0
++
++## New Features
++* [IOTDB-68] New shared-nothing cluster
++* [IOTDB-507] Add zeppelin-interpreter module
++* [IOTDB-825] Aggregation by natural month
++* [IOTDB-890] support SDT lossy compression 
++* [IOTDB-944] Support UDTF (User-defined Timeseries Generating Function)
++* [IOTDB-965] Add timeout parameter for query
++* [IOTDB-1077] Add insertOneDeviceRecords API in java session
++* [IOTDB-1055] Support data compression type GZIP
++* [IOTDB-1024] Support multiple aggregated measurements for group by level statement
++* [IOTDB-1276] Add explain sql support and remove debug_state parameter
++* [IOTDB-1197] Add iotdb-client-go as a git submodule of IoTDB repo
++* [IOTDB-1230] Support spans multi time partitions when loading one TsFile
++* [IOTDB-1273] Feature/restrucutre python module as well as supporting pandas dataframe
++* [IOTDB-1277] support IoTDB as Flink's data source
++* [PR-2605] Add level merge to "merge" command
++
++## Incompatible changes
++* [IOTDB-1081] New TsFile Format
++* [ISSUE-2730] Add the number of unseq merge times in TsFile name.
++
++
++## Miscellaneous changes
++* [IOTDB-868] Change mlog from txt to bin
++* [IOTDB-1069] Restrict the flushing memtable number to avoid OOM when mem_control is disabled
++* [IOTDB-1104] Refactor the error handling process of query exceptions
++* [IOTDB-1108] Add error log to print file name while error happened
++* [IOTDB-1152] Optimize regular data size in traversing
++* [IOTDB-1180] Reset the system log file names and maximal disk-space size
++* [ISSUE-2515] Set fetchsize through JDBC and Session
++* [ISSUE-2598] Throw explicit exception when time series is unknown in where clause
++* [PR-2944] Throw exception when device to be queried is not in TsFileMetaData
++* [PR-2967] Log memory usage information in SystemInfo for better diagnosis
++
++## Bug Fixes
++* [IOTDB-1049] Fix NullpointerException and a delete bug in Last query
++* [IOTDB-1050] Fix Count timeserise column name is wrong
++* [IOTDB-1068] Fix Time series metadata cache bug
++* [IOTDB-1084] Fix temporary memory of flushing may cause OOM
++* [IOTDB-1106] Fix delete timeseries bug
++* [IOTDB-1126] Fix the unseq tsfile delete due to merge
++* [IOTDB-1135] Fix the count timeseries prefix path bug
++* [IOTDB-1137] Fix MNode.getLeafCount error when existing sub-device
++* [ISSUE-2484] Fix creating timeseries error by using "create" or "insert" statement
++* [ISSUE-2545, 2549] Fix unseq merge end time bug
++* [ISSUE-2611] An unsequence file that covers too many sequence file causes OOM query
++* [ISSUE-2688] LRULinkedHashMap does not work as an LRU Cache
++* [ISSUE-2709, 1178] Fix cache not cleared after unseq compaction bug, Fix windows 70,10 ci bug in unseq compaction ci
++* [ISSUE-2741] getObject method in JDBC should return an Object
++* [ISSUE-2746] Fix data overlapped bug after unseq compaction
++* [ISSUE-2758] NullPointerException in QueryTimeManager.checkQueryAlive()
++* [ISSUE-2905] Fix Files.deleteIfExists() doesn't work for HDFS file
++* [ISSUE-2919] Fix C++ client memory leak bug
++* [PR-2613] Fix importCSVTool import directory bug & encode bug
++* [PR-2409] Fix import csv which can't import time format str
++* [PR-2582] Fix sync bug for tsfiles's directory changed by vitural storage group
++* [ISSUE-2911] Fix The write stream is not closed when executing the command 'tracing off'
++
++# Apache IoTDB 0.11.4
++
++## Bug Fixes
++
++* IOTDB-1303 Disable group by without aggregation function in select clause
++* IOTDB-1306 Fix insertion blocked caused the deadlock in memory control module
++* IOTDB-1308 Fix users with READ_TIMESERIES permission cannot execute group by fill queries
++* IOTDB-1344 Fix cannot create timeseries caused by the timeseries count doesn't reset when deleting storage group
++* IOTDB-1384 Some value will disappear while using group by query
++* IOTDB-1398 Do not select unseq files when there are uncompacted old unseq files
++* ISSUE-3316 Fix query result with the same time range is inconsistent in group by query
++* Fix TotalSeriesNumber in MManager counted twice when recovering
++* Fix unseq compaction throws a wrong exception if some paths are not in the file
++* Fix overlapped data should be consumed first exception when query
++
++## Improvements
++
++* IOTDB-1356 Separate unseq_file_num_in_each_level from selecting candidate file in unseq compaction
++* IOTDB-1412 Unclear exception message thrown when executing empty InsertTabletPlan
++* continuous compaction in level compaction strategy when no tsfile is to be closed
++
++## New Features
++
++* support brackets with number in timeseries path
++
++# Apache IoTDB 0.11.3
++
++## Bug Fixes
++* ISSUE-2505 ignore PathNotExistException in recover and change recover error to warn
++* IOTDB-1119 Fix C++ SessionDataSet bug when reading value buffer
++* Fix SessionPool does not recycle session and can not offer new Session due to RunTimeException
++* ISSUE-2588 Fix dead lock between deleting data and querying in parallel
++* ISSUE-2546 Fix first chunkmetadata should be consumed first
++* IOTDB-1126 Fix unseq tsfile is deleted due to compaction
++* IOTDB-1137 MNode.getLeafCount error when existing sub-device
++* ISSUE-2624 ISSUE-2625 Avoid OOM if user don't close Statement and Session manually
++* ISSUE-2639 Fix possible NPE during end query process
++* Alter IT for An error is reported and the system is suspended occasionally
++* IOTDB-1149 print error for -e param when set maxPRC<=0
++* IOTDB-1247 Fix the insert blocked caused the bugs in mem control module
++* ISSUE-2648 Last query not right when having multiple devices
++* Delete mods files after compaction
++* ISSUE-2687 fix insert NaN bug
++* ISSUE-2598 Throw explicit exception when time series is unknown in where clause
++* Fix timeseriesMetadata cache is not cleared after the TsFile is deleted by a compaction
++* ISSUE-2611 An unsequence file that covers too many sequence file causes OOM query
++* IOTDB-1135 Fix count timeseries bug when the paths are nested
++* ISSUE-2709 IOTDB-1178 Fix cache is not cleared after compaction
++* ISSUE-2746 Fix data overlapped bug after the elimination unseq compaction process
++* Fix getObject method in JDBC should return an Object
++* IOTDB-1188 Fix IoTDB 0.11 unable to delete data bug
++* Fix when covering a tsfile resource with HistoricalVersion = null, it’ll throw a NPE
++* fix the elimination unseq compaction may loss data bug after a delete operation is executed
++* Fix a bug of checking time partition in DeviceTimeIndex
++* Throw exeception when device to be queried is not in tsFileMetaData
++* Fix unseq compaction file selector conflicts with time partition bug
++* Fix high CPU usage during the compaction process
++
++## Improvements
++* IOTDB-1140 optimize regular data encoding
++* Add more log for better tracing
++* Add backgroup exec for cli -e function
++* Add max direct memory size parameter to env.sh
++* Change last cache log to debug level
++
++## New Features
++* Add explain sql support
++
++
++# Apache IoTDB 0.11.2
++
++## Bug Fixes
++* IOTDB-1049 Fix Nullpointer exception and a delete bug in Last query
++* IOTDB-1060 Support full deletion for delete statement without where clause
++* IOTDB-1068 Fix Time series metadata cache bug
++* IOTDB-1069 restrict the flushing memtable number to avoid OOM when mem_control is disabled
++* IOTDB-1077 add insertOneDeviceRecords API in java session
++* IOTDB-1087 fix compaction block flush: flush do not return until compaction finished
++* IOTDB-1106 Delete timeseries statement will incorrectly delete other timeseries
++* Github issue-2137 fix grafana value-time position bug
++* Github issue-2169 GetObject returns String for all data types
++* Github issue-2240 fix Sync failed: Socket is closed by peer
++* Github issue-2387 The deleteData method exists in Session but not in SessionPool.
++* add thrift_max_frame_size in iotdb-engine.properties
++* Fix incorrect last result after deleting all data
++* Fix compaction recover block restart: IoTDB cannot restart until last compaction recover task finished
++* Fix compaction ignore modification file: delete does not work after compaction
++* print more insert error message in client
++* expose enablePartition parameter into iotdb-engines.properpties
++
++# Apache IoTDB 0.11.1
++
++## Bug Fixes
++* IOTDB-990 cli parameter maxPRC shouldn't to be set zero
++* IOTDB-993 Fix tlog bug
++* IOTDB-994 Fix can not get last_value while doing the aggregation query along with first_value
++* IOTDB-1000 Fix read redundant data while select with value filter with unseq data
++* IOTDB-1007 Fix session pool concurrency and leakage issue when pool.close is called
++* IOTDB-1016 overlapped data should be consumed first
++* IOTDB-1021 Fix NullPointerException when showing child paths of non-existent path
++* IOTDB-1028 add MAX\_POINT\_NUMBER format check
++* IOTDB-1034 Fix Show timeseries error in Chinese on Windows
++* IOTDB-1035 Fix bug in getDeviceTimeseriesMetadata when querying non-exist device
++* IOTDB-1038 Fix flink set storage group bug
++* ISSUE-2179 fix insert partial tablet with binary NullPointer bug
++* add reject status code
++* Update compaction level list delete
++* Fix query result is not correct
++* Fix import errors in Session.py and SessionExample.py
++* Fix modules can not be found when using pypi to pack client-py
++* Fix Count timeseries group by level bug
++* Fix desc batchdata count bug
++
++# Apache IoTDB 0.11.0
++
++## New Features
++
++* IOTDB-627 Support range deletion for timeseries
++* IOTDB-670 Add raw data query interface in Session
++* IOTDB-716 add lz4 compression
++* IOTDB-736 Add query performance tracing
++* IOTDB-776 New memory control strategy
++* IOTDB-813 Show storage group under given path prefix
++* IOTDB-848 Support order by time asc/desc
++* IOTDB-863 add a switch to drop ouf-of-order data
++* IOTDB-873 Add count devices DDL
++* IOTDB-876 Add count storage group DDL
++* IOTDB-926 Support reconnection of Session
++* IOTDB-941 Support 'delete storage group <prefixPath>'
++* IOTDB-968 Support time predicate in select last, e.g., select last * from root where time >= T
++* Show alias if it is used in query
++* Add level compaction strategy
++* Add partialInsert
++
++## Incompatible changes
++
++* IOTDB-778 Support double/single quotation in Path
++* IOTDB-870 change tags and attributes output to two columns with json values
++
++## Miscellaneous changes
++
++* IOTDB-784 Update rpc protocol to V3
++* IOTDB-790 change base_dir to system_dir
++* IOTDB-829 Accelerate delete multiple timeseries
++* IOTDB-839 Make Tablet api more friendly
++* IOTDB-902 Optimize max_time aggregation
++* IOTDB-916 Add a config entry to make Last cache configurable
++* IOTDB-928 Make ENCODING optional in create time series sentence
++* IOTDB-938 Re-implement Gorilla encoding algorithm
++* IOTDB-942 Optimization of query with long time unsequence page
++* IOTDB-943 Fix cpu usage too high
++* Add query load log
++* Add merge rate limiting
++
++## Bug Fixes
++
++* IOTDB-749 Avoid select * from root OOM
++* IOTDB-774 Fix "show timeseries" OOM problem
++* IOTDB-832 Fix sessionPool logic when reconnection failed
++* IOTDB-833 Fix JMX cannot connect IoTDB in docker
++* IOTDB-835 Delete timeseries and change data type then write failed
++* IOTDB-836 Statistics classes mismatched when endFile (delete timeseries then recreate)
++* IOTDB-837 ArrayIndexOutOfBoundsException if the measurementId size is not consistent with the value size
++* IOTDB-847 Fix bug that 'List user privileges' cannot apply to 'root'
++* IOTDB-850 a user could list others privilege bug
++* IOTDB-851 Enhance failure tolerance when recover WAL (enable partial insertion)
++* IOTDB-855 Can not release Session in SessionPool if RuntimeException occurs
++* IOTDB-868 Can not redo mlogs with special characters like comma
++* IOTDB-872 Enable setting timezone at client
++* IOTDB-877 fix prefix bug on show storage group and show devices
++* IOTDB-904 fix update last cache NullPointerException
++* IOTDB-920 Disable insert row that only contains time/timestamp column
++* IOTDB-921 When execute two query simultaneously in one statement, got error
++* IOTDB-922 Int and Long can convert to each other in ResultSet
++* IOTDB-947 Fix error when counting node with wildcard
++* IOTDB-949 Align by device doesn't support 'T*' in path.
++* IOTDB-956 Filter will be missed in group by time align by device
++* IOTDB-963 Redo deleteStorageGroupPlan failed when recovering
++* IOTDB-967 Fix xxx does not have the child node xxx Bug in count timeseries
++* IOTDB-970 Restrict log file number and size
++* IOTDB-971 More precise error messages of slimit and soffset 
++* IOTDB-975 when series does not exist in TsFile, reading wrong ChunkMetadataList
++
++# Apache IoTDB (incubating) 0.10.1
++
++* [IOTDB-797] InsertTablet deserialization from WAL error
++* [IOTDB-788] Can not upgrade all storage groups
++* [IOTDB-792] deadlock when insert while show latest timeseries
++* [IOTDB-794] Rename file or delete file Error in start check in Windows
++* [IOTDB-795] BufferUnderflowException in Hive-connector
++* [IOTDB-766] Do not release unclosed file reader, a small memory leak
++* [IOTDB-796] Concurrent Query throughput is low
++* Query result is not correct when some unsequence data exists
++* Change the default fetch size to 10000 in session
++* [IOTDB-798] fix a set rowLimit and rowOffset bug
++* [IOTDB-800] Add a new config type for those parameters which could not be modified any more after the first start 
++* [IOTDB-802] Improve "group by" query performance
++* [IOTDB-799] remove log visualizer tool from v0.10 
++* fix license-binary  
++* [IOTDB-805] Fix BufferUnderflowException when querying TsFile stored in HDFS 
++* python session client ver-0.10.0
++* [IOTDB-808] fix bug in selfCheck() truncate 
++* fix doc of MeasurementSchema in Tablet 
++* [IOTDB-811] fix upgrading mlog many times when upgrading system.properties crashed
++* Improve IoTDB restart process
++* remove jol-core dependency which is introduced by hive-serde 2.8.4
++* remove org.json dependency because of license compatibility
++* [ISSUE-1551] fix set historical version when loading additional tsfile
++
++
++# Apache IoTDB (incubating) 0.10.0
++
++## New Features
++
++* IOTDB-217 A new GROUPBY syntax, e.g., select avg(s1) from root.sg.d1.s1 GROUP BY ([1, 50), 5ms)
++* IOTDB-220 Add hot-load configuration function
++* IOTDB-275 allow using user defined JAVA_HOME and allow blank space in the JAVA_HOME
++* IOTDB-287 Allow domain in JDBC URL
++* IOTDB-292 Add load external tsfile feature
++* IOTDB-297 Support "show flush task info"
++* IOTDB-298 Support new Last point query. e.g, select last * from root
++* IOTDB-305 Add value filter function while executing align by device
++* IOTDB-309 add Dockerfiles for 0.8.1, 0.9.0, and 0.9.1
++* IOTDB-313 Add RandomOnDiskUsableSpaceStrategy
++* IOTDB-323 Support insertRecords in session
++* IOTDB-337 Add timestamp precision properties for grafana
++* IOTDB-343 Add test method in session
++* IOTDB-396 Support new query clause: disable align, e.g., select * from root disable align
++* IOTDB-447 Support querying non-existing measurement and constant measurement
++* IOTDB-448 Add IN operation, e.g., where time in (1,2,3)
++* IOTDB-456 Support GroupByFill Query, e.g., select last_value(s1) from root.sg.d1 GROUP BY ([1, 10), 2ms) FILL(int32[previousUntilLast])
++* IOTDB-467 The CLI displays query results in a batch manner
++* IOTDB-497 Support Apache Flink Connector with IoTDB
++* IOTDB-558 add text support for grafana
++* IOTDB-560 Support Apache Flink connecter with TsFile
++* IOTDB-565 MQTT Protocol Support, disabled by default, open in iotdb-engine.properties
++* IOTDB-574 Specify configuration when start iotdb
++* IOTDB-588 Add tags and attributes management
++* IOTDB-607 add batch create timeseries in native interface
++* IOTDB-612 add limit&offset to show timeseries
++* IOTDB-615 Use TsDataType + Binary to replace String in insert plan
++* IOTDB-617 Support alter one time series's tag/attribute
++* IOTDB-630 Add a jdbc-like way to fetch data in session
++* IOTDB-640 Enable system admin sql (flush/merge) in JDBC or Other API
++* IOTDB-671 Add clear cache command
++* Support open and close time range in group by, e.g, [), (]
++* Online upgrade from 0.9.x
++* Support special characters in path: -/+&%$#@
++* IOTDB-446 Support path start with a digit, e.g., root.sg.12a
++* enable rpc compression in session pool
++* Make JDBC OSGi usable and added a feature file
++* add printing one resource file tool
++* Allow count timeseries group by level=x using default path
++* IOTDB-700 Add OpenID Connect based JWT Access as alternative to Username / Password
++* IOTDB-701 Set heap size by percentage of system total memory when starts
++* IOTDB-708 add config for inferring data type from string value
++* IOTDB-715 Support previous time range in previousuntillast
++* IOTDB-719 add avg_series_point_number_threshold in config
++* IOTDB-731 Continue write inside InsertPlan 
++* IOTDB-734 Add Support for NaN in Double / Floats in SQL Syntax.
++* IOTDB-744 Support upsert alias 
++
++
++## Incompatible changes
++
++* IOTDB-138 Move All metadata query to usual query
++* IOTDB-322 upgrade to thrift 0.12.0-0.13.0
++* IOTDB-325 Refactor Statistics in TsFile
++* IOTDB-419 Refactor the 'last' and 'first' aggregators to 'last_value' and 'first_value'
++* IOTDB-506 upgrade the rpc protocol to v2 to reject clients or servers that version < 0.10
++* IOTDB-587 TsFile is upgraded to version 2
++* IOTDB-593 add metaOffset in TsFileMetadata
++* IOTDB-597 Rename methods in Session: insertBatch to insertTablet, insertInBatch to insertRecords, insert to insertRecord
++* RPC is incompatible, you can not use client-v0.9 to connect with server-v0.10
++* TsFile format is incompatible, will be upgraded when starting 0.10
++* Refine exception code in native api
++
++## Miscellaneous changes
++
++* IOTDB-190 upgrade from antlr3 to antlr4
++* IOTDB-418 new query engine
++* IOTDB-429 return empty dataset instead of throw exception, e.g., show child paths root.*
++* IOTDB-445 Unify the keyword of "timestamp" and "time"
++* IOTDB-450 Add design documents
++* IOTDB-498 Support date format "2020-02-10"
++* IOTDB-503 Add checkTimeseriesExists in java native api
++* IOTDB-605 Add more levels of index in TsFileMetadata for handling too many series in one device
++* IOTDB-625 Change default level number: root is level 0
++* IOTDB-628 rename client to cli
++* IOTDB-621 Add Check isNull in Field for querying using session
++* IOTDB-632 Performance improve for PreviousFill/LinearFill
++* IOTDB-695 Accelerate the count timeseries query 
++* IOTDB-707 Optimize TsFileResource memory usage  
++* IOTDB-730 continue write in MQTT when some events are failed
++* IOTDB-729 shutdown uncessary threadpool 
++* IOTDB-733 Enable setting for mqtt max length 
++* IOTDB-732 Upgrade fastjson version to 1.2.70
++* Allow "count timeseries" without a prefix path
++* Add max backup log file number
++* add rpc compression api in client and session module
++* Continue writing the last unclosed file
++* Move the vulnera-checks section into the apache-release profile to accelerate compile
++* Add metaquery in python example
++* Set inferType of MQTT InsertPlan to true
++
++
++
++## Bug Fixes
++
++* IOTDB-125 Potential Concurrency bug while deleting and inserting happen together
++* IOTDB-185 fix start-client failed on WinOS if there is blank space in the file path; let start-server.bat suport jdk12,13 etc
++* IOTDB-304 Fix bug of incomplete HDFS URI
++* IOTDB-341 Fix data type bug in grafana
++* IOTDB-346 Fix a bug of renaming tsfile in loading function
++* IOTDB-370 fix a concurrent problem in parsing sql
++* IOTDB-376 fix metric to show executeQuery
++* IOTDB-392 fix export CSV
++* IOTDB-393 Fix unclear error message for no privilege users
++* IOTDB-401 Correct the calculation of a chunk if there is no data in the chunk, do not flush empty chunk
++* IOTDB-412 Paths are not correctly deduplicated
++* IOTDB-420 Avoid encoding task dying silently
++* IOTDB-425 fix can't change the root password.
++* IOTDB-459 Fix calmem tool bug
++* IOTDB-470fix IllegalArgumentException when there exists 0 byte TsFile
++* IOTDB-529 Relative times and NOW() operator cannot be used in Group By
++* IOTDB-531 fix issue when grafana visualize boolean data
++* IOTDB-546 Fix show child paths statement doesn't show quotation marks
++* IOTDB-643 Concurrent queries cause BufferUnderflowException when storage in HDFS
++* IOTDB-663 Fix query cache OOM while executing query
++* IOTDB-664 Win -e option
++* IOTDB-669 fix getting two columns bug while ”show devices“ in session
++* IOTDB-692 merge behaves incorrectly
++* IOTDB-712 Meet BufferUnderflowException and can not recover
++* IOTDB-718 Fix wrong time precision of NOW()
++* IOTDB-735 Fix Concurrent error for MNode when creating time series automatically 
++* IOTDB-738 Fix measurements has blank 
++
++* fix concurrent auto create schema conflict bug
++* fix meet incompatible file error in restart
++* Fix bugs of set core-site.xml and hdfs-site.xml paths in HDFS storage
++* fix execute flush command while inserting bug
++* Fix sync schema pos bug
++* Fix batch execution bug, the following sqls will all fail after one error sql
++* Fix recover endTime set bug
++
++
++# Apache IoTDB (incubating) 0.9.3
++
++## Bug Fixes
++- IOTDB-531 Fix that JDBC URL does not support domain issue
++- IOTDB-563 Fix pentaho cannot be downloaded because of spring.io address
++- IOTDB-608 Skip error Mlog
++- IOTDB-634 Fix merge caused errors for TsFile storage in HDFS
++- IOTDB-636 Fix Grafana connector does not use correct time unit
++
++## Miscellaneous changes
++- IOTDB-528 Modify grafana group by
++- IOTDB-635 Add workaround when doing Aggregation over boolean Series
++- Remove docs of Load External Tsfile
++- Add Grafana IoTDB Bridge Artifact to distribution in tools/grafana folder
++
++
++# Apache IoTDB (incubating) 0.9.2
++
++## Bug Fixes
++- IOTDB-553 Fix Return Empty ResultSet when queried series doesn't exist
++- IOTDB-575 add default jmx user and password; fix issues that jmx can't be accessed remotely
++- IOTDB-584 Fix InitializerError when recovering files on HDFS
++- Fix batch insert once an illegal sql occurs all the sqls after that will not succeed
++- Fix concurrent modification exception when iterator TsFileResourceList 
++- Fix some HDFS config issues 
++- Fix runtime exception not be catched and sync schema pos was nullpointer bug in DataTransferManager
++- Fix python rpc grammar mistakes
++- Fix upgrade ConcurrentModificationException
++
++## Miscellaneous changes
++- IOTDB-332 support Chinese characters in path
++- IOTDB-316 add AVG function to 4-SQL Reference.md and modify style 
++- improve start-server.bat by using quotes to protect against empty entries
++- Add Chinese documents for chapter 4.2
++- change download-maven-plugin to 1.3.0
++- add session pool 
++- add insertInBatch in Session
++- add insertInBatch to SessionPool
++- modify 0.9 docs to fit website
++- remove tsfile-format.properties
++- add bloom filter in iotdb-engien.properties
++- update server download doc
++- typos fix in Rel/0.9 docs
++- support 0.12.0 and 0.13.0 thrift
++
++# Apache IoTDB (incubating) 0.9.1
++
++## Bug Fixes
++
++- IOTDB-159 Fix NullPointerException in SeqTsFileRecoverTest and UnseqTsFileRecoverTest
++- IOTDB-317 Fix a bug that "flush + wrong aggregation query" causes the following queries to fail
++- IOTDB-324 Fix inaccurate statistics when writing in batch
++- IOTDB-327 Fix a groupBy-without-value-filter query bug caused by the wrong page skipping logic
++- IOTDB-331 Fix a groupBy query bug when axisOrigin-startTimeOfWindow is an integral multiple of interval
++- IOTDB-357 Fix NullPointerException in ActiveTimeSeriesCounter
++- IOTDB-359 Fix a wrong-data-type bug in TsFileSketchTool
++- IOTDB-360 Fix bug of a deadlock in CompressionRatio
++- IOTDB-363 Fix link errors in Development-Contributing.md and add Development-Document.md
++- IOTDB-392 Fix a bug in CSV export tool
++- Fix apache rat header format error in some files
++
++## Miscellaneous changes
++
++- IOTDB-321 Add definitions of time expression and LEVEL in related documents
++- Support pypi distribution for Python client
++
++# Apache IoTDB (incubating) 0.9.0
++
++## New Features
++
++* IOTDB-143 Compaction of data file
++* IOTDB-151 Support number format in timeseries path
++* IOTDB-158 Add metrics web service
++* IOTDB-173 Add batch write interface in session
++* IoTDB-174 Add interfaces for querying device or timeseries number
++* IOTDB-187 Enable to choose storage in local file system or HDFS
++* IOTDB-188 Delete storage group
++* IOTDB-193 Create schema automatically when inserting
++* IOTDB-198 Add sync module (Sync TsFiles between IoTDB instances)
++* IOTDB-199 Add a log visualization tool 
++* IOTDB-203 Add "group by device" function for narrow table display
++* IOTDB-205 Support storage-group-level Time To Live (TTL)
++* IOTDB-208 Add Bloom filter in TsFile
++* IOTDB-223 Add a TsFile sketch tool
++* IoTDB-226 Hive-TsFile connector
++* IOTDB-239 Add interface for showing devices
++* IOTDB-241 Add query and non query interface in session
++* IOTDB-249 Enable lowercase in create_timeseries sql
++* IOTDB-253 Support time expression 
++* IOTDB-259 Level query of path
++* IOTDB-282 Add "show version"
++* IOTDB-294 Online upgrade from 0.8.0 to 0.9.0
++* Spark-iotdb-connector
++* Support quoted measurement name
++* Generate cpp, go, and python thrift files under service-rpc
++* Display cache hit rate through jconsole
++* Support inserting data that time < 0
++* Add interface (Delete timeseries) in session 
++* Add a tool to print tsfileResources (each device's start and end time)
++* Support watermark feature
++* Add micro and nano timestamp precision
++
++## Incompatible changes
++
++* RPC is incompatible, you can not use client-0.8.0 to connect with server-0.9.0 or use client-0.9.0 to connect with server-0.8.0.
++* Server is backward compatible, server-0.9.0 could run on data folder of 0.8.0. The data file will be upgraded background.
++* Change map key in TsDigest from String to enum data type
++
++## Miscellaneous changes
++
++* IOTDB-144 Meta data cache for query
++* IOTDB-153 Further limit fetchSize to speed up LIMIT&OFFSET query
++* IOTDB-160 External sort
++* IOTDB-161 Add ErrorCode of different response errors
++* IOTDB-180 Get rid of JSON format in "show timeseries"
++* IOTDB-192 Improvement for LRUCache
++* IOTDB-210 One else if branch will never be reached in the method optimize of ExpressionOptimizer
++* IOTDB-215 Update TsFile sketch tool and TsFile docs for v0.9.0
++* IOTDB-221 Add a python client example
++* IOTDB-233 keep metadata plan clear
++* IOTDB-251 Improve TSQueryDataSet structure in RPC
++* IOTDB-257 Makes the client stop fetch when dataSize equals maxPrintRowCount and change client fetchSize less than maxPrintRowCount
++* IOTDB-258 Add documents for Query History Visualization Tool and Shared Storage Architecture
++* IOTDB-265 Re-adjust the threshold size of memtable
++* IOTDB-267 Reduce IO operations in deserializing chunk header
++* IOTDB-273 Parallel recovery
++* IOTDB-276 Fix inconsistent ways of judging whether a Field is null
++* IOTDB-285 Duplicate fields in EngineDataSetWithoutValueFilter.java
++* IOTDB-287 Restrict users to only use domain names and IP addresses.
++* IOTDB-293 Variable naming convention
++* IOTDB-295 Refactor db.exception
++* Reconstruct Antlr3 grammar to improve performance
++* Tooling for release
++* Modified Decoder and SequenceReader to support old version of TsFile 
++* Remove jdk constrain of jdk8 and 11
++* Modify print function in AbstractClient
++* Avoid second execution of parseSQLToPhysicalPlan in executeStatement
++
++## Known Issues
++
++* IOTDB-20 Need to support UPDATE
++
++## Bug Fixes
++
++* IOTDB-168&169 Fix a bug in export-csv tool and fix compatibility of timestamp formats in exportCsv, client display and sql
++* IOTDB-174 Fix querying timeseries interface cannot make a query by the specified path prefix
++* IOTDB-195 Using String.getBytes(utf-9).length to replace string.length() in ChunkGroupMetadata for supporting Chinese
++* IOTDB-211 Use "%IOTDB_HOME%\lib\*" to refers to all .jar files in the directory in start-server.bat
++* IOTDB-240 Fix unknown time series in where clause
++* IOTDB-244 Fix bug when querying with duplicated columns
++* IOTDB-252 Add/fix shell and bat for TsFileSketchTool/TsFileResourcePrinter
++* IOTDB-266 NullPoint exception when reading not existed devices using ReadOnlyTsFile
++* IOTDB-264 Restart failure due to WAL replay error
++* IOTDB-290 Bug about threadlocal field in TSServiceImpl.java
++* IOTDB-291 Statement close operation may cause the whole connection's resource to be released
++* IOTDB-296 Fix error when skip page data in sequence reader
++* IOTDB-301 Bug Fix: executing "count nodes root" in client gets "Msg:3"
++* Fix Dynamic Config when Creating Existing SG or Time-series
++* Fix start-walchecker scripts for letting user define the wal folder
++* Fix start script to set JAVA_HOME
++
++# Apache IoTDB (incubating) 0.8.2
++
++ This is a bug-fix version of 0.8.1 
++
++-  IOTDB-264 lack checking datatype before writing WAL 
++-  IOTDB-317 Fix "flush + wrong aggregation" causes failed query in v0.8.x 
++-  NOTICE and LICENSE file update 
++
++# Apache IoTDB (incubating) 0.8.1
++
++This is a bug-fix version of 0.8.0
++
++* IOTDB-172 Bug in updating startTime and endTime in TsFileResource
++* IOTDB-195 Bug about 'serializedSize' in ChunkGroupMetaData.java (for Chinese string)
++* IOTDB-202 fix tsfile example data type
++* IOTDB-242 fix mvn integration-test failed because the files in the target folder changes
++* Abnormal publishing of sequence and unsequence data folders in DirectoryManager
++* Fix a bug in TimeRange's intersects function
++
++
++# Apache IoTDB (incubating) 0.8.0
++
++This is the first official release of Apache IoTDB after joining the Incubator.
++
++## New Features
++
++* IOTDB-1 Add Aggregation query
++* IOTDB-4 Asynchronously force sync WAL periodically
++* IOTDB-5 Support data deletion
++* IOTDB-11 Support start script for jdk 11 on Windows OS
++* IOTDB-18 Improve startup script compatible for jdk11
++* IOTDB-36 [TsFile] Enable recover data from a incomplete TsFile and continue to write
++* IOTDB-37 Add WAL check tool script
++* IOTDB-51 Update post-back module to synchronization module
++* IOTDB-59 Support GroupBy query
++* IOTDB-60 Support Fill function when query
++* IOTDB-73 Add REGULAR encoding method for data with fixed frequency
++* IOTDB-80 Support custom export file name
++* IOTDB-81 Update travis for supporting JDK11 on Windows
++* IOTDB-83 Add process bar for import script and show how many rows have been exported
++* IOTDB-91 Improve tsfile-spark-connector to support spark-2.4.3
++* IOTDB-93 IoTDB Calcite integration
++* IOTDB-109 Support appending data at the end of a completed TsFile
++* IOTDB-122 Add prepared statement in JDBC
++* IOTDB-123 Add documents in Chinese
++* IOTDB-130 Dynamic parameters adapter
++* IOTDB-134 Add default parameter for client starting script
++* Add read-only mode of IoTDB
++* New storage engine with asynchronously flush and close data file
++* Adding english documents
++* Supporting travis + window + jdk8
++* Add skipping all UTs: maven integration-test -DskipUTS=true
++* Enable users define the location of their thrift compiler
++* Add example module
++* Add a log appender: put info, warn, error log into one file and disable log_info by default
++* Recover when resource file does not exist while tsfile is complete
++
++## Incompatible changes
++
++If you use the previous unofficial version 0.7.0. It is incompatible with 0.8.0.
++
++## Miscellaneous changes
++
++* IOTDB-21 Add ChunkGroup offset information in ChunkGroupMetaData
++* IOTDB-25 Add some introduction for JMX MBean Monitor in user guide
++* IOTDB-29 Multiple Exceptions when reading empty measurements from TsFileSequenceReader
++* IOTDB-39 Add auto repair functionality for RestorableTsFileIOWriter
++* IOTDB-45 Update the license in IoTDB
++* IOTDB-56 Faster getSortedTimeValuePairList() of Memtable
++* IOTDB-62 Change log level from error to debug in SQL parser
++* IoTDB-63 Use TsFileInput instead of FileChannel as the input parameter of some functions
++* IOTDB-76 Reformat MManager.getMetadataInString() in JSON format
++* IOTDB-78 Make unsequence file format more similar with TsFile
++* IOTDB-95 Keep stack trace when logging or throwing an exception
++* IOTDB-117 Add sync documents
++* Modify ASF header for each file and add related maven plugin
++* Add IoTDB env script test
++* Add sync function for jdbc server to close
++* Add cache directories for download jars and sonar plugin of maven in travis
++* Add partition start and end offset constraints when loading ChunkGroupMetaData
++* Check when creating Storage group
++* Try to release memory asap in ReadOnlyMemChunk
++* Add more physical plan serializer
++* Move all generated tsfiles for test into the target folder
++* Make TsFileWriter as AutoClosable
++* Print apache-rat violation result on console
++* Update multi dir avoid disk is full
++* Simplify Path construction
++* Separate documents into different chapter folders
++* Suppress mvn log in travis
++* Add mvn -B in travis
++
++## Known Issues
++
++* IOTDB-20 Need to support UPDATE
++* IOTDB-124 Lost timeseries info after restart IoTDB
++* IOTDB-125 [potential] a concurrency conflict may occur when a delete command and insertion command appears concurrently
++* IOTDB-126 IoTDB will not be closed immediately after run 'stop-server.sh' script
++* IOTDB-127 Chinese version documents problems
++
++## Bug Fixes
++
++* IOTDB-2 Maven Test failed before run mvn package -Dmaven.test.skip=true
++* IOTDB-7 OpenFileNumUtilTest failed
++* IOTDB-15 Fail to install IoTDB on Ubuntu 14.04
++* IOTDB-16 Invalid link on https://iotdb.apache.org/#/Documents/Quick Start
++* IOTDB-17 Need to update chapter Start of https://iotdb.apache.org/#/Documents/Quick Start
++* IOTDB-18 IoTDB startup script does not work on openjdk11
++* IOTDB-19 Fail to start start-server.sh script on Ubuntu 14.04/Ubuntu 16.04
++* IOTDB-22 BUG in TsFileSequenceReader when reading tsfile
++* IOTDB-24 DELETION error after restart a server
++* IOTDB-26 Return error when quit client
++* IOTDB-27 Delete error message
++* IOTDB-30 Flush timeseries cause select to returns "Msg:null"
++* IOTDB-31 Cannot set float number precision
++* IOTDB-34 Invalid message for show storage group
++* IOTDB-44 Error message in server log when select timeseries
++* IOTDB-49 Authorizer module outputs too many debug log info
++* IOTDB-50 DataSetWithoutTimeGenerator's initHeap behaves wrongly
++* IOTDB-52 Cli doesn't support aggregate
++* IOTDB-54 Predicates doesn't take effect
++* IOTDB-67 ValueDecoder reading new page bug
++* IOTDB-70 Disconnect from server when logging in fails
++* IOTDB-71 Improve readPositionInfo
++* IOTDB-74 THe damaged log will be skipped if it is the only log
++* IOTDB-79 Long term test failed because of the version control of deletion function
++* IOTDB-81 Fix Windows OS environment for Travis-CI
++* IOTDB-82 File not closed in PageHeaderTest and cause UT on Windows fails
++* IOTDB-84 Out-of-memory bug
++* IOTDB-94 IoTDB failed to start client since the required jars are not in the right folder
++* IOTDB-96 The JDBC interface throws an exception when executing the SQL statement "list user"
++* IOTDB-99 List privileges User <username> on <path> cannot be used properly
++* IOTDB-100 Return error message while executing sum aggregation query
++* IOTDB-103 Does not give a hint when encountering unsupported data types
++* IOTDB-104 MManager is incorrectly recovered when system reboots
++* IOTDB-108 Mistakes in documents
++* IOTDB-110 Cli inserts data normally even if there is no space left on the disk
++* IOTDB-118 When the disk space is full, the storage group is created successfully
++* IOTDB-121 A bug of query on value columns
++* IOTDB-128 Probably a bug in iotdb official website
++* IOTDB-129 A bug in restoring incomplete tsfile when system restart
++* IOTDB-131 IoTDB-Grafana-Connector module error when getting the timeseries list from Grafana
++* IOTDB-133 Some content is mistaken for links
++* System memory check failure in iotdb-env.sh
++* Time zone bug in different region
++* DateTimeUtilsTest UT bug
++* Problem discovered by Sonar
++* Openjdk11 + linux11 does not work on travis
++* Start JDBC service too slowly
++* JDBC cannot be closed
++* Close bug in sync thread
++* Bug in MManager to get all file names of a path
++* Version files of different storage groups are placed into the same place
++* Import/export csv script bug
++* Log level and stack print in test
++* Bug in TsFile-Spark-Connector
++* A doc bug of QuickStart.md
diff --cc dn1/conf/confignode-env.sh
index 6cf29cb32da,00000000000..89be12c3e01
mode 100644,000000..100755
--- a/dn1/conf/confignode-env.sh
+++ b/dn1/conf/confignode-env.sh
@@@ -1,336 -1,0 +1,319 @@@
 +#!/bin/bash
 +#
 +# Licensed to the Apache Software Foundation (ASF) under one
 +# or more contributor license agreements.  See the NOTICE file
 +# distributed with this work for additional information
 +# regarding copyright ownership.  The ASF licenses this file
 +# to you under the Apache License, Version 2.0 (the
 +# "License"); you may not use this file except in compliance
 +# with the License.  You may obtain a copy of the License at
 +#
 +#     http://www.apache.org/licenses/LICENSE-2.0
 +#
 +# Unless required by applicable law or agreed to in writing,
 +# software distributed under the License is distributed on an
 +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 +# KIND, either express or implied.  See the License for the
 +# specific language governing permissions and limitations
 +# under the License.
 +#
 +
 +# You can set ConfigNode memory size, example '2G' or '2048M'
 +MEMORY_SIZE=
 +
 +# You can put your env variable here
 +# export JAVA_HOME=$JAVA_HOME
 +
 +# Set max number of open files
 +max_num=$(ulimit -n)
 +if [ $max_num -le 65535 ]; then
 +    ulimit -n 65535
 +    if [ $? -ne 0 ]; then
 +        echo "Warning: Failed to set max number of files to be 65535, maybe you need to use 'sudo ulimit -n 65535' to set it when you use iotdb ConfigNode in production environments."
 +    fi
 +fi
 +
 +# Set somaxconn to a better value to avoid meaningless connection reset issues when the system is under high load.
 +# The original somaxconn will be set back when the system reboots.
 +# For more detail, see: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=19f92a030ca6d772ab44b22ee6a01378a8cb32d4
 +SOMAXCONN=65535
 +case "$(uname)" in
 +    Linux)
 +        somaxconn=$(sysctl -n net.core.somaxconn)
 +        if [ "$somaxconn" -lt $SOMAXCONN ]; then
 +            echo "WARN:"
 +            echo "WARN: the value of net.core.somaxconn (=$somaxconn) is too small, please set it to a larger value using the following command."
 +            echo "WARN:     sudo sysctl -w net.core.somaxconn=$SOMAXCONN"
 +            echo "WARN: The original net.core.somaxconn value will be set back when the os reboots."
 +            echo "WARN:"
 +        fi
 +    ;;
 +    FreeBSD | Darwin)
 +        somaxconn=$(sysctl -n kern.ipc.somaxconn)
 +        if [ "$somaxconn" -lt $SOMAXCONN ]; then
 +            echo "WARN:"
 +            echo "WARN: the value of kern.ipc.somaxconn (=$somaxconn) is too small, please set it to a larger value using the following command."
 +            echo "WARN:     sudo sysctl -w kern.ipc.somaxconn=$SOMAXCONN"
 +            echo "WARN: The original kern.ipc.somaxconn value will be set back when the os reboots."
 +            echo "WARN:"
 +        fi
 +    ;;
 +esac
 +
 +# whether we allow enable heap dump files
 +IOTDB_ALLOW_HEAP_DUMP="true"
 +
 +calculate_memory_sizes()
 +{
 +    case "`uname`" in
 +        Linux)
 +            system_memory_in_mb=`free -m| sed -n '2p' | awk '{print $2}'`
 +            system_cpu_cores=`egrep -c 'processor([[:space:]]+):.*' /proc/cpuinfo`
 +        ;;
 +        FreeBSD)
 +            system_memory_in_bytes=`sysctl hw.physmem | awk '{print $2}'`
 +            system_memory_in_mb=`expr $system_memory_in_bytes / 1024 / 1024`
 +            system_cpu_cores=`sysctl hw.ncpu | awk '{print $2}'`
 +        ;;
 +        SunOS)
 +            system_memory_in_mb=`prtconf | awk '/Memory size:/ {print $3}'`
 +            system_cpu_cores=`psrinfo | wc -l`
 +        ;;
 +        Darwin)
 +            system_memory_in_bytes=`sysctl hw.memsize | awk '{print $2}'`
 +            system_memory_in_mb=`expr $system_memory_in_bytes / 1024 / 1024`
 +            system_cpu_cores=`sysctl hw.ncpu | awk '{print $2}'`
 +        ;;
 +        *)
 +            # assume reasonable defaults for e.g. a modern desktop or
 +            # cheap server
 +            system_memory_in_mb="2048"
 +            system_cpu_cores="2"
 +        ;;
 +    esac
 +
 +    # some systems like the raspberry pi don't report cores, use at least 1
 +    if [ "$system_cpu_cores" -lt "1" ]
 +    then
 +        system_cpu_cores="1"
 +    fi
 +
 +    # suggest using memory, system memory 3 / 10
 +    suggest_using_memory_in_mb=`expr $system_memory_in_mb / 10 \* 3`
 +
 +    if [ -n "$MEMORY_SIZE" ]
 +    then
 +        if [ "${MEMORY_SIZE%"G"}" != "$MEMORY_SIZE" ] || [ "${MEMORY_SIZE%"M"}" != "$MEMORY_SIZE" ]
 +        then
 +          if [ "${MEMORY_SIZE%"G"}" != "$MEMORY_SIZE" ]
 +          then
 +              memory_size_in_mb=`expr ${MEMORY_SIZE%"G"} "*" 1024`
 +          else
 +              memory_size_in_mb=`expr ${MEMORY_SIZE%"M"}`
 +          fi
 +        else
 +            echo "Invalid format of MEMORY_SIZE, please use the format like 2048M or 2G"
 +            exit 1
 +        fi
 +    else
 +        # set memory size to suggest using memory, if suggest using memory is greater than 8GB, set memory size to 8GB
 +        if [ "$suggest_using_memory_in_mb" -gt "8192" ]
 +        then
 +            memory_size_in_mb="8192"
 +        else
 +            memory_size_in_mb=$suggest_using_memory_in_mb
 +        fi
 +    fi
 +
 +    # set on heap memory size
 +    # when memory_size_in_mb is less than 4 * 1024, we will set on heap memory size to memory_size_in_mb / 4 * 3
 +    # when memory_size_in_mb is greater than 4 * 1024 and less than 16 * 1024, we will set on heap memory size to memory_size_in_mb / 5 * 4
 +    # when memory_size_in_mb is greater than 16 * 1024 and less than 128 * 1024, we will set on heap memory size to memory_size_in_mb / 8 * 7
 +    # when memory_size_in_mb is greater than 128 * 1024, we will set on heap memory size to memory_size_in_mb - 16 * 1024
 +    if [ "$memory_size_in_mb" -lt "4096" ]
 +    then
 +        on_heap_memory_size_in_mb=`expr $memory_size_in_mb / 4 \* 3`
 +    elif [ "$memory_size_in_mb" -lt "16384" ]
 +    then
 +        on_heap_memory_size_in_mb=`expr $memory_size_in_mb / 5 \* 4`
 +    elif [ "$memory_size_in_mb" -lt "131072" ]
 +    then
 +        on_heap_memory_size_in_mb=`expr $memory_size_in_mb / 8 \* 7`
 +    else
 +        on_heap_memory_size_in_mb=`expr $memory_size_in_mb - 16384`
 +    fi
 +    off_heap_memory_size_in_mb=`expr $memory_size_in_mb - $on_heap_memory_size_in_mb`
 +
 +    ON_HEAP_MEMORY="${on_heap_memory_size_in_mb}M"
 +    OFF_HEAP_MEMORY="${off_heap_memory_size_in_mb}M"
 +}
 +
 +get_cn_system_dir() {
 +    local config_file="$1"
 +    local cn_system_dir=""
 +
 +    cn_system_dir=`sed '/^cn_system_dir=/!d;s/.*=//' ${CONFIGNODE_CONF}/${config_file} | tail -n 1`
 +
 +    if [ -z "$cn_system_dir" ]; then
 +        echo ""
 +        return 0
 +    fi
 +
 +    if [[ "$cn_system_dir" == /* ]]; then
 +        echo "$cn_system_dir"
 +    else
 +        echo "$CONFIGNODE_HOME/$cn_system_dir"
 +    fi
 +}
 +
 +if [ -f "${CONFIGNODE_CONF}/iotdb-system.properties" ]; then
 +  	heap_dump_dir=$(get_cn_system_dir "iotdb-system.properties")
 +else
 +  	heap_dump_dir=$(get_cn_system_dir "iotdb-confignode.properties")
 +fi
 +
 +if [ -z "$heap_dump_dir" ]; then
 +  	heap_dump_dir="$CONFIGNODE_HOME/data/confignode/system"
 +fi
 +
 +if [ ! -d "$heap_dump_dir" ]; then
 +  	mkdir -p "$heap_dump_dir"
 +fi
 +
 +# find java in JAVA_HOME
 +if [ -n "$JAVA_HOME" ]; then
 +    for java in "$JAVA_HOME"/bin/amd64/java "$JAVA_HOME"/bin/java; do
 +        if [ -x "$java" ]; then
 +            JAVA="$java"
 +            break
 +        fi
 +    done
 +else
 +    JAVA=java
 +fi
 +
 +if [ -z "$JAVA" ] ; then
 +    echo Unable to find java executable. Check JAVA_HOME and PATH environment variables.  > /dev/stderr
 +    exit 1;
 +fi
 +
 +# Determine the sort of JVM we'll be running on.
 +java_ver_output=`"$JAVA" -version 2>&1`
 +jvmver=`echo "$java_ver_output" | grep '[openjdk|java] version' | awk -F'"' 'NR==1 {print $2}' | cut -d\- -f1`
 +JVM_VERSION=${jvmver%_*}
- JVM_PATCH_VERSION=${jvmver#*_}
- if [ "$JVM_VERSION" \< "1.8" ] ; then
-     echo "IoTDB requires Java 8u92 or later."
-     exit 1;
++version_arr=(${JVM_VERSION//./ })
++if [ "${version_arr[0]}" = "1" ] ; then
++    MAJOR_VERSION=${version_arr[1]}
++else
++    MAJOR_VERSION=${version_arr[0]}
 +fi
 +
- if [ "$JVM_VERSION" \< "1.8" ] && [ "$JVM_PATCH_VERSION" -lt 92 ] ; then
-     echo "IoTDB requires Java 8u92 or later."
++if [ "$MAJOR_VERSION" -lt 17 ] ; then
++    echo "IoTDB requires Java 17 or later."
 +    exit 1;
 +fi
 +
- version_arr=(${JVM_VERSION//./ })
- 
 +illegal_access_params=""
 +#GC log path has to be defined here because it needs to access CONFIGNODE_HOME
- if [ "${version_arr[0]}" = "1" ] ; then
-     # Java 8
-     MAJOR_VERSION=${version_arr[1]}
-     echo "$CONFIGNODE_JMX_OPTS" | grep -q "^-[X]loggc"
-     if [ "$?" = "1" ] ; then # [X] to prevent ccm from replacing this line
-         # only add -Xlog:gc if it's not mentioned in jvm-server.options file
-         mkdir -p ${CONFIGNODE_HOME}/logs
-         if [ "$#" -ge "1" -a "$1" == "printgc" ]; then
-             CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Xloggc:${CONFIGNODE_HOME}/logs/gc.log  -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M"
-         fi
-     fi
- else
-     #JDK 11 and others
-     MAJOR_VERSION=${version_arr[0]}
-     # See description of https://bugs.openjdk.java.net/browse/JDK-8046148 for details about the syntax
-     # The following is the equivalent to -XX:+PrintGCDetails -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M
-     echo "$CONFIGNODE_JMX_OPTS" | grep -q "^-[X]log:gc"
-     if [ "$?" = "1" ] ; then # [X] to prevent ccm from replacing this line
-         # only add -Xlog:gc if it's not mentioned in jvm-server.options file
-         mkdir -p ${CONFIGNODE_HOME}/logs
-         if [ "$#" -ge "1" -a "$1" == "printgc" ]; then
-             CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Xlog:gc=info,heap*=info,age*=info,safepoint=info,promotion*=info:file=${CONFIGNODE_HOME}/logs/gc.log:time,uptime,pid,tid,level:filecount=10,filesize=10485760"
-         fi
++# See description of https://bugs.openjdk.java.net/browse/JDK-8046148 for details about the syntax
++# The following is the equivalent to -XX:+PrintGCDetails -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M
++echo "$CONFIGNODE_JMX_OPTS" | grep -q "^-[X]log:gc"
++if [ "$?" = "1" ] ; then # [X] to prevent ccm from replacing this line
++    # only add -Xlog:gc if it's not mentioned in jvm-server.options file
++    mkdir -p ${CONFIGNODE_HOME}/logs
++    if [ "$#" -ge "1" -a "$1" == "printgc" ]; then
++        CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Xlog:gc=info,heap*=info,age*=info,safepoint=info,promotion*=info:file=${CONFIGNODE_HOME}/logs/gc.log:time,uptime,pid,tid,level:filecount=10,filesize=10485760"
 +    fi
-     # Add argLine for Java 11 and above, due to [JEP 396: Strongly Encapsulate JDK Internals by Default] (https://openjdk.java.net/jeps/396)
-     illegal_access_params="$illegal_access_params --add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
-     illegal_access_params="$illegal_access_params --add-opens=java.base/java.lang=ALL-UNNAMED"
-     illegal_access_params="$illegal_access_params --add-opens=java.base/java.util=ALL-UNNAMED"
-     illegal_access_params="$illegal_access_params --add-opens=java.base/java.nio=ALL-UNNAMED"
-     illegal_access_params="$illegal_access_params --add-opens=java.base/java.io=ALL-UNNAMED"
-     illegal_access_params="$illegal_access_params --add-opens=java.base/java.net=ALL-UNNAMED"
 +fi
++# Add argLine for Java 17 and above, due to [JEP 396: Strongly Encapsulate JDK Internals by Default] (https://openjdk.java.net/jeps/396)
++illegal_access_params="$illegal_access_params --add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
++illegal_access_params="$illegal_access_params --add-opens=java.base/java.lang=ALL-UNNAMED"
++illegal_access_params="$illegal_access_params --add-opens=java.base/java.util=ALL-UNNAMED"
++illegal_access_params="$illegal_access_params --add-opens=java.base/java.nio=ALL-UNNAMED"
++illegal_access_params="$illegal_access_params --add-opens=java.base/java.io=ALL-UNNAMED"
++illegal_access_params="$illegal_access_params --add-opens=java.base/java.net=ALL-UNNAMED"
 +
 +
 +calculate_memory_sizes
 +
 +# on heap memory size
 +#ON_HEAP_MEMORY="2G"
 +# off heap memory size
 +#OFF_HEAP_MEMORY="512M"
 +
 +# configure JVM memory with setting environment variable of CONFIGNODE_JMX_OPTS
 +if [[ "$CONFIGNODE_JMX_OPTS" =~ -Xmx ]];then
 +    item_arr=(${CONFIGNODE_JMX_OPTS})
 +    for item in ${item_arr[@]};do
 +        if [[ -n "$item" ]]; then
 +            if [[ "$item" =~ -Xmx ]]; then
 +                ON_HEAP_MEMORY=${item#*mx}
 +            elif [[ "$item" =~ -XX:MaxDirectMemorySize= ]]; then
 +                OFF_HEAP_MEMORY=${item#*=}
 +            fi
 +        fi
 +    done
 +fi
 +
 +
 +if [ "${OFF_HEAP_MEMORY%"G"}" != "$OFF_HEAP_MEMORY" ]
 +then
 +    off_heap_memory_size_in_mb=`expr ${OFF_HEAP_MEMORY%"G"} "*" 1024`
 +else
 +    off_heap_memory_size_in_mb=`expr ${OFF_HEAP_MEMORY%"M"}`
 +fi
 +
 +# threads number of io
 +IO_THREADS_NUMBER="100"
 +# Max cached buffer size, Note: unit can only be B!
 +# which equals OFF_HEAP_MEMORY / IO_THREADS_NUMBER 
 +MAX_CACHED_BUFFER_SIZE=`expr $off_heap_memory_size_in_mb \* 1024 \* 1024 / $IO_THREADS_NUMBER`
 +
 +#true or false
 +#DO NOT FORGET TO MODIFY THE PASSWORD FOR SECURITY (${CONFIGNODE_CONF}/jmx.password and ${CONFIGNODE_CONF}/jmx.access)
 +#If you want to connect JMX Service by network in local machine, such as nodeTool.sh will try to connect 127.0.0.1:31999, please set JMX_LOCAL to false.
 +JMX_LOCAL="true"
 +
 +JMX_PORT="32000"
 +#only take effect when the jmx_local=false
 +#You need to change this IP as a public IP if you want to remotely connect IoTDB ConfigNode by JMX.
 +# 0.0.0.0 is not allowed
 +JMX_IP="127.0.0.1"
 +
 +if [ ${JMX_LOCAL} = "false" ]; then
 +  echo "setting remote JMX..."
 +  #you may have no permission to run chmod. If so, contact your system administrator.
 +  chmod 600 ${CONFIGNODE_CONF}/jmx.password
 +  chmod 600 ${CONFIGNODE_CONF}/jmx.access
 +  CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Dcom.sun.management.jmxremote"
 +  CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT"
 +  CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT"
 +  CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Djava.rmi.server.randomIDs=true"
 +  CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Dcom.sun.management.jmxremote.ssl=false"
 +  CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Dcom.sun.management.jmxremote.authenticate=true"
 +  CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Dcom.sun.management.jmxremote.password.file=${CONFIGNODE_CONF}/jmx.password"
 +  CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Dcom.sun.management.jmxremote.access.file=${CONFIGNODE_CONF}/jmx.access"
 +  CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Djava.rmi.server.hostname=$JMX_IP"
 +else
 +  echo "setting local JMX..."
 +fi
 +
 +CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Diotdb.jmx.local=$JMX_LOCAL"
 +if [[ ! "$CONFIGNODE_JMX_OPTS" =~ -Xms ]]; then CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Xms${ON_HEAP_MEMORY}"; fi
 +if [[ ! "$CONFIGNODE_JMX_OPTS" =~ -Xmx ]]; then CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Xmx${ON_HEAP_MEMORY}"; fi
 +if [[ ! "$CONFIGNODE_JMX_OPTS" =~ -XX:MaxDirectMemorySize ]]; then CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -XX:MaxDirectMemorySize=${OFF_HEAP_MEMORY}"; fi
 +CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Djdk.nio.maxCachedBufferSize=${MAX_CACHED_BUFFER_SIZE}"
 +CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -XX:+CrashOnOutOfMemoryError"
 +CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -Dsun.jnu.encoding=UTF-8 -Dfile.encoding=UTF-8"
 +
 +# Append tsfile locale option populated by Maven at package time
 +# (see conf/iotdb-common.sh; empty in default build, "-Dtsfile.locale=zh" under with-zh-locale).
 +if [ -n "$TSFILE_LOCALE_JVM_OPT" ]; then
 +    CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS $TSFILE_LOCALE_JVM_OPT"
 +fi
 +
 +# if you want to dump the heap memory while OOM happening, you can use the following command, remember to replace ${heap_dump_dir}/confignode_heapdump.hprof with your own file path and the folder where this file is located needs to be created in advance
 +#CONFIGNODE_JMX_OPTS="$CONFIGNODE_JMX_OPTS -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${heap_dump_dir}/confignode_heapdump.hprof"
 +
 +echo "ConfigNode on heap memory size = ${ON_HEAP_MEMORY}B, off heap memory size = ${OFF_HEAP_MEMORY}B"
 +echo "If you want to change this configuration, please check conf/confignode-env.sh."
- 
diff --cc dn1/conf/datanode-env.sh
index f600066a848,00000000000..be049774088
mode 100755,000000..100755
--- a/dn1/conf/datanode-env.sh
+++ b/dn1/conf/datanode-env.sh
@@@ -1,372 -1,0 +1,352 @@@
 +#!/bin/bash
 +#
 +# Licensed to the Apache Software Foundation (ASF) under one
 +# or more contributor license agreements.  See the NOTICE file
 +# distributed with this work for additional information
 +# regarding copyright ownership.  The ASF licenses this file
 +# to you under the Apache License, Version 2.0 (the
 +# "License"); you may not use this file except in compliance
 +# with the License.  You may obtain a copy of the License at
 +#
 +#     http://www.apache.org/licenses/LICENSE-2.0
 +#
 +# Unless required by applicable law or agreed to in writing,
 +# software distributed under the License is distributed on an
 +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 +# KIND, either express or implied.  See the License for the
 +# specific language governing permissions and limitations
 +# under the License.
 +#
 +
 +# You can set DataNode memory size, example '2G' or '2048M'
 +MEMORY_SIZE=
 +
 +
 +# You can put your env variable here
 +# export JAVA_HOME=$JAVA_HOME
 +
 +# Set max number of open files
 +max_num=$(ulimit -n)
 +if [ $max_num -le 65535 ]; then
 +    ulimit -n 65535
 +    if [ $? -ne 0 ]; then
 +        echo "Warning: Failed to set max number of files to be 65535, maybe you need to use 'sudo ulimit -n 65535' to set it when you use iotdb in production environments."
 +    fi
 +fi
 +
 +# Set somaxconn to a better value to avoid meaningless connection reset issues when the system is under high load.
 +# The original somaxconn will be set back when the system reboots.
 +# For more detail, see: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=19f92a030ca6d772ab44b22ee6a01378a8cb32d4
 +SOMAXCONN=65535
 +case "$(uname)" in
 +    Linux)
 +        somaxconn=$(sysctl -n net.core.somaxconn)
 +        if [ "$somaxconn" -lt $SOMAXCONN ]; then
 +            echo "WARN:"
 +            echo "WARN: the value of net.core.somaxconn (=$somaxconn) is too small, please set it to a larger value using the following command."
 +            echo "WARN:     sudo sysctl -w net.core.somaxconn=$SOMAXCONN"
 +            echo "WARN: The original net.core.somaxconn value will be set back when the os reboots."
 +            echo "WARN:"
 +        fi
 +    ;;
 +    FreeBSD | Darwin)
 +        somaxconn=$(sysctl -n kern.ipc.somaxconn)
 +        if [ "$somaxconn" -lt $SOMAXCONN ]; then
 +            echo "WARN:"
 +            echo "WARN: the value of kern.ipc.somaxconn (=$somaxconn) is too small, please set it to a larger value using the following command."
 +            echo "WARN:     sudo sysctl -w kern.ipc.somaxconn=$SOMAXCONN"
 +            echo "WARN: The original kern.ipc.somaxconn value will be set back when the os reboots."
 +            echo "WARN:"
 +        fi
 +    ;;
 +esac
 +
 +# whether we allow enable heap dump files
 +IOTDB_ALLOW_HEAP_DUMP="true"
 +
 +calculate_memory_sizes()
 +{
 +    case "`uname`" in
 +        Linux)
 +            system_memory_in_mb=`free -m| sed -n '2p' | awk '{print $2}'`
 +            system_cpu_cores=`egrep -c 'processor([[:space:]]+):.*' /proc/cpuinfo`
 +        ;;
 +        FreeBSD)
 +            system_memory_in_bytes=`sysctl hw.physmem | awk '{print $2}'`
 +            system_memory_in_mb=`expr $system_memory_in_bytes / 1024 / 1024`
 +            system_cpu_cores=`sysctl hw.ncpu | awk '{print $2}'`
 +        ;;
 +        SunOS)
 +            system_memory_in_mb=`prtconf | awk '/Memory size:/ {print $3}'`
 +            system_cpu_cores=`psrinfo | wc -l`
 +        ;;
 +        Darwin)
 +            system_memory_in_bytes=`sysctl hw.memsize | awk '{print $2}'`
 +            system_memory_in_mb=`expr $system_memory_in_bytes / 1024 / 1024`
 +            system_cpu_cores=`sysctl hw.ncpu | awk '{print $2}'`
 +        ;;
 +        *)
 +            # assume reasonable defaults for e.g. a modern desktop or
 +            # cheap server
 +            system_memory_in_mb="2048"
 +            system_cpu_cores="2"
 +        ;;
 +    esac
 +
 +    # some systems like the raspberry pi don't report cores, use at least 1
 +    if [ "$system_cpu_cores" -lt "1" ]
 +    then
 +        system_cpu_cores="1"
 +    fi
 +
 +    # suggest using memory, system memory 1 / 2
 +    suggest_using_memory_in_mb=`expr $system_memory_in_mb / 2`
 +
 +    if [ -n "$MEMORY_SIZE" ]
 +    then
 +        if [ "${MEMORY_SIZE%"G"}" != "$MEMORY_SIZE" ] || [ "${MEMORY_SIZE%"M"}" != "$MEMORY_SIZE" ]
 +        then
 +          if [ "${MEMORY_SIZE%"G"}" != "$MEMORY_SIZE" ]
 +          then
 +              memory_size_in_mb=`expr ${MEMORY_SIZE%"G"} "*" 1024`
 +          else
 +              memory_size_in_mb=`expr ${MEMORY_SIZE%"M"}`
 +          fi
 +        else
 +            echo "Invalid format of MEMORY_SIZE, please use the format like 2048M or 2G"
 +            exit 1
 +        fi
 +    else
 +        memory_size_in_mb=$suggest_using_memory_in_mb
 +    fi
 +
 +    # set on heap memory size
 +    # when memory_size_in_mb is less than 4 * 1024, we will set on heap memory size to memory_size_in_mb / 4 * 3
 +    # when memory_size_in_mb is greater than 4 * 1024 and less than 16 * 1024, we will set on heap memory size to memory_size_in_mb / 5 * 4
 +    # when memory_size_in_mb is greater than 16 * 1024 and less than 128 * 1024, we will set on heap memory size to memory_size_in_mb / 8 * 7
 +    # when memory_size_in_mb is greater than 128 * 1024, we will set on heap memory size to memory_size_in_mb - 16 * 1024
 +    if [ "$memory_size_in_mb" -lt "4096" ]
 +    then
 +        on_heap_memory_size_in_mb=`expr $memory_size_in_mb / 4 \* 3`
 +    elif [ "$memory_size_in_mb" -lt "16384" ]
 +    then
 +        on_heap_memory_size_in_mb=`expr $memory_size_in_mb / 5 \* 4`
 +    elif [ "$memory_size_in_mb" -lt "131072" ]
 +    then
 +        on_heap_memory_size_in_mb=`expr $memory_size_in_mb / 8 \* 7`
 +    else
 +        on_heap_memory_size_in_mb=`expr $memory_size_in_mb - 16384`
 +    fi
 +    off_heap_memory_size_in_mb=`expr $memory_size_in_mb - $on_heap_memory_size_in_mb`
 +
 +    ON_HEAP_MEMORY="${on_heap_memory_size_in_mb}M"
 +    OFF_HEAP_MEMORY="${off_heap_memory_size_in_mb}M"
 +}
 +
 +
 +# find first dir of dn_data_dirs from properties file
 +get_first_data_dir() {
 +    local config_file="$1"
 +    local data_dir_value=""
 +
 +    data_dir_value=`sed '/^dn_data_dirs=/!d;s/.*=//' ${IOTDB_CONF}/${config_file} | tail -n 1`
 +
 +    if [ -z "$data_dir_value" ]; then
 +        echo ""
 +        return 0
 +    fi
 +
 +    if [[ "$data_dir_value" == *";"* ]]; then
 +        data_dir_value=$(echo "$data_dir_value" | cut -d';' -f1)
 +    fi
 +    if [[ "$data_dir_value" == *","* ]]; then
 +        data_dir_value=$(echo "$data_dir_value" | cut -d',' -f1)
 +    fi
 +
 +    # trim the dir
 +    data_dir_value=$(echo "$data_dir_value" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
 +
 +    if [[ "$data_dir_value" == /* ]]; then
 +        echo "$data_dir_value"
 +    else
 +        echo "$IOTDB_HOME/$data_dir_value"
 +    fi
 +}
 +
 +if [ -f "${IOTDB_CONF}/iotdb-system.properties" ]; then
 +  	heap_dump_dir=$(get_first_data_dir "iotdb-system.properties")
 +else
 +  	heap_dump_dir=$(get_first_data_dir "iotdb-datanode.properties")
 +fi
 +
 +if [ -z "$heap_dump_dir" ]; then
 +  	heap_dump_dir="$IOTDB_HOME/data/datanode/data"
 +fi
 +if [ ! -d "$heap_dump_dir" ]; then
 +  	mkdir -p "$heap_dump_dir"
 +fi
 +
 +# find java in JAVA_HOME
 +if [ -n "$JAVA_HOME" ]; then
 +    for java in "$JAVA_HOME"/bin/amd64/java "$JAVA_HOME"/bin/java; do
 +        if [ -x "$java" ]; then
 +            JAVA="$java"
 +            break
 +        fi
 +    done
 +else
 +    JAVA=java
 +fi
 +
 +if [ -z "$JAVA" ] ; then
 +    echo Unable to find java executable. Check JAVA_HOME and PATH environment variables.  > /dev/stderr
 +    exit 1;
 +fi
 +
 +# Determine the sort of JVM we'll be running on.
 +java_ver_output=`"$JAVA" -version 2>&1`
 +jvmver=`echo "$java_ver_output" | grep '[openjdk|java] version' | awk -F'"' 'NR==1 {print $2}' | cut -d\- -f1`
 +JVM_VERSION=${jvmver%_*}
- JVM_PATCH_VERSION=${jvmver#*_}
- if [ "$JVM_VERSION" \< "1.8" ] ; then
-     echo "IoTDB requires Java 8u92 or later."
-     exit 1;
++version_arr=(${JVM_VERSION//./ })
++if [ "${version_arr[0]}" = "1" ] ; then
++    MAJOR_VERSION=${version_arr[1]}
++else
++    MAJOR_VERSION=${version_arr[0]}
 +fi
 +
- if [ "$JVM_VERSION" \< "1.8" ] && [ "$JVM_PATCH_VERSION" -lt 92 ] ; then
-     echo "IoTDB requires Java 8u92 or later."
++if [ "$MAJOR_VERSION" -lt 17 ] ; then
++    echo "IoTDB requires Java 17 or later."
 +    exit 1;
 +fi
 +
- version_arr=(${JVM_VERSION//./ })
- 
 +illegal_access_params=""
 +#GC log path has to be defined here because it needs to access IOTDB_HOME
- if [ "${version_arr[0]}" = "1" ] ; then
-     # Java 8
-     MAJOR_VERSION=${version_arr[1]}
-     echo "$IOTDB_JMX_OPTS" | grep -q "^-[X]loggc"
-     if [ "$?" = "1" ] ; then # [X] to prevent ccm from replacing this line
-         # only add -Xlog:gc if it's not mentioned in jvm-server.options file
-         mkdir -p ${IOTDB_HOME}/logs
-         if [ "$#" -ge "1" -a "$1" == "printgc" ]; then
-             IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Xloggc:${IOTDB_HOME}/logs/gc.log -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M"
-             # For more detailed GC information, you can uncomment option below.
-             # NOTE: more detailed GC information may bring larger GC log files.
-             # IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Xloggc:${IOTDB_HOME}/logs/gc.log -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+UseGCLogFileRotation -XX:+PrintTenuringDistribution -XX:+PrintHeapAtGC -XX:+PrintReferenceGC -XX:+PrintSafepointStatistics -XX:PrintSafepointStatisticsCount=1 -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M"
-         fi
-     fi
- else
-     #JDK 11 and others
-     MAJOR_VERSION=${version_arr[0]}
-     # See description of https://bugs.openjdk.java.net/browse/JDK-8046148 for details about the syntax
-     # The following is the equivalent to -XX:+PrintGCDetails -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M
-     echo "$IOTDB_JMX_OPTS" | grep -q "^-[X]log:gc"
-     if [ "$?" = "1" ] ; then # [X] to prevent ccm from replacing this line
-         # only add -Xlog:gc if it's not mentioned in jvm-server.options file
-         mkdir -p ${IOTDB_HOME}/logs
-         if [ "$#" -ge "1" -a "$1" == "printgc" ]; then
-             IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Xlog:gc=info,heap*=info,age*=info,safepoint=info,promotion*=info:file=${IOTDB_HOME}/logs/gc.log:time,uptime,pid,tid,level:filecount=10,filesize=10485760"
-             # For more detailed GC information, you can uncomment option below.
-             # NOTE: more detailed GC information may bring larger GC log files.
-             # IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Xlog:gc*=debug,heap*=debug,age*=trace,metaspace*=info,safepoint*=debug,promotion*=info:file=${IOTDB_HOME}/logs/gc.log:time,uptime,pid,tid,level,tags:filecount=10,filesize=100M"
-         fi
++# See description of https://bugs.openjdk.java.net/browse/JDK-8046148 for details about the syntax
++# The following is the equivalent to -XX:+PrintGCDetails -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M
++echo "$IOTDB_JMX_OPTS" | grep -q "^-[X]log:gc"
++if [ "$?" = "1" ] ; then # [X] to prevent ccm from replacing this line
++    # only add -Xlog:gc if it's not mentioned in jvm-server.options file
++    mkdir -p ${IOTDB_HOME}/logs
++    if [ "$#" -ge "1" -a "$1" == "printgc" ]; then
++        IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Xlog:gc=info,heap*=info,age*=info,safepoint=info,promotion*=info:file=${IOTDB_HOME}/logs/gc.log:time,uptime,pid,tid,level:filecount=10,filesize=10485760"
++        # For more detailed GC information, you can uncomment option below.
++        # NOTE: more detailed GC information may bring larger GC log files.
++        # IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Xlog:gc*=debug,heap*=debug,age*=trace,metaspace*=info,safepoint*=debug,promotion*=info:file=${IOTDB_HOME}/logs/gc.log:time,uptime,pid,tid,level,tags:filecount=10,filesize=100M"
 +    fi
-     # Add argLine for Java 11 and above, due to [JEP 396: Strongly Encapsulate JDK Internals by Default] (https://openjdk.java.net/jeps/396)
-     illegal_access_params="$illegal_access_params --add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
-     illegal_access_params="$illegal_access_params --add-opens=java.base/java.lang=ALL-UNNAMED"
-     illegal_access_params="$illegal_access_params --add-opens=java.base/java.util=ALL-UNNAMED"
-     illegal_access_params="$illegal_access_params --add-opens=java.base/java.nio=ALL-UNNAMED"
-     illegal_access_params="$illegal_access_params --add-opens=java.base/java.io=ALL-UNNAMED"
-     illegal_access_params="$illegal_access_params --add-opens=java.base/java.net=ALL-UNNAMED"
 +fi
++# Add argLine for Java 17 and above, due to [JEP 396: Strongly Encapsulate JDK Internals by Default] (https://openjdk.java.net/jeps/396)
++illegal_access_params="$illegal_access_params --add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
++illegal_access_params="$illegal_access_params --add-opens=java.base/java.lang=ALL-UNNAMED"
++illegal_access_params="$illegal_access_params --add-opens=java.base/java.util=ALL-UNNAMED"
++illegal_access_params="$illegal_access_params --add-opens=java.base/java.nio=ALL-UNNAMED"
++illegal_access_params="$illegal_access_params --add-opens=java.base/java.io=ALL-UNNAMED"
++illegal_access_params="$illegal_access_params --add-opens=java.base/java.net=ALL-UNNAMED"
 +
 +calculate_memory_sizes
 +
 +# on heap memory size
 +#ON_HEAP_MEMORY="2G"
 +# off heap memory size
 +#OFF_HEAP_MEMORY="512M"
 +
 +# configure JVM memory with setting environment variable of IOTDB_JMX_OPTS
 +if [[ "$IOTDB_JMX_OPTS" =~ -Xmx ]];then
 +    item_arr=(${IOTDB_JMX_OPTS})
 +    for item in ${item_arr[@]};do
 +        if [[ -n "$item" ]]; then
 +            if [[ "$item" =~ -Xmx ]]; then
 +                ON_HEAP_MEMORY=${item#*mx}
 +            elif [[ "$item" =~ -XX:MaxDirectMemorySize= ]]; then
 +                OFF_HEAP_MEMORY=${item#*=}
 +            fi
 +        fi
 +    done
 +fi
 +
 +
 +if [ "${OFF_HEAP_MEMORY%"G"}" != "$OFF_HEAP_MEMORY" ]
 +then
 +    off_heap_memory_size_in_mb=`expr ${OFF_HEAP_MEMORY%"G"} "*" 1024`
 +else
 +    off_heap_memory_size_in_mb=`expr ${OFF_HEAP_MEMORY%"M"}`
 +fi
 +
 +# threads number for io
 +IO_THREADS_NUMBER="1000"
 +# Max cached buffer size, Note: unit can only be B!
 +# which equals OFF_HEAP_MEMORY / IO_THREADS_NUMBER 
 +MAX_CACHED_BUFFER_SIZE=`expr $off_heap_memory_size_in_mb \* 1024 \* 1024 / $IO_THREADS_NUMBER`
 +
 +#true or false
 +#DO NOT FORGET TO MODIFY THE PASSWORD FOR SECURITY (${IOTDB_CONF}/jmx.password and ${IOTDB_CONF}/jmx.access)
 +#If you want to connect JMX Service by network in local machine, such as nodeTool.sh will try to connect 127.0.0.1:31999, please set JMX_LOCAL to false.
 +JMX_LOCAL="true"
 +
 +JMX_PORT="31999"
 +#only take effect when the jmx_local=false
 +#You need to change this IP as a public IP if you want to remotely connect IoTDB by JMX.
 +# 0.0.0.0 is not allowed
 +JMX_IP="127.0.0.1"
 +
 +if [ ${JMX_LOCAL} = "false" ]; then
 +  echo "setting remote JMX..."
 +  #you may have no permission to run chmod. If so, contact your system administrator.
 +  chmod 600 ${IOTDB_CONF}/jmx.password
 +  chmod 600 ${IOTDB_CONF}/jmx.access
 +  IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Dcom.sun.management.jmxremote"
 +  IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT"
 +  IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT"
 +  IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Djava.rmi.server.randomIDs=true"
 +  IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Dcom.sun.management.jmxremote.ssl=false"
 +  IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Dcom.sun.management.jmxremote.authenticate=true"
 +  IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Dcom.sun.management.jmxremote.password.file=${IOTDB_CONF}/jmx.password"
 +  IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Dcom.sun.management.jmxremote.access.file=${IOTDB_CONF}/jmx.access"
 +  IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Djava.rmi.server.hostname=$JMX_IP"
 +else
 +  echo "setting local JMX..."
 +fi
 +
 +
 +IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Diotdb.jmx.local=$JMX_LOCAL"
 +if [[ ! "$IOTDB_JMX_OPTS" =~ -Xms ]]; then IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Xms${ON_HEAP_MEMORY}"; fi
 +if [[ ! "$IOTDB_JMX_OPTS" =~ -Xmx ]]; then IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Xmx${ON_HEAP_MEMORY}"; fi
 +if [[ ! "$IOTDB_JMX_OPTS" =~ -XX:MaxDirectMemorySize= ]]; then IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:MaxDirectMemorySize=${OFF_HEAP_MEMORY}"; fi
 +IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Djdk.nio.maxCachedBufferSize=${MAX_CACHED_BUFFER_SIZE}"
 +IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+CrashOnOutOfMemoryError"
 +IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+UseAdaptiveSizePolicy"
 +IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Xss512k"
 +# these two options print safepoints with pauses longer than 1000ms to the standard output. You can see these logs via redirection when starting in the background like "start-datanode.sh > log_datanode_safepoint.log"
 +IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:SafepointTimeoutDelay=1000"
 +IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+SafepointTimeout"
 +IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Dsun.jnu.encoding=UTF-8 -Dfile.encoding=UTF-8"
 +
 +# Append tsfile locale option populated by Maven at package time
 +# (see conf/iotdb-common.sh; empty in default build, "-Dtsfile.locale=zh" under with-zh-locale).
 +if [ -n "$TSFILE_LOCALE_JVM_OPT" ]; then
 +    IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS $TSFILE_LOCALE_JVM_OPT"
 +fi
 +
 +# option below tries to optimize safepoint stw time for large counted loop.
 +# NOTE: it may have an impact on JIT's black-box optimization.
 +# IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+UseCountedLoopSafepoints"
 +
 +# when the GC time is too long, if there are remaining CPU resources, you can try to turn on and increase options below.
 +# for Linux:
 +# CPU_PROCESSOR_NUM=$(nproc)
 +# for MacOS:
 +# CPU_PROCESSOR_NUM=$(sysctl -n hw.ncpu)
 +# IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:ParallelGCThreads=${CPU_PROCESSOR_NUM}"
 +
 +# if there are much of stw time of reference process in GC log, you can turn on option below.
 +# NOTE: it may have an impact on application's throughput.
 +# IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+ParallelRefProcEnabled"
 +
 +# this option can reduce the overhead caused by memory allocation, page fault interrupts, etc. during JVM operation.
 +# NOTE: it may reduce memory utilization and trigger OOM killer when memory is tight.
 +# IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+AlwaysPreTouch"
 +
 +# if you want to dump the heap memory while OOM happening, you can use the following command, remember to replace ${heap_dump_dir}/datanode_heapdump.hprof with your own file path and the folder where this file is located needs to be created in advance
 +# IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${heap_dump_dir}/datanode_heapdump.hprof"
 +
 +echo "DataNode on heap memory size = ${ON_HEAP_MEMORY}B, off heap memory size = ${OFF_HEAP_MEMORY}B"
 +echo "If you want to change this configuration, please check conf/datanode-env.sh."
- 
diff --cc dn1/conf/iotdb-cluster.properties
index 00000000000,00000000000..b565be09867
new file mode 100644
--- /dev/null
+++ b/dn1/conf/iotdb-cluster.properties
@@@ -1,0 -1,0 +1,33 @@@
++#
++# Licensed to the Apache Software Foundation (ASF) under one
++# or more contributor license agreements.  See the NOTICE file
++# distributed with this work for additional information
++# regarding copyright ownership.  The ASF licenses this file
++# to you under the Apache License, Version 2.0 (the
++# "License"); you may not use this file except in compliance
++# with the License.  You may obtain a copy of the License at
++#
++#     http://www.apache.org/licenses/LICENSE-2.0
++#
++# Unless required by applicable law or agreed to in writing,
++# software distributed under the License is distributed on an
++# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++# KIND, either express or implied.  See the License for the
++# specific language governing permissions and limitations
++# under the License.
++#
++
++# This configuration file needs to be configured only when the start-all.sh,stop-all.sh, and destroy.sh scripts are required.
++# You also need to modify this configuration file when the cluster nodes change
++
++# Configure ConfigNodes machine addresses separated by ,
++confignode_address_list=
++# Configure DataNodes machine addresses separated by ,
++datanode_address_list=
++# User name for logging in to the deployment machine using ssh
++ssh_account=root
++# ssh login port
++ssh_port=22
++# iotdb deployment directory (iotdb should be deployed to the following folders in all machines)
++confignode_deploy_path=
++datanode_deploy_path=
diff --cc dn1/conf/iotdb-common.sh
index 00000000000,00000000000..c91c014e736
new file mode 100755
--- /dev/null
+++ b/dn1/conf/iotdb-common.sh
@@@ -1,0 -1,0 +1,395 @@@
++#!/bin/bash
++#
++# Licensed to the Apache Software Foundation (ASF) under one
++# or more contributor license agreements.  See the NOTICE file
++# distributed with this work for additional information
++# regarding copyright ownership.  The ASF licenses this file
++# to you under the Apache License, Version 2.0 (the
++# "License"); you may not use this file except in compliance
++# with the License.  You may obtain a copy of the License at
++#
++#     http://www.apache.org/licenses/LICENSE-2.0
++#
++# Unless required by applicable law or agreed to in writing,
++# software distributed under the License is distributed on an
++# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++# KIND, either express or implied.  See the License for the
++# specific language governing permissions and limitations
++# under the License.
++#
++
++# JVM option for selecting tsfile's runtime locale (log/exception messages).
++# Filtered by Maven at package time:
++#   - Default build: empty (English).
++#   - `with-zh-locale` profile: "-Dtsfile.locale=zh".
++TSFILE_LOCALE_JVM_OPT=""
++
++
++# this function is for parsing the variables like "A=B" in  `start-server.sh -D A=B`
++# The command just parse IOTDB-prefixed variables and ignore all other variables
++checkEnvVariables()
++{
++
++  string="$1"
++  array=$(echo $string | tr '=' ' ')
++  eval set -- "$array"
++  case "$1" in
++          IOTDB_INCLUDE)
++               IOTDB_INCLUDE="$2"
++          ;;
++          IOTDB_HOME)
++               IOTDB_HOME="$2"
++          ;;
++          IOTDB_DATA_HOME)
++             IOTDB_DATA_HOME="$2"
++          ;;
++          IOTDB_CONF)
++             IOTDB_CONF="$2"
++          ;;
++          IOTDB_LOG_DIR)
++             IOTDB_LOG_DIR="$2"
++          ;;
++          IOTDB_LOG_CONFIG)
++             IOTDB_LOG_CONFIG="$2"
++          ;;
++          IOTDB_CLI_CONF)
++             IOTDB_CLI_CONF="$2"
++          ;;
++          *)
++            #we can not process it, so that we return back.
++            echo "$1=$2"
++          ;;
++  esac
++  echo ""
++}
++
++checkConfigNodeEnvVariables()
++{
++
++  string="$1"
++  array=$(echo $string | tr '=' ' ')
++  eval set -- "$array"
++  case "$1" in
++          IOTDB_INCLUDE)
++            IOTDB_INCLUDE="$2"
++          ;;
++          CONFIGNODE_HOME)
++              CONFIGNODE_HOME="$2"
++          ;;
++          CONFIGNODE_DATA_HOME)
++             CONFIGNODE_DATA_HOME="$2"
++          ;;
++          I_CONF)
++             IOTDB_CONF="$2"
++          ;;
++          CONFIGNODE_LOG_DIR)
++             CONFIGNODE_LOG_DIR="$2"
++          ;;
++          CONFIGNODE_LOG_CONFIG)
++             CONFIGNODE_LOG_CONFIG="$2"
++          ;;
++          *)
++            #we can not process it, so that we return back.
++            echo "$1=$2"
++          ;;
++  esac
++  echo ""
++}
++
++checkAllVariables()
++{
++  if [ -z "${IOTDB_INCLUDE}" ]; then
++    #do nothing
++    :
++  elif [ -r "$IOTDB_INCLUDE" ]; then
++      . "$IOTDB_INCLUDE"
++  fi
++
++  if [ -z "${IOTDB_HOME}" ]; then
++    export IOTDB_HOME="`dirname "$0"`/.."
++  fi
++
++  if [ -z "${IOTDB_DATA_HOME}" ]; then
++    export IOTDB_DATA_HOME=${IOTDB_HOME}
++  fi
++
++  if [ -z "${IOTDB_CONF}" ]; then
++    export IOTDB_CONF=${IOTDB_HOME}/conf
++  fi
++
++  if [ -z "${IOTDB_LOG_DIR}" ]; then
++    export IOTDB_LOG_DIR=${IOTDB_HOME}/logs
++  fi
++
++  if [ -z "${IOTDB_LOG_CONFIG}" ]; then
++    export IOTDB_LOG_CONFIG="${IOTDB_CONF}/logback-datanode.xml"
++  fi
++}
++
++checkAllConfigNodeVariables()
++{
++  if [ -z "${IOTDB_INCLUDE}" ]; then
++    #do nothing
++    :
++  elif [ -r "$IOTDB_INCLUDE" ]; then
++      . "$IOTDB_INCLUDE"
++  fi
++
++  if [ -z "${CONFIGNODE_HOME}" ]; then
++    export CONFIGNODE_HOME="`dirname "$0"`/.."
++  fi
++
++  if [ -z "${CONFIGNODE_DATA_HOME}" ]; then
++    export CONFIGNODE_DATA_HOME=${CONFIGNODE_HOME}
++  fi
++
++  if [ -z "${CONFIGNODE_CONF}" ]; then
++    export CONFIGNODE_CONF=${CONFIGNODE_HOME}/conf
++  fi
++
++  if [ -z "${CONFIGNODE_LOG_DIR}" ]; then
++    export CONFIGNODE_LOG_DIR=${CONFIGNODE_HOME}/logs
++  fi
++
++  if [ -z "${CONFIGNODE_LOG_CONFIG}" ]; then
++    export CONFIGNODE_LOG_CONFIG="${CONFIGNODE_CONF}/logback-confignode.xml"
++  fi
++}
++
++check_config_unique() {
++  local key=$1
++  local values=$2
++
++  line_count=$(echo "$values" | wc -l)
++
++  if [ "$line_count" -gt 1 ]; then
++    echo "Error: Duplicate $key entries found"
++    exit 1
++  fi
++}
++
++checkDataNodePortUsages () {
++  echo "Checking whether the ports are already occupied..."
++  if [ "$(id -u)" -ne 0 ]; then
++    echo "Warning: If you do not use sudo, the checking may not detect all the occupied ports."
++  fi
++  occupied=false
++  if [ -f "$IOTDB_CONF/iotdb-system.properties" ]; then
++      dn_rpc_port=$(sed '/^dn_rpc_port=/!d;s/.*=//' "${IOTDB_CONF}"/iotdb-system.properties)
++      dn_internal_port=$(sed '/^dn_internal_port=/!d;s/.*=//' "${IOTDB_CONF}"/iotdb-system.properties)
++      dn_mpp_data_exchange_port=$(sed '/^dn_mpp_data_exchange_port=/!d;s/.*=//' "${IOTDB_CONF}"/iotdb-system.properties)
++      dn_schema_region_consensus_port=$(sed '/^dn_schema_region_consensus_port=/!d;s/.*=//' "${IOTDB_CONF}"/iotdb-system.properties)
++      dn_data_region_consensus_port=$(sed '/^dn_data_region_consensus_port=/!d;s/.*=//' "${IOTDB_CONF}"/iotdb-system.properties)
++  elif [ -f "$IOTDB_HOME/conf/iotdb-system.properties" ]; then
++      dn_rpc_port=$(sed '/^dn_rpc_port=/!d;s/.*=//' "${IOTDB_HOME}"/conf/iotdb-system.properties)
++      dn_internal_port=$(sed '/^dn_internal_port=/!d;s/.*=//' "${IOTDB_HOME}"/conf/iotdb-system.properties)
++      dn_mpp_data_exchange_port=$(sed '/^dn_mpp_data_exchange_port=/!d;s/.*=//' "${IOTDB_HOME}"/conf/iotdb-system.properties)
++      dn_schema_region_consensus_port=$(sed '/^dn_schema_region_consensus_port=/!d;s/.*=//' "${IOTDB_HOME}"/conf/iotdb-system.properties)
++      dn_data_region_consensus_port=$(sed '/^dn_data_region_consensus_port=/!d;s/.*=//' "${IOTDB_HOME}"/conf/iotdb-system.properties)
++  elif [ -f "$IOTDB_CONF/iotdb-datanode.properties" ]; then
++    dn_rpc_port=$(sed '/^dn_rpc_port=/!d;s/.*=//' "${IOTDB_CONF}"/iotdb-datanode.properties)
++    dn_internal_port=$(sed '/^dn_internal_port=/!d;s/.*=//' "${IOTDB_CONF}"/iotdb-datanode.properties)
++    dn_mpp_data_exchange_port=$(sed '/^dn_mpp_data_exchange_port=/!d;s/.*=//' "${IOTDB_CONF}"/iotdb-datanode.properties)
++    dn_schema_region_consensus_port=$(sed '/^dn_schema_region_consensus_port=/!d;s/.*=//' "${IOTDB_CONF}"/iotdb-datanode.properties)
++    dn_data_region_consensus_port=$(sed '/^dn_data_region_consensus_port=/!d;s/.*=//' "${IOTDB_CONF}"/iotdb-datanode.properties)
++  elif [ -f "$IOTDB_HOME/conf/iotdb-datanode.properties" ]; then
++    dn_rpc_port=$(sed '/^dn_rpc_port=/!d;s/.*=//' "${IOTDB_HOME}"/conf/iotdb-datanode.properties)
++    dn_internal_port=$(sed '/^dn_internal_port=/!d;s/.*=//' "${IOTDB_HOME}"/conf/iotdb-datanode.properties)
++    dn_mpp_data_exchange_port=$(sed '/^dn_mpp_data_exchange_port=/!d;s/.*=//' "${IOTDB_CONF}"/iotdb-datanode.properties)
++    dn_schema_region_consensus_port=$(sed '/^dn_schema_region_consensus_port=/!d;s/.*=//' "${IOTDB_CONF}"/iotdb-datanode.properties)
++    dn_data_region_consensus_port=$(sed '/^dn_data_region_consensus_port=/!d;s/.*=//' "${IOTDB_CONF}"/iotdb-datanode.properties)
++  else
++    echo "Warning: cannot find iotdb-system.properties or iotdb-datanode.properties, check the default configuration"
++  fi
++
++  check_config_unique "dn_rpc_port" "$dn_rpc_port"
++  check_config_unique "dn_internal_port" "$dn_internal_port"
++  check_config_unique "dn_mpp_data_exchange_port" "$dn_mpp_data_exchange_port"
++  check_config_unique "dn_schema_region_consensus_port" "$dn_schema_region_consensus_port"
++  check_config_unique "dn_data_region_consensus_port" "$dn_data_region_consensus_port"
++
++  dn_rpc_port=${dn_rpc_port:-6667}
++  dn_internal_port=${dn_internal_port:-10730}
++  dn_mpp_data_exchange_port=${dn_mpp_data_exchange_port:-10740}
++  dn_schema_region_consensus_port=${dn_schema_region_consensus_port:-10750}
++  dn_data_region_consensus_port=${dn_data_region_consensus_port:-10760}
++  if type lsof >/dev/null 2>&1; then
++    PID=$(lsof -t -i:"${dn_rpc_port}" -sTCP:LISTEN)
++    if [ -n "$PID" ]; then
++      echo "The dn_rpc_port" "$dn_rpc_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++    PID=$(lsof -t -i:"${dn_internal_port}" -sTCP:LISTEN)
++    if [ -n "$PID" ]; then
++      echo "The dn_internal_port" "$dn_internal_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++    PID=$(lsof -t -i:"${dn_mpp_data_exchange_port}" -sTCP:LISTEN)
++    if [ -n "$PID" ]; then
++      echo "The dn_mpp_data_exchange_port" "$dn_mpp_data_exchange_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++    PID=$(lsof -t -i:"${dn_schema_region_consensus_port}" -sTCP:LISTEN)
++    if [ -n "$PID" ]; then
++      echo "The dn_schema_region_consensus_port" "$dn_schema_region_consensus_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++    PID=$(lsof -t -i:"${dn_data_region_consensus_port}" -sTCP:LISTEN)
++    if [ -n "$PID" ]; then
++      echo "The dn_data_region_consensus_port" "$dn_data_region_consensus_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++  elif type netstat >/dev/null 2>&1; then
++    PID=$(netstat -anp 2>/dev/null | grep ":${dn_rpc_port} " | grep ' LISTEN ' | awk '{print $NF}' | sed "s|/.*||g")
++    if [ -n "$PID" ]; then
++      echo "The dn_rpc_port" "$dn_rpc_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++    PID=$(netstat -anp 2>/dev/null | grep ":${dn_internal_port} " | grep ' LISTEN ' | awk '{print $NF}' | sed "s|/.*||g")
++    if [ -n "$PID" ]; then
++      echo "The dn_internal_port" "$dn_internal_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++    PID=$(netstat -anp 2>/dev/null | grep ":${dn_mpp_data_exchange_port} " | grep ' LISTEN ' | awk '{print $NF}' | sed "s|/.*||g")
++    if [ -n "$PID" ]; then
++      echo "The dn_mpp_data_exchange_port" "$dn_mpp_data_exchange_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++    PID=$(netstat -anp 2>/dev/null | grep ":${dn_schema_region_consensus_port} " | grep ' LISTEN ' | awk '{print $NF}' | sed "s|/.*||g")
++    if [ -n "$PID" ]; then
++      echo "The dn_schema_region_consensus_port" "$dn_schema_region_consensus_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++    PID=$(netstat -anp 2>/dev/null | grep ":${dn_data_region_consensus_port} " | grep ' LISTEN ' | awk '{print $NF}' | sed "s|/.*||g")
++    if [ -n "$PID" ]; then
++      echo "The dn_data_region_consensus_port" "$dn_data_region_consensus_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++  else
++    echo " Error: No necessary tool to check whether given port is occupied, stop ports checking"
++    echo " Please install 'lsof' or 'netstat'."
++  fi
++  if [ $occupied = true ]; then
++    echo "Exit because there are occupied ports."
++    exit 0
++  fi
++}
++
++checkConfigNodePortUsages () {
++  echo "Checking whether the ports are already occupied..."
++  if [ "$(id -u)" -ne 0 ]; then
++    echo "Warning: If you do not use sudo, the checking may not detect all the occupied ports."
++  fi
++  occupied=false
++  if [ -f "$CONFIGNODE_CONF/iotdb-system.properties" ]; then
++    cn_internal_port=$(sed '/^cn_internal_port=/!d;s/.*=//' "${CONFIGNODE_CONF}"/iotdb-system.properties)
++    cn_consensus_port=$(sed '/^cn_consensus_port=/!d;s/.*=//' "${CONFIGNODE_CONF}"/iotdb-system.properties)
++  elif [ -f "$CONFIGNODE_HOME/conf/iotdb-system.properties" ]; then
++    cn_internal_port=$(sed '/^cn_internal_port=/!d;s/.*=//' "${CONFIGNODE_HOME}"/conf/iotdb-system.properties)
++    cn_consensus_port=$(sed '/^cn_consensus_port=/!d;s/.*=//' "${CONFIGNODE_HOME}"/conf/iotdb-system.properties)
++  elif [ -f "$CONFIGNODE_CONF/iotdb-confignode.properties" ]; then
++    cn_internal_port=$(sed '/^cn_internal_port=/!d;s/.*=//' "${CONFIGNODE_CONF}"/iotdb-confignode.properties)
++    cn_consensus_port=$(sed '/^cn_consensus_port=/!d;s/.*=//' "${CONFIGNODE_CONF}"/iotdb-confignode.properties)
++  elif [ -f "$CONFIGNODE_HOME/conf/iotdb-confignode.properties" ]; then
++    cn_internal_port=$(sed '/^cn_internal_port=/!d;s/.*=//' "${CONFIGNODE_HOME}"/conf/iotdb-confignode.properties)
++    cn_consensus_port=$(sed '/^cn_consensus_port=/!d;s/.*=//' "${CONFIGNODE_HOME}"/conf/iotdb-confignode.properties)
++  else
++    echo "Cannot find iotdb-system.properties or iotdb-confignode.properties, check the default configuration"
++  fi
++
++  check_config_unique "cn_internal_port" "$cn_internal_port"
++  check_config_unique "cn_consensus_port" "$cn_consensus_port"
++
++  cn_internal_port=${cn_internal_port:-10710}
++  cn_consensus_port=${cn_consensus_port:-10720}
++  if type lsof >/dev/null 2>&1; then
++    PID=$(lsof -t -i:"${cn_internal_port}" -sTCP:LISTEN)
++    if [ -n "$PID" ]; then
++      echo "The cn_internal_port" "$cn_internal_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++    PID=$(lsof -t -i:"${cn_consensus_port}" -sTCP:LISTEN)
++    if [ -n "$PID" ]; then
++      echo "The cn_consensus_port" "$cn_consensus_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++  elif type netstat >/dev/null 2>&1; then
++    PID=$(netstat -anp 2>/dev/null | grep ":${cn_internal_port} " | grep ' LISTEN ' | awk '{print $NF}' | sed "s|/.*||g")
++    if [ -n "$PID" ]; then
++      echo "The cn_internal_port" "$cn_internal_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++    PID=$(netstat -anp 2>/dev/null | grep ":${cn_consensus_port} " | grep ' LISTEN ' | awk '{print $NF}' | sed "s|/.*||g")
++    if [ -n "$PID" ]; then
++      echo "The cn_consensus_port" "$cn_consensus_port" "is already occupied, PID:" "$PID"
++      occupied=true
++    fi
++  else
++    echo " Error: No necessary tool to check whether given port is occupied, stop ports checking"
++    echo " Please install 'lsof' or 'netstat'."
++  fi
++  if [ $occupied = true ]; then
++    echo "Exit because there are occupied ports."
++    exit 0
++  fi
++}
++
++initEnv() {
++  if [ -f "$IOTDB_CONF/datanode-env.sh" ]; then
++      if [ "x$PRINT_GC" != "x" ]; then
++        . "$IOTDB_CONF/datanode-env.sh" "printgc"
++      else
++          . "$IOTDB_CONF/datanode-env.sh"
++      fi
++  elif [ -f "${IOTDB_HOME}/conf/datanode-env.sh" ]; then
++      if [ "x$PRINT_GC" != "x" ]; then
++        . "${IOTDB_HOME}/conf/datanode-env.sh" "printgc"
++      else
++        . "${IOTDB_HOME}/conf/datanode-env.sh"
++      fi
++  else
++      echo "Can't find $IOTDB_CONF/datanode-env.sh"
++  fi
++}
++
++initConfigNodeEnv() {
++  if [ -f "$CONFIGNODE_CONF/confignode-env.sh" ]; then
++      if [ "x$PRINT_GC" != "x" ]; then
++        . "$CONFIGNODE_CONF/confignode-env.sh" "printgc"
++      else
++          . "$CONFIGNODE_CONF/confignode-env.sh"
++      fi
++  elif [ -f "${CONFIGNODE_HOME}/conf/confignode-env.sh" ]; then
++      if [ "x$PRINT_GC" != "x" ]; then
++        . "${CONFIGNODE_HOME}/conf/confignode-env.sh" "printgc"
++      else
++        . "${CONFIGNODE_HOME}/conf/confignode-env.sh"
++      fi
++  else
++      echo "can't find $CONFIGNODE_CONF/confignode-env.sh"
++  fi
++}
++
++get_iotdb_include() {
++  #reset $1 to $* for this command
++  eval set -- "$1"
++  VARS=""
++  while true; do
++      case "$1" in
++          -D)
++              VARS="$VARS $(checkEnvVariables $2)"
++              shift 2
++          ;;
++          "")
++            #if we do not use getopt, we then have to process the case that there is no argument.
++            #in some systems, when there is no argument, shift command may throw error, so we skip directly
++              break
++          ;;
++          *)
++              VARS="$VARS $1"
++              shift
++          ;;
++      esac
++  done
++  echo "$VARS"
++}
diff --cc dn1/conf/iotdb-system.properties
index 00000000000,00000000000..c8badb4101f
new file mode 100644
--- /dev/null
+++ b/dn1/conf/iotdb-system.properties
@@@ -1,0 -1,0 +1,72 @@@
++#
++# Licensed to the Apache Software Foundation (ASF) under one
++# or more contributor license agreements.  See the NOTICE file
++# distributed with this work for additional information
++# regarding copyright ownership.  The ASF licenses this file
++# to you under the Apache License, Version 2.0 (the
++# "License"); you may not use this file except in compliance
++# with the License.  You may obtain a copy of the License at
++#
++#     http://www.apache.org/licenses/LICENSE-2.0
++#
++# Unless required by applicable law or agreed to in writing,
++# software distributed under the License is distributed on an
++# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++# KIND, either express or implied.  See the License for the
++# specific language governing permissions and limitations
++# under the License.
++#
++
++####################
++### Cluster Configuration
++####################
++
++cluster_name=defaultCluster
++
++####################
++### Seed ConfigNode
++####################
++
++cn_seed_config_node=127.0.0.1:10710
++
++dn_seed_config_node=127.0.0.1:10710
++
++####################
++### Node RPC Configuration
++####################
++
++cn_internal_address=127.0.0.1
++cn_internal_port=10710
++cn_consensus_port=10720
++
++dn_rpc_address=127.0.0.1
++dn_rpc_port=6667
++dn_internal_address=127.0.0.1
++dn_internal_port=10730
++dn_mpp_data_exchange_port=10740
++dn_schema_region_consensus_port=10750
++dn_data_region_consensus_port=10760
++
++####################
++### Replication configuration
++####################
++
++schema_replication_factor=1
++data_replication_factor=1
++
++####################
++### Directory Configuration
++####################
++
++# dn_data_dirs=data/datanode/data
++# dn_wal_dirs=data/datanode/wal
++
++####################
++### Metric Configuration
++####################
++
++# cn_metric_reporter_list=
++cn_metric_prometheus_reporter_port=9091
++
++# dn_metric_reporter_list=
++dn_metric_prometheus_reporter_port=9092
diff --cc dn1/conf/iotdb-system.properties.template
index c7f6a3e2120,00000000000..2ec0b2e010f
mode 100644,000000..100644
--- a/dn1/conf/iotdb-system.properties.template
+++ b/dn1/conf/iotdb-system.properties.template
@@@ -1,2304 -1,0 +1,2381 @@@
 +#
 +# Licensed to the Apache Software Foundation (ASF) under one
 +# or more contributor license agreements.  See the NOTICE file
 +# distributed with this work for additional information
 +# regarding copyright ownership.  The ASF licenses this file
 +# to you under the Apache License, Version 2.0 (the
 +# "License"); you may not use this file except in compliance
 +# with the License.  You may obtain a copy of the License at
 +#
 +#     http://www.apache.org/licenses/LICENSE-2.0
 +#
 +# Unless required by applicable law or agreed to in writing,
 +# software distributed under the License is distributed on an
 +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 +# KIND, either express or implied.  See the License for the
 +# specific language governing permissions and limitations
 +# under the License.
 +#
 +
 +####################
 +### Cluster Configuration
 +####################
 +
 +# Used for indicate cluster name and distinguish different cluster.
 +# If you need to modify the cluster name, it's recommended to use 'set configuration "cluster_name=xxx"' sql.
 +# Manually modifying configuration file is not recommended, which may cause node restart fail.
 +# effectiveMode: hot_reload
 +# Datatype: string
 +cluster_name=defaultCluster
 +
 +####################
 +### Seed ConfigNode
 +####################
 +
 +# For the first ConfigNode to start, cn_seed_config_node points to its own cn_internal_address:cn_internal_port.
 +# For other ConfigNodes that to join the cluster, cn_seed_config_node points to any running ConfigNode's cn_internal_address:cn_internal_port.
 +# Note: After this ConfigNode successfully joins the cluster for the first time, this parameter is no longer used.
 +# Each node automatically maintains the list of ConfigNodes and traverses connections when restarting.
 +# Format: address:port   e.g. 127.0.0.1:10710
 +# effectiveMode: first_start
 +# Datatype: String
 +cn_seed_config_node=127.0.0.1:10710
 +
 +# dn_seed_config_node points to any running ConfigNode's cn_internal_address:cn_internal_port.
 +# Note: After this DataNode successfully joins the cluster for the first time, this parameter is no longer used.
 +# Each node automatically maintains the list of ConfigNodes and traverses connections when restarting.
 +# Format: address:port   e.g. 127.0.0.1:10710
 +# effectiveMode: first_start
 +# Datatype: String
 +dn_seed_config_node=127.0.0.1:10710
 +
 +####################
 +### Node RPC Configuration
 +####################
 +
 +# Used for RPC communication inside cluster.
 +# Could set 127.0.0.1(for local test) or ipv4 address.
 +# effectiveMode: first_start
 +# Datatype: String
 +cn_internal_address=127.0.0.1
 +
 +# Used for RPC communication inside cluster.
 +# effectiveMode: first_start
 +# Datatype: int
 +cn_internal_port=10710
 +
 +# Used for consensus communication among ConfigNodes inside cluster.
 +# effectiveMode: first_start
 +# Datatype: int
 +cn_consensus_port=10720
 +
 +# Used for connection of IoTDB native clients(Session)
 +# Could set 127.0.0.1(for local test) or ipv4 address
 +# effectiveMode: restart
 +# Datatype: String
 +dn_rpc_address=127.0.0.1
 +
 +# Used for connection of IoTDB native clients(Session)
 +# Bind with dn_rpc_address
 +# effectiveMode: restart
 +# Datatype: int
 +dn_rpc_port=6667
 +
 +# Used for communication inside cluster.
 +# could set 127.0.0.1(for local test) or ipv4 address.
 +# effectiveMode: first_start
 +# Datatype: String
 +dn_internal_address=127.0.0.1
 +
 +# Used for communication inside cluster.
 +# Bind with dn_internal_address
 +# effectiveMode: first_start
 +# Datatype: int
 +dn_internal_port=10730
 +
 +# Port for data exchange among DataNodes inside cluster
 +# Bind with dn_internal_address
 +# effectiveMode: first_start
 +# Datatype: int
 +dn_mpp_data_exchange_port=10740
 +
 +# port for consensus's communication for schema region inside cluster.
 +# Bind with dn_internal_address
 +# effectiveMode: first_start
 +# Datatype: int
 +dn_schema_region_consensus_port=10750
 +
 +# port for consensus's communication for data region inside cluster.
 +# Bind with dn_internal_address
 +# effectiveMode: first_start
 +# Datatype: int
 +dn_data_region_consensus_port=10760
 +
 +# The time of data node waiting for the next retry to join into the cluster.
 +# effectiveMode: restart
 +# Datatype: long
 +dn_join_cluster_retry_interval_ms=5000
 +
 +####################
 +### Replication configuration
 +####################
 +
 +# ConfigNode consensus protocol type.
 +# This parameter is unmodifiable after ConfigNode starts for the first time.
 +# These consensus protocols are currently supported:
 +# 1. org.apache.iotdb.consensus.ratis.RatisConsensus
 +# 2. org.apache.iotdb.consensus.simple.SimpleConsensus   (Only 1 ConfigNode can be deployed)
 +# effectiveMode: first_start
 +# Datatype: string
 +config_node_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
 +
 +# Default number of schema replicas
 +# effectiveMode: first_start
 +# Datatype: int
 +schema_replication_factor=1
 +
 +# SchemaRegion consensus protocol type.
 +# This parameter is unmodifiable after ConfigNode starts for the first time.
 +# These consensus protocols are currently supported:
 +# 1. org.apache.iotdb.consensus.ratis.RatisConsensus
 +# 2. org.apache.iotdb.consensus.simple.SimpleConsensus   (The schema_replication_factor can only be set to 1)
 +# effectiveMode: first_start
 +# Datatype: string
 +schema_region_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
 +
 +# Default number of data replicas
 +# effectiveMode: first_start
 +# Datatype: int
 +data_replication_factor=1
 +
 +# DataRegion consensus protocol type.
 +# This parameter is unmodifiable after ConfigNode starts for the first time.
 +# These consensus protocols are currently supported:
 +# 1. org.apache.iotdb.consensus.simple.SimpleConsensus   (The data_replication_factor can only be set to 1)
 +# 2. org.apache.iotdb.consensus.iot.IoTConsensus
 +# 3. org.apache.iotdb.consensus.ratis.RatisConsensus
 +# 4. org.apache.iotdb.consensus.iot.IoTConsensusV2
 +# effectiveMode: first_start
 +# Datatype: string
 +data_region_consensus_protocol_class=org.apache.iotdb.consensus.iot.IoTConsensus
 +
 +####################
 +### Directory configuration
 +####################
 +
 +# system dir
 +# If this property is unset, system will save the data in the default relative path directory under the confignode folder(i.e., %CONFIGNODE_HOME%/data/confignode/system).
 +# If it is absolute, system will save the data in exact location it points to.
 +# If it is relative, system will save the data in the relative path directory it indicates under the confignode folder.
 +# effectiveMode: restart
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
 +# cn_system_dir=data\\confignode\\system
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +cn_system_dir=data/confignode/system
 +
 +# consensus dir
 +# If this property is unset, system will save the data in the default relative path directory under the confignode folder(i.e., %CONFIGNODE_HOME%/data/confignode/consensus).
 +# If it is absolute, system will save the data in exact location it points to.
 +# If it is relative, system will save the data in the relative path directory it indicates under the confignode folder.
 +# Note: If data_dir is assigned an empty string(i.e.,zero-size), it will be handled as a relative path.
 +# effectiveMode: restart
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
 +# cn_consensus_dir=data\\confignode\\consensus
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +cn_consensus_dir=data/confignode/consensus
 +
 +# cn_pipe_receiver_file_dir
 +# If this property is unset, system will save the data in the default relative path directory under the IoTDB folder(i.e., %IOTDB_HOME%/${cn_system_dir}/pipe/receiver).
 +# If it is absolute, system will save the data in the exact location it points to.
 +# If it is relative, system will save the data in the relative path directory it indicates under the IoTDB folder.
 +# Note: If cn_pipe_receiver_file_dir is assigned an empty string(i.e.,zero-size), it will be handled as a relative path.
 +# effectiveMode: restart
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
 +# cn_pipe_receiver_file_dir=data\\confignode\\system\\pipe\\receiver
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +cn_pipe_receiver_file_dir=data/confignode/system/pipe/receiver
 +
 +# system dir
 +# If this property is unset, system will save the data in the default relative path directory under the IoTDB folder(i.e., %IOTDB_HOME%/data/datanode/system).
 +# If it is absolute, system will save the data in exact location it points to.
 +# If it is relative, system will save the data in the relative path directory it indicates under the IoTDB folder.
 +# effectiveMode: restart
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
 +# dn_system_dir=data\\datanode\\system
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +dn_system_dir=data/datanode/system
 +
 +
 +# data dirs
 +# If this property is unset, system will save the data in the default relative path directory under the IoTDB folder(i.e., %IOTDB_HOME%/data/datanode/data).
 +# If it is absolute, system will save the data in exact location it points to.
 +# If it is relative, system will save the data in the relative path directory it indicates under the IoTDB folder.
 +# If there are more than one directory, please separate them by commas ",".
 +# Note: If data_dirs is assigned an empty string(i.e.,zero-size), it will be handled as a relative path.
 +# effectiveMode: hot_reload
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
 +# dn_data_dirs=data\\datanode\\data
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +dn_data_dirs=data/datanode/data
 +
 +
 +# multi_dir_strategy
 +# The strategy is used to choose a directory from data_dirs for the system to store a new tsfile.
 +# System provides two strategies to choose from, or user can create his own strategy by extending org.apache.iotdb.db.conf.directories.strategy.DirectoryStrategy.
 +# The info of the two strategies are as follows:
 +# 1. SequenceStrategy: the system will choose the directory in sequence.
 +# 2. MaxDiskUsableSpaceFirstStrategy: the system will choose the directory whose disk has the maximum space.
 +# Set SequenceStrategy or MaxDiskUsableSpaceFirstStrategy to apply the corresponding strategy.
 +# If this property is unset, system will use SequenceStrategy as default strategy.
 +# For this property, fully-qualified class name (include package name) and simple class name are both acceptable.
 +# effectiveMode: hot_reload
 +# Datatype: String
 +dn_multi_dir_strategy=SequenceStrategy
 +
 +# load_disk_select_strategy
 +# The strategy is used to choose a proper disk for loading tsfile.
 +# The info of the two strategies are as follows:
 +# 1. MIN_IO_FIRST: the system will try to choose the same disk as tsFileToLoad for loading.
 +# 2. INHERIT_SYSTEM_MULTI_DISKS_SELECT_STRATEGY: the system will choose one disk according to dn_multi_dir_strategy.
 +# If this property is unset, system will use MIN_IO_FIRST as default strategy.
 +# effectiveMode: restart
 +# Datatype: String
 +load_disk_select_strategy=MIN_IO_FIRST
 +
 +# load_disk_select_strategy_for_pipe_and_iotv2
 +# The strategy is used to choose a proper disk for loading tsfile.
 +# The info of the three strategies are as follows:
 +# 1. MIN_IO_FIRST: the system will try to choose the same disk as tsFileToLoad for loading.
 +# 2. INHERIT_SYSTEM_MULTI_DISKS_SELECT_STRATEGY: the system will choose one disk according to dn_multi_dir_strategy.
 +# 3. INHERIT_LOAD: the system will use the same strategy as load_disk_select_strategy.
 +# If this property is unset, system will use INHERIT_LOAD as default strategy.
 +# effectiveMode: restart
 +# Datatype: String
 +load_disk_select_strategy_for_pipe_and_iotv2=INHERIT_LOAD
 +
 +# consensus dir
 +# If this property is unset, system will save the data in the default relative path directory under the IoTDB folder(i.e., %IOTDB_HOME%/data/datanode).
 +# If it is absolute, system will save the data in the exact location it points to.
 +# If it is relative, system will save the data in the relative path directory it indicates under the IoTDB folder.
 +# Note: If consensus_dir is assigned an empty string(i.e.,zero-size), it will be handled as a relative path.
 +# effectiveMode: restart
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
 +# dn_consensus_dir=data\\datanode\\consensus
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +dn_consensus_dir=data/datanode/consensus
 +
 +# wal dirs
 +# If this property is unset, system will save the data in the default relative path directory under the IoTDB folder(i.e., %IOTDB_HOME%/data/datanode).
 +# If it is absolute, system will save the data in the exact location it points to.
 +# If it is relative, system will save the data in the relative path directory it indicates under the IoTDB folder.
 +# If there are more than one directory, please separate them by commas ",".
 +# Note: If wal_dirs is assigned an empty string(i.e.,zero-size), it will be handled as a relative path.
 +# effectiveMode: restart
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
 +# dn_wal_dirs=data\\datanode\\wal
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +dn_wal_dirs=data/datanode/wal
 +
 +# tracing dir
 +# Uncomment following fields to configure the tracing root directory.
 +# effectiveMode: restart
 +# For Windows platform, the index is as follows:
 +# dn_tracing_dir=datanode\\tracing
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +dn_tracing_dir=datanode/tracing
 +
 +# sync dir
 +# If this property is unset, system will save the data in the default relative path directory under the IoTDB folder(i.e., %IOTDB_HOME%/data/datanode).
 +# If it is absolute, system will save the data in the exact location it points to.
 +# If it is relative, system will save the data in the relative path directory it indicates under the IoTDB folder.
 +# Note: If sync_dir is assigned an empty string(i.e.,zero-size), it will be handled as a relative path.
 +# effectiveMode: restart
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
 +# dn_sync_dir=data\\datanode\\sync
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +dn_sync_dir=data/datanode/sync
 +
 +# sort_tmp_dir
 +# This property is used to configure the temporary directory for sorting operation.
 +# If this property is unset, system will save the data in the default relative path directory under the IoTDB folder(i.e., %IOTDB_HOME%/data/datanode).
 +# If it is absolute, system will save the data in the exact location it points to.
 +# If it is relative, system will save the data in the relative path directory it indicates under the IoTDB folder.
 +# Note: If sort_tmp_dir is assigned an empty string(i.e.,zero-size), it will be handled as a relative path.
 +# effectiveMode: restart
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
 +# sort_tmp_dir=data\\datanode\\tmp
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +sort_tmp_dir=data/datanode/tmp
 +
 +# dn_pipe_receiver_file_dirs
 +# If this property is unset, system will save the data in the default relative path directory under the IoTDB folder(i.e., %IOTDB_HOME%/${dn_system_dir}/pipe/receiver).
 +# If it is absolute, system will save the data in the exact location it points to.
 +# If it is relative, system will save the data in the relative path directory it indicates under the IoTDB folder.
 +# If there are more than one directory, please separate them by commas ",".
 +# Note: If dn_pipe_receiver_file_dirs is assigned an empty string(i.e.,zero-size), it will be handled as a relative path.
 +# effectiveMode: restart
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
 +# dn_pipe_receiver_file_dirs=data\\datanode\\system\\pipe\\receiver
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +dn_pipe_receiver_file_dirs=data/datanode/system/pipe/receiver
 +
 +# iot_consensus_v2_receiver_file_dirs
 +# If this property is unset, system will save the data in the default relative path directory under the IoTDB folder(i.e., %IOTDB_HOME%/${dn_system_dir}/pipe/consensus/receiver).
 +# If it is absolute, system will save the data in the exact location it points to.
 +# If it is relative, system will save the data in the relative path directory it indicates under the IoTDB folder.
 +# If there are more than one directory, please separate them by commas ",".
 +# Note: If iot_consensus_v2_receiver_file_dirs is assigned an empty string(i.e.,zero-size), it will be handled as a relative path.
 +# effectiveMode: restart
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
 +# iot_consensus_v2_receiver_file_dirs=data\\datanode\\system\\pipe\\consensus\\receiver
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +iot_consensus_v2_receiver_file_dirs=data/datanode/system/pipe/consensus/receiver
 +
 +# iot_consensus_v2_deletion_file_dir
 +# If this property is unset, system will save the data in the default relative path directory under the IoTDB folder(i.e., %IOTDB_HOME%/${dn_system_dir}/pipe/consensus/deletion).
 +# If it is absolute, system will save the data in the exact location it points to.
 +# If it is relative, system will save the data in the relative path directory it indicates under the IoTDB folder.
 +# Note: If iot_consensus_v2_deletion_file_dir is assigned an empty string(i.e.,zero-size), it will be handled as a relative path.
 +# effectiveMode: restart
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
 +# iot_consensus_v2_deletion_file_dir=data\\datanode\\system\\pipe\\consensus\\deletion
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +iot_consensus_v2_deletion_file_dir=data/datanode/system/pipe/consensus/deletion
 +
 +####################
 +### Metric Configuration
 +####################
 +
 +# The base64 encoded username for the prometheus port of both the ConfigNode and the DataNode.
 +# If left unset, the prometheus port can be accessed without authentication.
 +# effectiveMode: restart
 +# Datatype: String
 +metric_prometheus_reporter_username=
 +
 +# The base64 encoded password for the prometheus port of both the ConfigNode and the DataNode.
 +# effectiveMode: restart
 +# Datatype: String
 +metric_prometheus_reporter_password=
 +
 +# The reporters of metric module to report metrics
 +# If there are more than one reporter, please separate them by commas ",".
 +# Options: [JMX, PROMETHEUS]
 +# effectiveMode: restart
 +# Datatype: String
 +cn_metric_reporter_list=
 +
 +# The level of metric module
 +# Options: [OFF, CORE, IMPORTANT, NORMAL, ALL]
 +# effectiveMode: restart
 +# Datatype: String
 +cn_metric_level=IMPORTANT
 +
 +# The period of async collection of some metrics in second
 +# effectiveMode: restart
 +# Datatype: int
 +cn_metric_async_collect_period=5
 +
 +# The port of prometheus reporter of metric module
 +# effectiveMode: restart
 +# Datatype: int
 +cn_metric_prometheus_reporter_port=9091
 +
 +# The reporters of metric module to report metrics
 +# If there are more than one reporter, please separate them by commas ",".
 +# Options: [JMX, PROMETHEUS]
 +# effectiveMode: restart
 +# Datatype: String
 +dn_metric_reporter_list=
 +
 +# The level of metric module
 +# Options: [OFF, CORE, IMPORTANT, NORMAL, ALL]
 +# effectiveMode: restart
 +# Datatype: String
 +dn_metric_level=IMPORTANT
 +
 +# The period of async collection of some metrics in second
 +# effectiveMode: restart
 +# Datatype: int
 +dn_metric_async_collect_period=5
 +
 +# The port of prometheus reporter of metric module
 +# effectiveMode: restart
 +# Datatype: int
 +dn_metric_prometheus_reporter_port=9092
 +
 +# The type of internal reporter in metric module, used for checking flushed point number
 +# Options: [MEMORY, IOTDB]
 +# effectiveMode: restart
 +# Datatype: String
 +dn_metric_internal_reporter_type=MEMORY
 +
 +####################
 +### SSL Configuration
 +####################
 +
 +# Whether enable SSL for thrift client connections
 +# effectiveMode: restart
 +# Datatype: boolean
 +# Privilege: SECURITY
 +enable_thrift_ssl=false
 +
++# Whether client authentication is required for Thrift SSL connections.
++# This only takes effect when enable_thrift_ssl=true.
++# effectiveMode: restart
++# Datatype: boolean
++# Privilege: SECURITY
++thrift_ssl_client_auth=false
++
 +# Whether enable SSL for Rest Service
 +# effectiveMode: restart
 +# Datatype: boolean
 +# Privilege: SECURITY
 +enable_https=false
 +
 +# SSL key store path
 +# linux e.g. /home/iotdb/server.keystore (absolute path) or server.keystore (relative path)
 +# windows e.g. C:\\iotdb\\server.keystore (absolute path) or server.keystore (relative path)
 +# effectiveMode: restart
 +# Privilege: SECURITY
 +key_store_path=
 +
 +# SSL key store password
 +# effectiveMode: restart
 +# Datatype: String
 +# Privilege: SECURITY
 +key_store_pwd=
 +
 +# SSL trust store path
 +# linux e.g. /home/iotdb/server.truststore (absolute path) or server.truststore (relative path)
 +# windows e.g. C:\\iotdb\\server.truststore (absolute path) or server.truststore (relative path)
 +# effectiveMode: restart
 +trust_store_path=
 +
 +# SSL trust store password
 +# effectiveMode: restart
 +# Datatype: String
 +trust_store_pwd=
 +
++# SSL protocol used by server-side SSL services.
++# The protocol is passed to the current JSSE provider, such as TLS, TLSv1.2,
++# TLSv1.3, or another provider-specific SSL protocol name.
++# effectiveMode: restart
++# Datatype: String
++# Privilege: SECURITY
++ssl_protocol=TLS
++
 +####################
 +### Connection Configuration
 +####################
 +
 +# this feature is under development, set this as false before it is done.
 +# effectiveMode: restart
 +# Datatype: boolean
 +cn_rpc_thrift_compression_enable=false
 +
 +# The maximum number of concurrent clients that can be connected to the configNode.
 +# effectiveMode: restart
 +# Datatype: int
 +cn_rpc_max_concurrent_client_num=3000
 +
 +# Thrift socket and connection timeout between raft nodes, in milliseconds.
 +# effectiveMode: restart
 +# Datatype: int
 +cn_connection_timeout_ms=60000
 +
 +# selector thread (TAsyncClientManager) nums for async thread in a clientManager
 +# When <= 0, use max(1, CPU core number / 4).
 +# effectiveMode: restart
 +# Datatype: int
 +cn_selector_thread_nums_of_client_manager=0
 +
 +# The maximum number of clients that can be allocated for a node in a clientManager.
 +# when the number of the client to a single node exceeds this number, the thread for applying for a client will be blocked
 +# for a while, then ClientManager will throw ClientManagerException if there are no clients after the block time.
 +# effectiveMode: restart
 +# Datatype: int
 +cn_max_client_count_for_each_node_in_client_manager=1000
 +
 +# The maximum number of idle clients that can be retained for a node in a clientManager.
 +# When the number of idle clients to a single node exceeds this number, excess idle clients will be evicted.
 +# Idle clients are determined by a time threshold (default 1 minute of inactivity).
 +# 0 means no idle clients will be retained, connections are destroyed immediately upon return.
 +# effectiveMode: restart
 +# Datatype: int
- # cn_max_idle_client_count_for_each_node_in_client_manager=1000
++cn_max_idle_client_count_for_each_node_in_client_manager=1000
 +
 +# The maximum session idle time. unit: ms
 +# Idle sessions are the ones that performs neither query or non-query operations for a period of time
 +# Set to 0 to disable session timeout
 +# effectiveMode: first_start
 +# Datatype: int
 +dn_session_timeout_threshold=0
 +
 +# whether enable thrift compression
 +# effectiveMode: restart
 +# Datatype: boolean
 +dn_rpc_thrift_compression_enable=false
 +
 +# if true, a snappy based compression method will be called before sending data by the network
 +# effectiveMode: restart
 +# Datatype: boolean
 +# this feature is under development, set this as false before it is done.
 +dn_rpc_advanced_compression_enable=false
 +
 +# The maximum number of concurrent clients that can be connected to the dataNode.
 +# effectiveMode: restart
 +# Datatype: int
 +dn_rpc_max_concurrent_client_num=1000
 +
 +# thrift max frame size in bytes. When set to 0, use min(64MB, datanode heap memory / 64)
 +# effectiveMode: restart
 +# Datatype: int
 +dn_thrift_max_frame_size=0
 +
 +# thrift init buffer size
 +# effectiveMode: restart
 +# Datatype: int
 +dn_thrift_init_buffer_size=1024
 +
 +# Thrift socket and connection timeout between raft nodes, in milliseconds.
 +# effectiveMode: restart
 +# Datatype: int
 +dn_connection_timeout_ms=60000
 +
 +# selector thread (TAsyncClientManager) nums for async thread in a clientManager
 +# When <= 0, use max(1, CPU core number / 4).
 +# effectiveMode: restart
 +# Datatype: int
 +dn_selector_thread_nums_of_client_manager=0
 +
 +# The maximum number of clients that can be allocated for a node in a clientManager.
 +# When the number of the client to a single node exceeds this number, the thread for applying for a client will be blocked
 +# for a while, then ClientManager will throw ClientManagerException if there are no clients after the block time.
 +# effectiveMode: restart
 +# Datatype: int
 +dn_max_client_count_for_each_node_in_client_manager=1000
 +
 +# The maximum number of idle clients that can be retained for a node in a clientManager.
 +# When the number of idle clients to a single node exceeds this number, excess idle clients will be evicted.
 +# Idle clients are determined by a time threshold (default 1 minute of inactivity).
 +# 0 means no idle clients will be retained, connections are destroyed immediately upon return.
 +# effectiveMode: restart
 +# Datatype: int
- # dn_max_idle_client_count_for_each_node_in_client_manager=1000
++dn_max_idle_client_count_for_each_node_in_client_manager=1000
 +
 +####################
 +### REST Service Configuration
 +####################
 +
 +# Is the REST service enabled
 +# effectiveMode: restart
 +# Datatype: boolean
 +enable_rest_service=false
 +
 +# the binding port of the REST service
 +# effectiveMode: restart
 +# Datatype: int
 +rest_service_port=18080
 +
- # Whether to display rest service interface information through swagger. eg: http://ip:port/swagger.json
++# Whether to display rest service interface information through OpenAPI. eg: http://ip:port/openapi.json
 +# effectiveMode: restart
 +# Datatype: boolean
 +enable_swagger=false
 +
 +# the default row limit to a REST query response when the rowSize parameter is not given in request
 +# effectiveMode: restart
 +# Datatype: int
 +rest_query_default_row_size_limit=10000
 +
 +# Is client authentication required
 +# effectiveMode: restart
 +# Datatype: boolean
 +client_auth=false
 +
 +# SSL timeout (in seconds)
 +# effectiveMode: restart
 +# Datatype: int
 +idle_timeout_in_seconds=50000
 +
 +####################
 +### Load balancing configuration
 +####################
 +
 +# All parameters in Partition configuration is unmodifiable after ConfigNode starts for the first time.
 +# And these parameters should be consistent within the ConfigNodeGroup.
 +# Number of SeriesPartitionSlots per Database
 +# effectiveMode: first_start
 +# Datatype: Integer
 +series_slot_num=1000
 +
 +# SeriesPartitionSlot executor class
 +# These hashing algorithms are currently supported:
 +# 1. BKDRHashExecutor(Default)
 +# 2. APHashExecutor
 +# 3. JSHashExecutor
 +# 4. SDBMHashExecutor
 +# Also, if you want to implement your own SeriesPartition executor, you can inherit the SeriesPartitionExecutor class and
 +# modify this parameter to correspond to your Java class
 +# effectiveMode: first_start
 +# Datatype: String
 +series_partition_executor_class=org.apache.iotdb.commons.partition.executor.hash.BKDRHashExecutor
 +
 +# The policy of extension SchemaRegionGroup for each Database.
 +# These policies are currently supported:
 +# 1. CUSTOM(Each Database will allocate schema_region_group_per_database RegionGroups as soon as created)
 +# 2. AUTO(Each Database will automatically extend SchemaRegionGroups based on the data it has)
- # effectiveMode: restart
++# effectiveMode: hot_reload
 +# Datatype: String
 +schema_region_group_extension_policy=AUTO
 +
 +# When set schema_region_group_extension_policy=CUSTOM,
 +# this parameter is the default number of SchemaRegionGroups for each Database.
 +# When set schema_region_group_extension_policy=AUTO,
 +# this parameter is the default minimal number of SchemaRegionGroups for each Database.
- # effectiveMode: restart
++# effectiveMode: hot_reload
 +# Datatype: Integer
 +default_schema_region_group_num_per_database=1
 +
 +# Only take effect when set schema_region_group_extension_policy=AUTO.
 +# This parameter is the maximum number of SchemaRegions expected to be managed by each DataNode.
 +# Notice: Since each Database requires at least one SchemaRegionGroup to manage its schema,
 +# this parameter doesn't limit the upper bound of cluster SchemaRegions when there are too many Databases.
- # effectiveMode: restart
++# effectiveMode: hot_reload
 +# Datatype: Integer
 +schema_region_per_data_node=1
 +
 +# The policy of extension DataRegionGroup for each Database.
 +# These policies are currently supported:
 +# 1. CUSTOM(Each Database will allocate data_region_group_per_database DataRegionGroups as soon as created)
 +# 2. AUTO(Each Database will automatically extend DataRegionGroups based on the data it has)
- # effectiveMode: restart
++# effectiveMode: hot_reload
 +# Datatype: String
 +data_region_group_extension_policy=AUTO
 +
 +# When set data_region_group_extension_policy=CUSTOM,
 +# this parameter is the default number of DataRegionGroups for each Database.
 +# When set data_region_group_extension_policy=AUTO,
 +# this parameter is the default minimal number of DataRegionGroups for each Database.
- # effectiveMode: restart
++# effectiveMode: hot_reload
 +# Datatype: Integer
 +default_data_region_group_num_per_database=2
 +
 +# Only take effect when set data_region_group_extension_policy=AUTO.
 +# This parameter is the maximum number of DataRegions expected to be managed by each DataNode.
 +# Set to 0 means that each node automatically has the number of CPU cores / 2 regions
 +# Notice: Since each Database requires at least two DataRegionGroups to manage its data,
 +# this parameter doesn't limit the upper bound of cluster DataRegions when there are too many Databases.
- # effectiveMode: restart
++# effectiveMode: hot_reload
 +# Datatype: Integer
 +data_region_per_data_node=0
 +
 +# The policy of allocating new RegionGroup replicas to DataNodes.
 +# These policies are currently supported:
 +# 1. GREEDY (Each replica is placed on the DataNode that currently holds the fewest regions; database-aware tie-break)
 +# 2. GCR (Greedy + CopySet; balances cluster regions, per-database regions, and 2-region scatter)
 +# 3. PGP (Partite-Graph Placement; based on the PGP paper, with database-aware balance)
 +# effectiveMode: restart
 +# Datatype: String
- # region_group_allocate_policy=GCR
++region_group_allocate_policy=GCR
 +
 +# Whether to enable auto leader balance for Ratis consensus protocol.
 +# The ConfigNode-leader will balance the leader of Ratis-RegionGroups by leader_distribution_policy if set true.
 +# Notice: Default is false because the Ratis is unstable for this function.
 +# effectiveMode: restart
 +# Datatype: Boolean
 +enable_auto_leader_balance_for_ratis_consensus=true
 +
- # Whether to enable auto leader balance for IoTConsensus protocol.
- # The ConfigNode-leader will balance the leader of IoTConsensus-RegionGroups by leader_distribution_policy if set true.
- # Notice: Default is true because the IoTConsensus depends on this function to distribute leader.
- # effectiveMode: restart
- # Datatype: Boolean
- enable_auto_leader_balance_for_iot_consensus=true
- 
 +####################
 +### Cluster management
 +####################
 +
 +# Time partition origin in milliseconds, default is equal to zero.
 +# This origin is set by default to the beginning of Unix time, which is January 1, 1970, at 00:00 UTC (Coordinated Universal Time).
 +# This point is known as the Unix epoch, and its timestamp is 0.
 +# If you want to specify a different time partition origin, you can set this value to a specific Unix timestamp in milliseconds.
 +# effectiveMode: first_start
 +# Datatype: long
 +time_partition_origin=0
 +
 +# Time partition interval in milliseconds, and partitioning data inside each data region, default is equal to one week
 +# effectiveMode: first_start
 +# Datatype: long
 +time_partition_interval=604800000
 +
 +# The heartbeat interval in milliseconds, default is 1000ms
- # effectiveMode: restart
++# effectiveMode: hot_reload
 +# Datatype: long
 +heartbeat_interval_in_ms=1000
 +
 +# Default failure detector, enum from {fixed, phi_accrual}
 +# effectiveMode: restart
 +# Datatype: string
 +failure_detector=phi_accrual
 +
 +# Fixed failure detector threshold of time elapsed without receiving heartbeat replies
 +# effectiveMode: restart
 +# Datatype: long
 +failure_detector_fixed_threshold_in_ms=20000
 +
 +# Phi accrual: threshold to determine a node is down
 +# effectiveMode: restart
 +# Datatype: long
 +failure_detector_phi_threshold=30
 +
 +# Phi accrual: acceptable heartbeat pause time (due to JVM GC, etc)
 +# effectiveMode: restart
 +# Datatype: long
 +failure_detector_phi_acceptable_pause_in_ms=10000
 +
++# A DataNode self-fences its ConfigNode-pushed metadata caches (table/tree schema, templates, TTL,
++# permissions, ...) if it has not received a ConfigNode heartbeat within this duration, so a
++# partitioned DataNode stops trusting stale caches. Kept aligned with
++# failure_detector_fixed_threshold_in_ms so a DataNode fences itself around the same time the
++# cluster would consider it down. The ConfigNode also uses this to decide how long it must wait
++# before treating an unreachable DataNode as safely fenced.
++# effectiveMode: restart
++# Datatype: long
++metadata_lease_fence_ms=20000
++
 +# Whether to enable topology probing between DataNodes
 +# effectiveMode: hot_reload
 +# Datatype: Boolean
- # enable_topology_probing=false
++enable_topology_probing=false
 +
 +# Base interval in ms for topology probing between DataNodes
 +# effectiveMode: restart
 +# Datatype: long
- # topology_probing_base_interval_in_ms=5000
++topology_probing_base_interval_in_ms=5000
 +
 +# Ratio of probing timeout to probing interval (must be less than 1.0)
 +# effectiveMode: restart
 +# Datatype: double
- # topology_probing_timeout_ratio=0.5
++topology_probing_timeout_ratio=0.5
 +
 +# Disk remaining threshold at which DataNode is set to ReadOnly status
 +# effectiveMode: restart
 +# Datatype: double(percentage)
 +disk_space_warning_threshold=0.05
 +
++# The refresh interval in milliseconds for the occupied-space cache used by
++# MinFolderOccupiedSpaceFirstStrategy. The default is 60000 (60 seconds).
++# effectiveMode: restart
++# Datatype: long
++min_folder_occupied_space_cache_refresh_interval_ms=60000
++
++# The number of folder selections after which MinFolderOccupiedSpaceFirstStrategy refreshes its
++# occupied-space cache. The default is 1000.
++# effectiveMode: restart
++# Datatype: int
++min_folder_occupied_space_cache_refresh_selection_threshold=1000
++
 +# Purpose: for data partition repair
 +# The number of threads used for parallel scanning in the partition table recovery
 +# effectiveMode: restart
 +# Datatype: Integer
 +partition_table_recover_worker_num=10
 +
 +# Purpose: for data partition repair
 +# Limit the number of bytes read per second from a file, the unit is MB
 +# effectiveMode: restart
 +# Datatype: Integer
 +partition_table_recover_max_read_megabytes_per_second=10
 +
 +####################
 +### Memory Control Configuration
 +####################
 +
 +# Memory Allocation Ratio: StorageEngine, QueryEngine, SchemaEngine, Consensus, StreamingEngine and Free Memory.
 +# The parameter form is a:b:c:d:e:f, where a, b, c, d, e and f are integers. for example: 1:1:1:1:1:1 , 6:2:1:1:1:1
 +# If you have high level of writing pressure and low level of reading pressure, please adjust it to for example 6:1:1:1:1:1
++# 50% of Free Memory is used by AutoResizingBuffer memory control.
 +# effectiveMode: restart
 +datanode_memory_proportion=3:3:1:1:1:1
 +
++# ConfigNode Memory Allocation Ratio: Pipe and Free Memory.
++# The parameter form is a:b, where a and b are integers. Currently, only PipePeriodicalLogReducer is connected to Pipe memory on ConfigNode.
++# effectiveMode: restart
++confignode_memory_proportion=1:9
++
 +# Schema Memory Allocation Ratio: SchemaRegion, SchemaCache, and PartitionCache.
 +# The parameter form is a:b:c, where a, b and c are integers. for example: 1:1:1 , 6:2:1
 +# effectiveMode: restart
 +schema_memory_proportion=5:4:1
 +
 +# Memory allocation ratio in StorageEngine: Write, Compaction
 +# The parameter form is a:b:c:d, where a, b, c and d are integers. for example: 8:2 , 7:3
 +# effectiveMode: restart
 +storage_engine_memory_proportion=8:2
 +
 +# Memory allocation ratio in writing: Memtable, TimePartitionInfo
 +# Memtable is the total memory size of all memtables
 +# TimePartitionInfo is the total memory size of last flush time of all data regions
 +# effectiveMode: restart
 +write_memory_proportion=19:1
 +
 +# primitive array size (length of each array) in array pool
 +# effectiveMode: restart
 +# Datatype: int
 +primitive_array_size=64
 +
 +# Ratio of compaction memory for chunk metadata maintains in memory when doing compaction
 +# effectiveMode: restart
 +# Datatype: double
 +chunk_metadata_size_proportion=0.1
 +
 +# Ratio of memtable memory for invoking flush disk, 0.4 by default
 +# If you have extremely high write load (like batch=1000), it can be set lower than the default value like 0.2
 +# effectiveMode: restart
 +# Datatype: double
 +flush_proportion=0.4
 +
 +# Ratio of memtable memory allocated for buffered arrays, 0.6 by default
 +# effectiveMode: restart
 +# Datatype: double
 +buffered_arrays_memory_proportion=0.6
 +
 +# Ratio of memtable memory for rejecting insertion, 0.8 by default
 +# If you have extremely high write load (like batch=1000) and the physical memory size is large enough,
 +# it can be set higher than the default value like 0.9
 +# effectiveMode: restart
 +# Datatype: double
 +reject_proportion=0.8
 +
 +# Ratio of memtable memory for controlling the max memory size of WAL buffer queues, 0.1 by default
 +# effectiveMode: restart
 +# Datatype: double
 +wal_buffer_queue_proportion=0.1
 +
 +# Ratio of memtable memory for the DevicePathCache. DevicePathCache is the deviceId cache, keep only one copy of the same deviceId in memory
 +# effectiveMode: restart
 +# Datatype: double
 +device_path_cache_proportion=0.05
 +
 +# If memory cost of data region increased more than proportion of allocated memory for write, report to system. The default value is 0.001
 +# effectiveMode: restart
 +# Datatype: double
 +write_memory_variation_report_proportion=0.001
 +
 +# The maximum memory size in bytes for DataNode to table schema cache
 +# effectiveMode: restart
 +# Datatype: long
 +data_node_table_schema_cache_max_size_in_bytes=1048576
 +
 +# When an inserting is rejected, waiting period (in ms) to check system again, 50 by default.
 +# If the insertion has been rejected and the read load is low, it can be set larger.
 +# effectiveMode: restart
 +# Datatype: int
 +check_period_when_insert_blocked=50
 +
 +# size of ioTaskQueue. The default value is 10
 +# effectiveMode: restart
 +# Datatype: int
 +io_task_queue_size_for_flushing=10
 +
 +# If true, we will estimate each query's possible memory footprint before executing it and deny it if its estimated memory exceeds current free memory
 +# effectiveMode: hot_reload
 +# Datatype: bool
 +enable_query_memory_estimation=true
 +
 +# max sub task num on a DataNode for InformationTableScan
 +# effectiveMode: hot_reload
 +# Datatype: int
 +max_sub_task_num_for_information_table_scan=4
 +
 +####################
 +### Schema Engine Configuration
 +####################
 +
 +# The schema management mode of schema engine. Currently, support Memory and PBTree.
 +# This config of all DataNodes in one cluster must keep same.
 +# effectiveMode: first_start
 +# Datatype: string
 +schema_engine_mode=Memory
 +
 +# cache size for partition.
 +# This cache is used to improve partition fetch from config node.
 +# effectiveMode: restart
 +# Datatype: int
 +partition_cache_size=1000
 +
 +# The cycle when metadata log is periodically forced to be written to disk(in milliseconds)
 +# If sync_mlog_period_in_ms=0 it means force metadata log to be written to disk after each refreshment
 +# Set this parameter to 0 may slow down the operation on slow disk.
 +# effectiveMode: restart
 +# Datatype: int
 +sync_mlog_period_in_ms=100
 +
 +# interval num for tag and attribute records when force flushing to disk
 +# When a certain amount of tag and attribute records is reached, they will be force flushed to disk
 +# It is possible to lose at most tag_attribute_flush_interval records
 +# effectiveMode: first_start
 +# Datatype: int
 +tag_attribute_flush_interval=1000
 +
 +# max size for a storage block for tags and attributes of one time series. If the combined size of tags and
 +# attributes exceeds the tag_attribute_total_size, a new storage block will be allocated to continue storing
 +# the excess data.
 +# the unit is byte
 +# effectiveMode: first_start
 +# Datatype: int
 +tag_attribute_total_size=700
 +
++# The maximum number of single measurement check results cached by PathUtils.
++# Set to 0 to disable this cache.
++# effectiveMode: restart
++# Datatype: int
++single_measurement_check_cache_size=10000
++
 +# max measurement num of internal request
 +# When creating timeseries with Session.createMultiTimeseries, the user input plan, the timeseries num of
 +# which exceeds this num, will be split to several plans with timeseries no more than this num.
 +# effectiveMode: restart
 +# Datatype: int
 +max_measurement_num_of_internal_request=10000
 +
 +# Policy of DataNodeSchemaCache eviction.
 +# Support FIFO and LRU policy. FIFO takes low cache update overhead. LRU takes high cache hit rate.
 +# effectiveMode: restart
 +# Datatype: int
 +datanode_schema_cache_eviction_policy=FIFO
 +
 +# This configuration parameter sets the maximum number of time series allowed in the cluster.
 +# The value should be a positive integer representing the desired threshold.
 +# When the threshold is reached, users will be prohibited from creating new time series.
 +# -1 means unlimited
 +# effectiveMode: restart
 +# Datatype: int
 +cluster_timeseries_limit_threshold=-1
 +
 +# This configuration parameter sets the maximum number of device allowed in the cluster.
 +# The value should be a positive integer representing the desired threshold.
 +# When the threshold is reached, users will be prohibited from creating new time series.
 +# -1 means unlimited
 +# effectiveMode: restart
 +# Datatype: int
 +cluster_device_limit_threshold=-1
 +
 +# This configuration parameter sets the maximum number of Cluster Databases allowed.
 +# The value should be a positive integer representing the desired threshold.
 +# When the threshold is reached, users will be prohibited from creating new databases.
 +# -1 means unlimited.
 +# effectiveMode: restart
 +# Datatype: int
 +database_limit_threshold = -1
 +
 +
 +
 +####################
 +### Configurations for creating schema automatically
 +####################
 +
 +# Whether creating schema automatically is enabled
 +# If true, then create database and timeseries automatically when not exists in insertion
 +# Or else, user need to create database and timeseries before insertion.
 +# effectiveMode: hot_reload
 +# Datatype: boolean
 +enable_auto_create_schema=true
 +
 +# Database level when creating schema automatically is enabled
 +# e.g. root.sg0.d1.s2
 +#      we will set root.sg0 as the database if database level is 1
 +# If the incoming path is shorter than this value, the creation/insertion will fail.
 +# effectiveMode: hot_reload
 +# Datatype: int
 +# Range: [1, Integer.MAX_VALUE]
 +# Default: 1
 +# When illegal: report an error and change nothing during hot-reload; use the default value in
 +# start-up
 +default_database_level=1
 +
 +# ALL data types: BOOLEAN, INT32, INT64, FLOAT, DOUBLE, TEXT
 +
 +# register time series as which type when receiving boolean string "true" or "false"
 +# effectiveMode: hot_reload
 +# Datatype: TSDataType
 +# Options: BOOLEAN, TEXT
 +boolean_string_infer_type=BOOLEAN
 +
 +# register time series as which type when receiving an integer string and using float or double may lose precision
 +# effectiveMode: hot_reload
 +# Datatype: TSDataType
 +# Options: DOUBLE, FLOAT, INT32, INT64, TEXT
 +integer_string_infer_type=DOUBLE
 +
 +# register time series as which type when receiving a floating number string "6.7"
 +# effectiveMode: hot_reload
 +# Datatype: TSDataType
 +# Options: DOUBLE, FLOAT, TEXT
 +floating_string_infer_type=DOUBLE
 +
 +# register time series as which type when receiving the Literal NaN.
 +# effectiveMode: hot_reload
 +# Datatype: TSDataType
 +# Options: DOUBLE, FLOAT, TEXT
 +nan_string_infer_type=DOUBLE
 +
 +# BOOLEAN encoding when creating schema automatically is enabled
 +# effectiveMode: hot_reload
 +# Datatype: TSEncoding
 +default_boolean_encoding=RLE
 +
 +# INT32 encoding when creating schema automatically is enabled
 +# effectiveMode: hot_reload
 +# Datatype: TSEncoding
 +default_int32_encoding=TS_2DIFF
 +
 +# INT64 encoding when creating schema automatically is enabled
 +# effectiveMode: hot_reload
 +# Datatype: TSEncoding
 +default_int64_encoding=TS_2DIFF
 +
 +# FLOAT encoding when creating schema automatically is enabled
 +# effectiveMode: hot_reload
 +# Datatype: TSEncoding
 +default_float_encoding=GORILLA
 +
 +# DOUBLE encoding when creating schema automatically is enabled
 +# effectiveMode: hot_reload
 +# Datatype: TSEncoding
 +default_double_encoding=GORILLA
 +
 +# TEXT encoding when creating schema automatically is enabled
 +# effectiveMode: hot_reload
 +# Datatype: TSEncoding
 +default_text_encoding=PLAIN
 +
 +# BOOLEAN compression when creating schema automatically is enabled
 +# effectiveMode: hot_reload
 +# Datatype: TSEncoding
 +boolean_compressor=LZ4
 +
 +# INT32/DATE compression when creating schema automatically is enabled
 +# effectiveMode: hot_reload
 +# Datatype: TSEncoding
 +int32_compressor=LZ4
 +
 +# INT64/TIMESTAMP compression when creating schema automatically is enabled
 +# effectiveMode: hot_reload
 +# Datatype: TSEncoding
 +int64_compressor=LZ4
 +
 +# FLOAT compression when creating schema automatically is enabled
 +# effectiveMode: hot_reload
 +# Datatype: TSEncoding
 +float_compressor=LZ4
 +
 +# DOUBLE compression when creating schema automatically is enabled
 +# effectiveMode: hot_reload
 +# Datatype: TSEncoding
 +double_compressor=LZ4
 +
 +# TEXT/BINARY/BLOB compression when creating schema automatically is enabled
 +# effectiveMode: hot_reload
 +# Datatype: TSEncoding
 +text_compressor=LZ4
 +
 +####################
 +### Query Configurations
 +####################
 +
 +# The read consistency level
 +# These consistency levels are currently supported:
 +# 1. strong(Default, read from the leader replica)
 +# 2. weak(Read from a random replica)
- # effectiveMode: restart
++# effectiveMode: hot_reload
 +# Datatype: string
 +read_consistency_level=strong
 +
 +# Whether to cache meta data(BloomFilter, ChunkMetadata and TimeSeriesMetadata) or not.
 +# effectiveMode: restart
 +# Datatype: boolean
 +meta_data_cache_enable=true
 +
++# Whether to cache a placeholder for non-exist series.
++# effectiveMode: restart
++# Datatype: boolean
++may_cache_nonexist_series=true
++
 +# Read memory Allocation Ratio: BloomFilterCache : ChunkCache : TimeSeriesMetadataCache : Coordinator : Operators : DataExchange : timeIndex in TsFileResourceList : others.
 +# The parameter form is a:b:c:d:e:f:g:h, where a, b, c, d, e, f, g and h are integers. for example: 1:1:1:1:1:1:1:1 , 1:100:200:50:200:200:200:50
 +# effectiveMode: restart
 +chunk_timeseriesmeta_free_memory_proportion=1:100:200:50:200:200:200:50
 +
 +# Whether to enable LAST cache
 +# effectiveMode: restart
 +# Datatype: boolean
 +enable_last_cache=true
 +
 +# Core size of ThreadPool of MPP data exchange
 +# effectiveMode: restart
 +# Datatype: int
 +mpp_data_exchange_core_pool_size=10
 +
 +# Max size of ThreadPool of MPP data exchange
 +# effectiveMode: restart
 +# Datatype: int
 +mpp_data_exchange_max_pool_size=10
 +
 +# Max waiting time for MPP data exchange
 +# effectiveMode: restart
 +# Datatype: int
 +mpp_data_exchange_keep_alive_time_in_ms=1000
 +
 +# The max execution time of a DriverTask
 +# effectiveMode: restart
 +# Datatype: int, Unit: ms
 +driver_task_execution_time_slice_in_ms=200
 +
 +# The max capacity of a TsBlock
 +# effectiveMode: hot_reload
 +# Datatype: int, Unit: byte
 +max_tsblock_size_in_bytes=131072
 +
 +# The max number of lines in a single TsBlock
 +# effectiveMode: hot_reload
 +# Datatype: int
 +max_tsblock_line_number=1000
 +
 +# Time cost(ms) threshold for slow query
 +# effectiveMode: hot_reload
 +# Datatype: long
 +slow_query_threshold=10000
 +
 +# Time window threshold(min) for record of history queries.
 +# effectiveMode: hot_reload
 +# Datatype: int
 +# Privilege: SYSTEM
 +query_cost_stat_window=0
 +
 +# The max executing time of query. unit: ms
 +# effectiveMode: restart
 +# Datatype: int
 +query_timeout_threshold=60000
 +
 +# The maximum allowed concurrently executing queries
 +# effectiveMode: restart
 +# Datatype: int
 +max_allowed_concurrent_queries=1000
 +
 +# How many threads can concurrently execute query statement. When <= 0, use CPU core number.
 +# effectiveMode: restart
 +# Datatype: int
 +query_thread_count=0
 +
 +# How many pipeline drivers will be created for one fragment instance. When <= 0, use CPU core number / 2.
 +# effectiveMode: restart
 +# Datatype: int
 +degree_of_query_parallelism=0
 +
 +# The threshold of count map size when calculating the MODE aggregation function
 +# effectiveMode: restart
 +# Datatype: int
 +mode_map_size_threshold=10000
 +
 +# The amount of data iterate each time in server (the number of data strips, that is, the number of different timestamps.)
 +# effectiveMode: restart
 +# Datatype: int
 +batch_size=100000
 +
 +# The memory for external sort in sort operator, when the data size is smaller than sort_buffer_size_in_bytes, the sort operator will use in-memory sort.
 +# if sort_buffer_size_in_bytes <= 0, default value will be used, default value = min(32MB, memory for query operators / query_thread_count / 2)
 +# if sort_buffer_size_in_bytes > 0, the specified value will be used.
 +# effectiveMode: hot_reload
 +# Datatype: long
 +sort_buffer_size_in_bytes=0
 +
 +# The buffer size for CTE materialization. If cte_buffer_size_in_bytes <= 0, a default value of 128 KB is used; otherwise the specified value
 +# will be used.
 +# effectiveMode: hot_reload
 +# Datatype: long
 +# Privilege: SYSTEM
 +# Unit: bytes
 +cte_buffer_size_in_bytes=131072
 +
 +
 +# Max rows for CTE materialization
 +# effectiveMode: hot_reload
 +# Datatype: int
 +# Privilege: SYSTEM
 +max_rows_in_cte_buffer=1000
 +
 +# The maximum mod entries size that each FragmentInstance can cache.
 +# if mods_cache_size_limit_per_fi_in_bytes <= 0, default value will be used, default value = min(32MB, memory for query operators / query_thread_count / 2)
 +# if mods_cache_size_limit_per_fi_in_bytes > 0, the specified value will be used.
 +# effectiveMode: hot_reload
 +# Datatype: long
 +mods_cache_size_limit_per_fi_in_bytes=0
 +
 +# The threshold of operator count in the result set of EXPLAIN ANALYZE, if the number of operator in the result set is larger than this threshold, operator will be merged.
 +# effectiveMode: hot_reload
 +# Datatype: int
 +merge_threshold_of_explain_analyze=10
 +
 +# The limit of query sampling throughput merge can reach per second
 +# 0 means no queries will be recorded
 +# negative number means no limit, all queries will be recorded.
 +# effectiveMode: hot_reload
 +# Datatype: int, Unit: bytes
 +query_sample_throughput_bytes_per_sec=160
 +
 +####################
 +### TTL Configuration
 +####################
 +
 +# The interval of TTL check task in each database. The TTL check task will inspect and select files with a higher volume of expired data for compaction. Default is 2 hours.
 +# Notice: It is not recommended to change it too small, as it will affect the read and write performance of the system.
 +# effectiveMode: restart
 +# Unit: ms
 +# Datatype: int
 +ttl_check_interval=7200000
 +
 +# The maximum expiring time of device which has a ttl. Default is 1 month.
 +# If the data elapsed time (current timestamp minus the maximum data timestamp of the device in the file) of such devices exceeds this value, then the file will be cleaned by compaction.
 +# Notice: It is not recommended to change it too small, as it will affect the read and write performance of the system.
 +# effectiveMode: restart
 +# Unit: ms
 +# Datatype: int
 +max_expired_time=2592000000
 +
 +# The expired device ratio. If the ratio of expired devices in one file exceeds this value, then expired data of this file will be cleaned by compaction.
 +# effectiveMode: restart
 +# Datatype: float
 +expired_data_ratio=0.3
 +
 +####################
 +### Storage Engine Configuration
 +####################
 +
 +# Use this value to set timestamp precision as "ms", "us" or "ns".
 +# Once the precision has been set, it can not be changed.
 +# effectiveMode: first_start
 +# Datatype: String
 +timestamp_precision=ms
 +
 +# When the timestamp precision check is enabled, the timestamps those are over 13 digits for ms precision, or over 16 digits for us precision are not allowed to be inserted.
 +# For all precisions, ms, us and ns, the timestamps cannot exceed the range of [-9223372036854775808, 9223372036854775807], regardless of whether the check is enabled or not.
 +# effectiveMode: hot_reload
 +# Datatype: Boolean
 +timestamp_precision_check_enabled=true
 +
 +# When the waiting time (in ms) of an inserting exceeds this, throw an exception. 10000 by default.
 +# If the insertion has been rejected and the read load is low, it can be set larger
 +# effectiveMode: restart
 +# Datatype: int
 +max_waiting_time_when_insert_blocked=10000
 +
 +# Add a switch to enable separate sequence and unsequence data.
 +# If it is true, then data will be separated into seq and unseq data dir. If it is false, then all data will be written into unseq data dir.
 +# effectiveMode: restart
 +# Datatype: boolean
 +enable_separate_data=true
 +
 +# What will the system do when unrecoverable error occurs.
 +# Datatype: String
 +# Optional strategies are as follows:
 +# 1. CHANGE_TO_READ_ONLY: set system status to read-only and the system only accepts query operations.
 +# 2. SHUTDOWN: the system will be shutdown.
 +# effectiveMode: restart
 +handle_system_error=CHANGE_TO_READ_ONLY
 +
 +# Whether to timed flush sequence tsfiles' memtables.
 +# effectiveMode: hot_reload
 +# Datatype: boolean
 +enable_timed_flush_seq_memtable=true
 +
 +# If a memTable's last update time is older than current time minus this, the memtable will be flushed to disk.
 +# Only check sequence tsfiles' memtables.
 +# The default flush interval is 10 * 60 * 1000. (unit: ms)
 +# effectiveMode: hot_reload
 +# Datatype: long
 +seq_memtable_flush_interval_in_ms=600000
 +
 +# The interval to check whether sequence memtables need flushing.
 +# The default flush check interval is 30 * 1000. (unit: ms)
 +# effectiveMode: hot_reload
 +# Datatype: long
 +seq_memtable_flush_check_interval_in_ms=30000
 +
 +# Whether to timed flush unsequence tsfiles' memtables.
 +# effectiveMode: hot_reload
 +# Datatype: boolean
 +enable_timed_flush_unseq_memtable=true
 +
 +# If a memTable's last update time is older than current time minus this, the memtable will be flushed to disk.
 +# Only check unsequence tsfiles' memtables.
 +# The default flush interval is 10 * 60 * 1000. (unit: ms)
 +# effectiveMode: hot_reload
 +# Datatype: long
 +unseq_memtable_flush_interval_in_ms=600000
 +
 +# The interval to check whether unsequence memtables need flushing.
 +# The default flush check interval is 30 * 1000. (unit: ms)
 +# effectiveMode: hot_reload
 +# Datatype: long
 +unseq_memtable_flush_check_interval_in_ms=30000
 +
 +# Whether to enable delay analyzer for tracking data arrival delays and calculating safe watermarks.
 +# The delay analyzer tracks the delay between data generation time and arrival time to calculate
 +# safe watermarks for handling out-of-order data.
 +# effectiveMode: restart
 +# Datatype: boolean
 +enable_delay_analyzer=true
 +
 +# Default window size for delay analyzer, empirical value: 10000 sample points.
 +# A larger window provides more accurate P99 calculations but increases memory and sorting overhead.
 +# effectiveMode: restart
 +# Datatype: int
 +delay_analyzer_window_size=10000
 +
 +# Minimum window size for delay analyzer validation.
 +# Window size must be between min and max window size.
 +# effectiveMode: restart
 +# Datatype: int
 +delay_analyzer_min_window_size=1000
 +
 +# Maximum window size for delay analyzer validation.
 +# Window size must be between min and max window size.
 +# effectiveMode: restart
 +# Datatype: int
 +delay_analyzer_max_window_size=100000
 +
 +# Default confidence level for delay analyzer: 99% (0.99).
 +# Used for calculating safe watermarks based on delay quantiles.
 +# Range: (0, 1], e.g., 0.99 represents 99% quantile (P99).
 +# effectiveMode: restart
 +# Datatype: double
 +delay_analyzer_confidence_level=0.99
 +
 +# The sort algorithms used in the memtable's TVList
 +# TIM: default tim sort,
 +# QUICK: quick sort,
 +# BACKWARD: backward sort
 +# effectiveMode: restart
 +tvlist_sort_algorithm=TIM
 +
 +# When point number in the working TVList exceeds this, it is sorted and handover in writable memtable
 +# default 0 means it does not handover working tvlist
 +# effectiveMode: hot_reload
 +# Datatype: int
 +tvlist_sort_threshold=0
 +
 +# The target point nums in one chunk in flushing and compaction.
 +# If the point number of a timeseries in memtable exceeds this, the data will be flushed to multiple chunks.
 +# effectiveMode: restart
 +# Datatype: long
 +target_chunk_point_num=100000
 +
 +# The target chunk size in flushing and compaction.
 +# If the size of a timeseries in memtable exceeds this, the data will be flushed to multiple chunks.
 +# default is 1.6MB
 +# effectiveMode: restart
 +# Datatype: long, Unit: byte
 +target_chunk_size=1600000
 +
 +# How many threads can concurrently flush. When <= 0, use CPU core number.
 +# effectiveMode: restart
 +# Datatype: int
 +flush_thread_count=0
 +
 +# In one insert (one device, one timestamp, multiple measurements),
 +# if enable partial insert, one measurement failure will not impact other measurements
 +# effectiveMode: hot_reload
 +# Datatype: boolean
 +enable_partial_insert=true
 +
 +# the interval to log recover progress of each vsg when starting iotdb
 +# effectiveMode: restart
 +# Datatype: int
 +recovery_log_interval_in_ms=5000
 +
 +# If using v0.13 client to insert data, please set this configuration to true.
 +# Notice: if using v0.13/v1.0 client or setting Client Version to V_0_13 manually, enable this config will disable insert redirection.
 +# effectiveMode: restart
 +# Datatype: boolean
 +0.13_data_insert_adapt=false
 +
 +# Verify that TSfiles generated by Flush, Load, and Compaction are correct. The following is verified:
 +# 1. Check whether the file contains a header and a tail
 +# 2. Check whether files can be deserialized successfully
 +# 3. Check whether the file contains data
 +# 4. Whether there is time range overlap between data, whether it is increased, and whether the metadata index offset of the sequence is correct
 +# effectiveMode: hot_reload
 +# Datatype: boolean
 +enable_tsfile_validation=false
 +
 +# Default tier TTL. When the survival time of the data exceeds the threshold, it will be migrated to the next tier.
 +# Negative value means the tier TTL is unlimited.
 +# effectiveMode: restart
 +# Datatype: long
 +# Unit: ms
 +tier_ttl_in_ms=-1
 +
 +####################
 +### Compaction Configurations
 +####################
 +
 +# sequence space compaction: only compact the sequence files
 +# effectiveMode: hot_reload
 +# Datatype: boolean
 +enable_seq_space_compaction=true
 +
 +# unsequence space compaction: only compact the unsequence files
 +# effectiveMode: hot_reload
 +# Datatype: boolean
 +enable_unseq_space_compaction=true
 +
 +# cross space compaction: compact the unsequence files into the overlapped sequence files
 +# effectiveMode: hot_reload
 +# Datatype: boolean
 +enable_cross_space_compaction=true
 +
 +# enable auto repair unsorted file by compaction
 +# effectiveMode: hot_reload
 +# Datatype: boolean
 +enable_auto_repair_compaction=true
 +
 +# the selector of cross space compaction task
 +# effectiveMode: restart
 +# Options: rewrite
 +cross_selector=rewrite
 +
 +# the compaction performer of cross space compaction task
 +# effectiveMode: hot_reload
 +# Options: read_point, fast
 +cross_performer=fast
 +
 +# the selector of inner sequence space compaction task
 +# effectiveMode: hot_reload
 +# Options: size_tiered_single_target,size_tiered_multi_target
 +inner_seq_selector=size_tiered_multi_target
 +
 +# the performer of inner sequence space compaction task
 +# effectiveMode: hot_reload
 +# Options: read_chunk, fast
 +inner_seq_performer=read_chunk
 +
 +# the selector of inner unsequence space compaction task
 +# effectiveMode: hot_reload
 +# Options: size_tiered_single_target,size_tiered_multi_target
 +inner_unseq_selector=size_tiered_multi_target
 +
 +# the performer of inner unsequence space compaction task
 +# effectiveMode: hot_reload
 +# Options: read_point, fast
 +inner_unseq_performer=fast
 +
 +# The priority of compaction execution
 +# INNER_CROSS: prioritize inner space compaction, reduce the number of files first
 +# CROSS_INNER: prioritize cross space compaction, eliminate the unsequence files first
 +# BALANCE: alternate two compaction types
 +# effectiveMode: restart
 +compaction_priority=INNER_CROSS
 +
 +# The size of candidate compaction task queue.
 +# effectiveMode: restart
 +# Datatype: int
 +candidate_compaction_task_queue_size=50
 +
 +# This parameter is used in two places:
 +# 1. The target tsfile size of inner space compaction.
 +# 2. The candidate size of seq tsfile in cross space compaction will be smaller than target_compaction_file_size * 1.5.
 +# In most cases, the target file size of cross compaction won't exceed this threshold, and if it does, it will not be much larger than it.
 +# default is 2GB
 +# effectiveMode: hot_reload
 +# Datatype: long, Unit: byte
 +target_compaction_file_size=2147483648
 +
 +# The total file size limit in inner space compaction.
 +# default is 10GB
 +# effectiveMode: hot_reload
 +# Datatype: long, Unit: byte
 +inner_compaction_total_file_size_threshold=10737418240
 +
 +# The total file num limit in inner space compaction.
 +# default is 100
 +# effectiveMode: hot_reload
 +# Datatype: int
 +inner_compaction_total_file_num_threshold=100
 +
 +# The max level gap in inner compaction selection, default is 2.
 +# effectiveMode: hot_reload
 +# Datatype: int
 +max_level_gap_in_inner_compaction=2
 +
 +# If the chunk size is lower than this threshold, it will be deserialized into points, default is 128 byte
 +# effectiveMode: restart
 +# Datatype: long, Unit:byte
 +chunk_size_lower_bound_in_compaction=128
 +
 +# If the chunk point num is lower than this threshold, it will be deserialized into points
 +# effectiveMode: restart
 +# Datatype: long
 +chunk_point_num_lower_bound_in_compaction=100
 +
 +# The file num requirement when selecting inner space compaction candidate files
 +# effectiveMode: hot_reload
 +# Datatype: int
 +inner_compaction_candidate_file_num=30
 +
 +# The max file when selecting cross space compaction candidate files
 +# At least one unseq file with it's overlapped seq files will be selected even exceeded this number
 +# effectiveMode: hot_reload
 +# Datatype: int
 +max_cross_compaction_candidate_file_num=500
 +
 +# The max total size when selecting cross space compaction candidate files
 +# At least one unseq file with it's overlapped seq files will be selected even exceeded this number
 +# effectiveMode: hot_reload
 +# 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
 +# effectiveMode: hot_reload
 +# Datatype: int
 +min_cross_compaction_unseq_file_level=1
 +
 +# How many threads will be set up to perform compaction, 10 by default.
 +# Set to 1 when less than or equal to 0.
 +# effectiveMode: hot_reload
 +# Datatype: int
 +compaction_thread_count=10
 +
 +# How many chunk will be compacted in aligned series compaction, 10 by default.
 +# Set to Integer.MAX_VALUE when less than or equal to 0.
 +# effectiveMode: hot_reload
 +# Datatype: int
 +compaction_max_aligned_series_num_in_one_batch=10
 +
 +# The interval of compaction task schedule
 +# effectiveMode: restart
 +# Datatype: long, Unit: ms
 +compaction_schedule_interval_in_ms=60000
 +
 +# The limit of write throughput merge can reach per second
 +# values less than or equal to 0 means no limit
 +# effectiveMode: hot_reload
 +# Datatype: int, Unit: megabyte
 +compaction_write_throughput_mb_per_sec=16
 +
 +# The limit of read throughput merge can reach per second
 +# values less than or equal to 0 means no limit
 +# effectiveMode: hot_reload
 +# Datatype: int, Unit: megabyte
 +compaction_read_throughput_mb_per_sec=0
 +
 +# The limit of read operation merge can reach per second
 +# values less than or equal to 0 means no limit
 +# effectiveMode: hot_reload
 +# Datatype: int
 +compaction_read_operation_per_sec=0
 +
 +# The number of sub compaction threads to be set up to perform compaction.
 +# Currently only works for nonAligned data in cross space compaction and unseq inner space compaction.
 +# Set to 1 when less than or equal to 0.
 +# effectiveMode: hot_reload
 +# Datatype: int
 +sub_compaction_thread_count=4
 +
 +# Redundancy value of disk availability, only use for inner compaction.
 +# When disk availability is lower than the sum of (disk_space_warning_threshold + inner_compaction_task_selection_disk_redundancy), inner compaction tasks containing mods files are selected first.
 +# effectiveMode: hot_reload
 +# DataType: double
 +inner_compaction_task_selection_disk_redundancy=0.05
 +
 +# Mods file size threshold, only use for inner compaction.
 +# When the size of the mods file corresponding to TsFile exceeds this value, inner compaction tasks containing mods files are selected first.
 +# effectiveMode: hot_reload
 +# DataType: long
 +inner_compaction_task_selection_mods_file_threshold=131072
 +
 +# The number of threads to be set up to select compaction task.
 +# effectiveMode: hot_reload
 +# Datatype: int
 +compaction_schedule_thread_num=4
 +
 +####################
 +### Write Ahead Log Configuration
 +####################
 +
 +# Write mode of wal
 +# The details of these three modes are as follows:
 +# 1. DISABLE: the system will disable wal.
 +# 2. SYNC: the system will submit wal synchronously, write request will not return until its wal is fsynced to the disk successfully.
 +# 3. ASYNC: the system will submit wal asynchronously, write request will return immediately no matter its wal is fsynced to the disk successfully.
 +# The write performance order is DISABLE > ASYNC > SYNC, but only SYNC mode can ensure data durability.
 +# effectiveMode: restart
 +wal_mode=ASYNC
 +
 +# Max number of wal nodes, each node corresponds to one wal directory
 +# This parameter is only valid in the standalone mode. IoTConsensus uses one wal per data region and RatisConsensus doesn't use wal.
 +# The default value 0 means the number is determined by the system, the number is in the range of [data region num / 2, data region num].
 +# Notice: this value affects write performance significantly.
 +# For non-SSD disks, values between one third and half of databases number are recommended.
 +# effectiveMode: restart
 +# Datatype: int
 +max_wal_nodes_num=0
 +
 +# Duration a wal flush operation will wait before calling fsync in the async mode
 +# A duration greater than 0 batches multiple wal fsync calls into one. This is useful when disks are slow or WAL write contention exists.
 +# Notice: this value affects write performance significantly, values in the range of 10ms-2000ms are recommended.
 +# effectiveMode: hot_reload
 +# Datatype: long
 +wal_async_mode_fsync_delay_in_ms=1000
 +
 +# Duration a wal flush operation will wait before calling fsync in the sync mode
 +# A duration greater than 0 batches multiple wal fsync calls into one. This is useful when disks are slow or WAL write contention exists.
 +# Notice: this value affects write performance significantly, values in the range of 0ms-10ms are recommended.
 +# effectiveMode: hot_reload
 +# Datatype: long
 +wal_sync_mode_fsync_delay_in_ms=3
 +
 +# Buffer size of each wal node
 +# If it's a value smaller than 0, use the default value 32 * 1024 * 1024 bytes (32MB).
 +# effectiveMode: restart
 +# Datatype: int
 +wal_buffer_size_in_byte=33554432
 +
 +# Size threshold of each wal file
 +# When a wal file's size exceeds this, the wal file will be closed and a new wal file will be created.
 +# If it's a value smaller than 0, use the default value 30 * 1024 * 1024 (30MB).
 +# effectiveMode: hot_reload
 +# Datatype: long
 +wal_file_size_threshold_in_byte=31457280
 +
 +# Minimum ratio of effective information in wal files
 +# This value should be between 0.0 and 1.0
 +# If effective information ratio is below this value, MemTable snapshot or flush will be triggered.
 +# Increase this value when wal occupies too much disk space. But, if this parameter is too large, the write performance may decline.
 +# effectiveMode: hot_reload
 +# Datatype: double
 +wal_min_effective_info_ratio=0.1
 +
 +# MemTable size threshold for triggering MemTable snapshot in wal
 +# When a memTable's size (in byte) exceeds this, wal can flush this memtable to disk, otherwise wal will snapshot this memtable in wal.
 +# If it's a value smaller than 0, use the default value 8 * 1024 * 1024 bytes (8MB).
 +# effectiveMode: hot_reload
 +# Datatype: long
 +wal_memtable_snapshot_threshold_in_byte=8388608
 +
 +# MemTable's max snapshot number in wal
 +# If one memTable's snapshot number in wal exceeds this value, it will be flushed to disk.
 +# effectiveMode: hot_reload
 +# Datatype: int
 +max_wal_memtable_snapshot_num=1
 +
 +# The period when outdated wal files are periodically deleted
 +# If this value is too large, outdated wal files may not able to be deleted in time.
 +# If it's a value smaller than 0, use the default value 20 * 1000 ms (20 seconds).
 +# effectiveMode: hot_reload
 +# Datatype: long
 +delete_wal_files_period_in_ms=20000
 +
 +# The minimum size of wal files when throttle down in IoTConsensus
 +# If this value is not set, it will be carefully chosen according to the available disk space.
 +# If this value is set smaller than 0, it will default to 200 * 1024 * 1024 * 1024 bytes (200GB).
 +# effectiveMode: hot_reload
 +# Datatype: long
 +wal_throttle_threshold_in_byte=214748364800
 +
 +# Maximum wait time of write cache in IoTConsensus
 +# If this value is less than or equal to 0, use the default value 10 * 1000 ms (10s)
 +# effectiveMode: hot_reload
 +# Datatype: long
 +iot_consensus_cache_window_time_in_ms=-1
 +
 +# Enable Write Ahead Log compression.
 +# With this parameter enabled, IoTDB can save a lot of IO resources at the cost of a small amount
 +# of additional CPU resources, which is generally suitable for the scenario
 +# where CPU is not the bottleneck but IO is the bottleneck.
 +# effectiveMode: hot_reload
 +# Datatype: boolean
 +enable_wal_compression=true
 +
 +####################
 +### IoTConsensus Configuration
 +####################
 +
 +# The maximum log entries num in IoTConsensus Batch
 +# effectiveMode: hot_reload
 +# Datatype: int
 +data_region_iot_max_log_entries_num_per_batch = 1024
 +
 +# The maximum size in IoTConsensus Batch
 +# effectiveMode: hot_reload
 +# Datatype: int
 +data_region_iot_max_size_per_batch = 16777216
 +
 +# The maximum pending batches num in IoTConsensus
 +# effectiveMode: hot_reload
 +# Datatype: int
 +data_region_iot_max_pending_batches_num = 5
 +
 +# The maximum memory ratio for queue in IoTConsensus
 +# effectiveMode: hot_reload
 +# Datatype: double
 +data_region_iot_max_memory_ratio_for_queue = 0.6
 +
 +# The maximum transit size in byte per second for region migration
 +# values less than or equal to 0 means no limit
 +# effectiveMode: hot_reload
 +# Datatype: long
 +region_migration_speed_limit_bytes_per_second = 50331648
 +
++# The minimum interval (in ms) between two per-file progress logs while transmitting a snapshot in
++# IoTConsensus. A snapshot may contain a huge number of files, so logging one line per file is
++# costly; this throttles it to at most once per interval. A value <= 0 logs every file.
++# effectiveMode: hot_reload
++# Datatype: long
++data_region_iot_snapshot_transmission_progress_log_interval_ms = 5000
++
 +# When loading snapshot, try keeping TsFiles in the same disk as the snapshot dir.
 +# This may reduce file copies but may also result in a worse disk load-balance
 +# effectiveMode: hot_reload
 +# Datatype: boolean
 +keep_same_disk_when_loading_snapshot=true
 +
 +####################
 +### Blob Allocator Configuration
 +####################
 +
 +# Whether to enable binary allocator.
 +# For scenarios where large binary streams cause severe GC, enabling this parameter significantly improves performance.
 +# effectiveMode: hot_reload
 +enable_binary_allocator=true
 +
 +# The size boundaries that allocator is responsible for
 +# lower boundary for allocation size
 +# unit: bytes
 +# Datatype: int
 +# effectiveMode: restart
 +small_binary_object=4096
 +
 +# The size boundaries that allocator is responsible for
 +# upper boundary for allocation size
 +# unit: bytes
 +# Datatype: int
 +# effectiveMode: restart
 +huge_binary_object=1048576
 +
 +# Number of arena regions in blob allocator, used to control concurrent performance
 +# Datatype: int
 +# effectiveMode: restart
 +arena_num=4
 +
 +# Control the number of slabs in allocator
 +# The number of different sizes in each power-of-2 interval is 2^LOG2_SIZE_CLASS_GROUP
 +# For example: if LOG2_SIZE_CLASS_GROUP=3, between 1024-2048 there will be 8 different sizes
 +# Datatype: int
 +# effectiveMode: restart
 +log2_size_class_group=3
 +
 +####################
 +### TsFile Configurations
 +####################
 +
 +# The maximum number of bytes written to disk each time the data in memory is written to disk
 +# effectiveMode: hot_reload
 +# Datatype: int
 +group_size_in_byte=134217728
 +
 +# The memory size for each series writer to pack page, default value is 64KB
 +# effectiveMode: hot_reload
 +# Datatype: int
 +page_size_in_byte=65536
 +
 +# The maximum number of data points in a page, default 10000
 +# effectiveMode: hot_reload
 +# Datatype: int
 +max_number_of_points_in_page=10000
 +
 +# The threshold for pattern matching in regex
 +# effectiveMode: restart
 +# Datatype: int
 +pattern_matching_threshold=1000000
 +
 +# Floating-point precision of query results.
 +# Only effective for RLE and TS_2DIFF encodings.
 +# Due to the limitation of machine precision, some values may not be interpreted strictly.
 +# E.g.: 1.111111 with precision=3 will be shown as 1.11100001
 +# effectiveMode: hot_reload
 +# Datatype: int
 +float_precision=2
 +
 +# Encoder of value series. default value is PLAIN.
 +# For int, long data type, also supports TS_2DIFF and RLE(run-length encoding), GORILLA and ZIGZAG.
 +# effectiveMode: hot_reload
 +value_encoder=PLAIN
 +
 +# Compression configuration
 +# Data compression method, supports UNCOMPRESSED, SNAPPY, ZSTD, LZMA2 or LZ4. Default value is LZ4
 +# And it is also used as the default compressor of time column in aligned timeseries.
 +# effectiveMode: hot_reload
 +compressor=LZ4
 +
 +####################
 +### Authorization Configuration
 +####################
 +
 +# which class to serve for authorization. By default, it is LocalFileAuthorizer.
 +# effectiveMode: restart
 +# Privilege: SECURITY
 +authorizer_provider_class=org.apache.iotdb.commons.auth.authorizer.LocalFileAuthorizer
 +
 +# encryption provider class
 +# effectiveMode: first_start
 +iotdb_server_encrypt_decrypt_provider=org.apache.iotdb.commons.security.encrypt.MessageDigestEncrypt
 +
 +# encryption provided class parameter
 +# effectiveMode: first_start
 +iotdb_server_encrypt_decrypt_provider_parameter=
 +
 +# Cache size of user and role
 +# effectiveMode: restart
 +# Datatype: int
 +author_cache_size=1000
 +
 +# Cache expire time of user and role
 +# effectiveMode: restart
 +# Datatype: int
 +author_cache_expire_time=30
 +
 +# A regex pattern representing trusted uri by system
 +# effectiveMode: hot_reload
 +# Datatype: regex
 +# If you want to allow all URIs, you can specify it as .*
 +trusted_uri_pattern=file:.*
 +
 +####################
 +### UDF Configuration
 +####################
 +
 +# Used to estimate the memory usage of text fields in a UDF query.
 +# It is recommended to set this value to be slightly larger than the average length of all text
 +# records.
 +# effectiveMode: restart
 +# Datatype: int
 +udf_initial_byte_array_length_for_memory_control=48
 +
 +# How much memory may be used in ONE UDF query (in MB).
 +# The upper limit is 20% of allocated memory for read.
 +# effectiveMode: restart
 +# Datatype: float
 +udf_memory_budget_in_mb=30.0
 +
 +# UDF memory allocation ratio.
 +# The parameter form is a:b:c, where a, b, and c are integers.
 +# effectiveMode: restart
 +udf_reader_transformer_collector_memory_proportion=1:1:1
 +
 +# UDF lib dir
 +# If this property is unset, system will save the data in the default relative path directory under
 +# the UDF folder(i.e., %CONFIGNODE_HOME%/ext/udf).
 +#
 +# If it is absolute, system will save the data in exact location it points to.
 +# If it is relative, system will save the data in the relative path directory it indicates under the
 +# UDF folder.
 +# Note: If data_dir is assigned an empty string(i.e.,zero-size), it will be handled as a relative
 +# path.
 +# effectiveMode: restart
 +# For Windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is
 +# absolute. Otherwise, it is relative.
 +# udf_lib_dir=ext\\udf
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +udf_lib_dir=ext/udf
 +
 +####################
 +### Trigger Configuration
 +####################
 +
 +# Uncomment the following field to configure the trigger lib directory.
 +# effectiveMode: restart
 +# For Windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is
 +# absolute. Otherwise, it is relative.
 +# trigger_lib_dir=ext\\trigger
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +trigger_lib_dir=ext/trigger
 +
 +# How many times will we retry to found an instance of stateful trigger on DataNodes
 +# 3 by default.
 +# effectiveMode: restart
 +# Datatype: int
 +stateful_trigger_retry_num_when_not_found=3
 +
 +
 +####################
 +### Select-Into Configuration
 +####################
 +
 +# The maximum memory occupied by the data to be written when executing select-into statements.
 +# effectiveMode: hot_reload
 +# Datatype: long
 +into_operation_buffer_size_in_byte=104857600
 +
 +# The maximum number of rows can be processed in insert-tablet-plan when executing select-into statements.
 +# When <= 0, use 10000.
 +# effectiveMode: hot_reload
 +# Datatype: int
 +select_into_insert_tablet_plan_row_limit=10000
 +
 +# The number of threads in the thread pool that execute insert-tablet tasks
 +# effectiveMode: restart
 +# Datatype: int
 +into_operation_execution_thread_count=2
 +
 +####################
 +### Continuous Query Configuration
 +####################
 +
 +# The number of threads in the scheduled thread pool that submit continuous query tasks periodically
 +# effectiveMode: restart
 +# Datatype: int
 +continuous_query_submit_thread_count=2
 +
 +# The minimum value of the continuous query execution time interval
- # effectiveMode: restart
++# effectiveMode: hot_reload
 +# Datatype: long(duration)
 +continuous_query_min_every_interval_in_ms=1000
 +
 +####################
 +### Pipe Configuration
 +####################
 +
 +# Uncomment the following field to configure the pipe lib directory.
 +# effectiveMode: first_start
 +# For Windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is
 +# absolute. Otherwise, it is relative.
 +# pipe_lib_dir=ext\\pipe
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +pipe_lib_dir=ext/pipe
 +
 +# The maximum number of threads that can be used to execute the pipe subtasks in PipeSubtaskExecutor.
 +# When <= 0, use max(5, CPU core number / 2).
 +# effectiveMode: restart
 +# Datatype: int
 +pipe_subtask_executor_max_thread_num=0
 +
 +# The connection timeout (in milliseconds) for the thrift client.
 +# effectiveMode: restart
 +# Datatype: int
 +pipe_sink_timeout_ms=900000
 +
 +# The maximum number of selectors that can be used in the sink.
 +# Recommend to set this value to less than or equal to pipe_sink_max_client_number.
 +# When <= 0, use max(4, CPU core number / 2).
 +# effectiveMode: restart
 +# Datatype: int
 +pipe_sink_selector_number=0
 +
 +# The maximum number of clients that can be used in the sink.
 +# When <= 0, use max(16, CPU core number / 2).
 +# effectiveMode: restart
 +# Datatype: int
 +pipe_sink_max_client_number=0
 +
 +# Whether to enable receiving pipe data through air gap.
 +# The receiver can only return 0 or 1 in tcp mode to indicate whether the data is received successfully.
 +# effectiveMode: restart
 +# Datatype: Boolean
 +pipe_air_gap_receiver_enabled=false
 +
 +# The port for the server to receive pipe data through air gap.
 +# Datatype: int
 +# effectiveMode: restart
 +pipe_air_gap_receiver_port=9780
 +
 +# The total bytes that all pipe sinks can transfer per second.
 +# When given a value less than or equal to 0, it means no limit.
 +# default value is -1, which means no limit.
 +# effectiveMode: hot_reload
 +# Datatype: double
 +pipe_all_sinks_rate_limit_bytes_per_second=-1
 +
 +####################
 +### Subscription Consensus Configuration
 +####################
 +
 +# The interval at which an idle consensus-subscription queue advances its writer safe-time barrier by watermark.
 +# effectiveMode: restart
 +# Datatype: long(duration)
 +subscription_consensus_idle_safe_time_barrier_interval_ms=10000
 +
 +####################
 +### RatisConsensus Configuration
 +####################
 +
 +# max payload size for a single log-sync-RPC from leader to follower(in byte, by default 16MB)
 +# effectiveMode: restart
 +# Datatype: int
 +config_node_ratis_log_appender_buffer_size_max=16777216
 +schema_region_ratis_log_appender_buffer_size_max=16777216
 +data_region_ratis_log_appender_buffer_size_max=16777216
 +
 +# trigger a snapshot when snapshot_trigger_threshold logs are written
 +# effectiveMode: restart
 +# Datatype: int
 +config_node_ratis_snapshot_trigger_threshold=400000
 +schema_region_ratis_snapshot_trigger_threshold=400000
 +data_region_ratis_snapshot_trigger_threshold=400000
 +
 +# allow flushing Raft Log asynchronously
 +# effectiveMode: restart
 +# Datatype: Boolean
 +config_node_ratis_log_unsafe_flush_enable=false
 +schema_region_ratis_log_unsafe_flush_enable=false
 +data_region_ratis_log_unsafe_flush_enable=false
 +
 +# max capacity of a single Log segment file (in byte, by default 24MB)
 +# effectiveMode: restart
 +# Datatype: int
 +config_node_ratis_log_segment_size_max_in_byte=25165824
 +schema_region_ratis_log_segment_size_max_in_byte=25165824
 +data_region_ratis_log_segment_size_max_in_byte=25165824
 +config_node_simple_consensus_log_segment_size_max_in_byte=25165824
 +
 +# flow control window for ratis grpc log appender
 +# effectiveMode: restart
 +# Datatype: int
 +config_node_ratis_grpc_flow_control_window=4194304
 +schema_region_ratis_grpc_flow_control_window=4194304
 +data_region_ratis_grpc_flow_control_window=4194304
 +config_node_ratis_grpc_leader_outstanding_appends_max=128
 +schema_region_ratis_grpc_leader_outstanding_appends_max=128
 +data_region_ratis_grpc_leader_outstanding_appends_max=128
 +config_node_ratis_log_force_sync_num=128
 +schema_region_ratis_log_force_sync_num=128
 +data_region_ratis_log_force_sync_num=128
 +
 +# min election timeout for leader election
 +# effectiveMode: restart
 +# Datatype: int
 +config_node_ratis_rpc_leader_election_timeout_min_ms=2000
 +schema_region_ratis_rpc_leader_election_timeout_min_ms=2000
 +data_region_ratis_rpc_leader_election_timeout_min_ms=2000
 +
 +# max election timeout for leader election
 +# effectiveMode: restart
 +# Datatype: int
 +config_node_ratis_rpc_leader_election_timeout_max_ms=4000
 +schema_region_ratis_rpc_leader_election_timeout_max_ms=4000
 +data_region_ratis_rpc_leader_election_timeout_max_ms=4000
 +
 +# ratis client retry threshold
 +# effectiveMode: restart
 +# Datatype: int
 +config_node_ratis_request_timeout_ms=10000
 +schema_region_ratis_request_timeout_ms=10000
 +data_region_ratis_request_timeout_ms=10000
 +
 +# currently we use exponential back-off retry policy for ratis
 +# effectiveMode: restart
 +# Datatype: int
 +config_node_ratis_max_retry_attempts=10
 +config_node_ratis_initial_sleep_time_ms=100
 +config_node_ratis_max_sleep_time_ms=10000
 +schema_region_ratis_max_retry_attempts=10
 +schema_region_ratis_initial_sleep_time_ms=100
 +schema_region_ratis_max_sleep_time_ms=10000
 +data_region_ratis_max_retry_attempts=10
 +data_region_ratis_initial_sleep_time_ms=100
 +data_region_ratis_max_sleep_time_ms=10000
 +
++# Max retry attempts for a Ratis configuration change (add/remove peer), e.g. during region
++# migration or cluster scale-in/out. Unlike the request retry policy above, reconfiguration retries
++# use a fixed 2s interval, so this roughly caps the wait at (attempts * 2s). Bounding it (instead of
++# retrying forever) prevents a killed ADDING peer that can never catch up from blocking the
++# reconfiguration -- and therefore the whole region migration -- indefinitely.
++# effectiveMode: restart
++# Datatype: int
++config_node_ratis_reconfiguration_max_retry_attempts=15
++schema_region_ratis_reconfiguration_max_retry_attempts=15
++data_region_ratis_reconfiguration_max_retry_attempts=15
++
 +# first election timeout
 +# effectiveMode: restart
 +# Datatype: int
 +ratis_first_election_timeout_min_ms=50
 +ratis_first_election_timeout_max_ms=150
 +
 +# the timeout threshold for transferring leader in ratis
 +# effectiveMode: restart
 +# Datatype: int
 +ratis_transfer_leader_timeout_ms=30000
 +
 +# preserve certain logs when take snapshot and purge
 +# effectiveMode: restart
 +# Datatype: int
 +config_node_ratis_preserve_logs_num_when_purge=1000
 +schema_region_ratis_preserve_logs_num_when_purge=1000
 +data_region_ratis_preserve_logs_num_when_purge=1000
 +
 +# Raft Log disk size control
 +# effectiveMode: restart
 +# Datatype: int
 +config_node_ratis_log_max_size = 2147483648
 +schema_region_ratis_log_max_size = 2147483648
 +data_region_ratis_log_max_size = 21474836480
 +
 +# Raft periodic snapshot interval, time unit is second
 +# effectiveMode: restart
 +# Datatype: int
 +config_node_ratis_periodic_snapshot_interval=86400
 +schema_region_ratis_periodic_snapshot_interval=86400
 +data_region_ratis_periodic_snapshot_interval=86400
 +
 +####################
 +### IoTConsensusV2 Configuration
 +####################
 +
 +# Default event buffer size for connector and receiver in iot consensus v2
 +# effectiveMode: restart
 +# DataType: int
 +iot_consensus_v2_pipeline_size=5
 +
 +# IoTConsensusV2 mode.
 +# These consensus protocol modes are currently supported:
 +# 1. batch
 +# 2. stream
 +# effectiveMode: restart
 +# Datatype: string
 +iot_consensus_v2_mode=batch
 +
 +# Blocking queue capacity of each deletion ahead log buffer for iot consensus v2,
 +# restricts maximum number of entry in the blocking queue.
 +# effectiveMode: restart
 +# Datatype: int
 +deletion_ahead_log_buffer_queue_capacity=500
 +
 +# Interval for check zombie TsFile writer in iot consensus v2
 +# time unit is milliseconds.
 +# effectiveMode: restart
 +# DataType: long
 +zombie_tsfile_writer_check_interval=300000
 +
 +# Threshold for determining whether a TsFile writer is a zombie in iot consensus v2
 +# The larger this value is, the longer the synchronization will be stuck when an unexpected situation occurs.
 +# The smaller this value is, the greater the possibility of misjudgment, which may cause consistency loss.
 +# time unit is milliseconds.
 +# effectiveMode: restart
 +# DataType: long
 +zombie_tsfile_writer_threshold=600000
 +
 +####################
 +### Procedure Configuration
 +####################
 +
 +# Default number of worker thread count
 +# effectiveMode: restart
 +# Datatype: int
 +procedure_core_worker_thread_count=4
 +
 +# Default time interval of completed procedure cleaner work in, time unit is second
 +# effectiveMode: restart
 +# Datatype: int
 +procedure_completed_clean_interval=30
 +
 +# Default ttl of completed procedure, time unit is second
 +# effectiveMode: restart
 +# Datatype: int
 +procedure_completed_evict_ttl=60
 +
 +####################
 +### MQTT Broker Configuration
 +####################
 +
 +# whether to enable the mqtt service.
 +# effectiveMode: restart
 +# Datatype: boolean
 +enable_mqtt_service=false
 +
 +# the mqtt service binding host.
 +# effectiveMode: restart
 +# Datatype: String
 +mqtt_host=127.0.0.1
 +
 +# the mqtt service binding port.
 +# effectiveMode: restart
 +# Datatype: int
 +mqtt_port=1883
 +
 +# the handler pool size for handing the mqtt messages.
 +# effectiveMode: restart
 +# Datatype: int
 +mqtt_handler_pool_size=1
 +
 +# the mqtt message payload formatter.
 +# effectiveMode: restart
 +# Options: [json, line]
 +# The built-in json only supports tree models, and the line only supports table models.
 +# Datatype: String
 +mqtt_payload_formatter=json
 +
 +# max length of mqtt message in byte
 +# effectiveMode: restart
 +# Datatype: int
 +mqtt_max_message_size=1048576
 +
 +####################
 +### IoTDB-AI Configuration
 +####################
 +
 +# The thread count which can be used for model inference operation.
 +# effectiveMode: restart
 +# Datatype: int
 +model_inference_execution_thread_count=5
 +
 +####################
 +### Load TsFile Configuration
 +####################
 +
 +# Load clean up task is used to clean up the unsuccessful loaded tsfile after a certain period of time.
 +# The parameter is the delay time after an unsuccessful load operation (in seconds).
 +# effectiveMode: hot_reload
 +# Datatype: int
 +load_clean_up_task_execution_delay_time_seconds=1800
 +
 +# The maximum bytes per second of disk write throughput when loading tsfile.
 +# When given a value less than or equal to 0, it means no limit.
 +# Default value is -1, which means no limit.
 +# effectiveMode: hot_reload
 +# Datatype: int
 +load_write_throughput_bytes_per_second=-1
 +
 +# Whether the load_tsfile supports path allowed dirs check.
 +# effectiveMode: hot_reload
 +# Datatype: String
 +load_tsfile_source_path_check_enable=false
 +
 +# Comma-separated list of directories from which user-issued LOAD TSFILE statements can read.
 +# If empty, IoTDB only permits LOAD sources under the internal load TsFile directories.
 +# effectiveMode: hot_reload
 +# Datatype: String
 +load_tsfile_allowed_dirs=
 +
 +# Whether to enable the active listening mode for tsfile loading.
 +# effectiveMode: hot_reload
 +# Datatype: Boolean
 +load_active_listening_enable=true
 +
 +# The directory to be actively listened for tsfile loading.
 +# Multiple directories should be separated by a ','.
 +# The default directory is 'ext/load/pending'.
 +# effectiveMode: hot_reload
 +# Datatype: String
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute.
 +# Otherwise, it is relative.
 +# load_active_listening_dirs=ext\\load\\pending
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +load_active_listening_dirs=ext/load/pending
 +
++# The directory to be actively listened for tsfile loading from Pipe.
++# Only one directory can be configured.
++# effectiveMode: hot_reload
++# Datatype: String
++# For windows platform
++# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute.
++# Otherwise, it is relative.
++# load_active_listening_pipe_dir=ext\\load\\pipe
++# For Linux platform
++# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
++load_active_listening_pipe_dir=ext/load/pipe
++
 +# The directory where tsfile are moved if the active listening mode fails to load them.
 +# Only one directory can be configured.
 +# effectiveMode: hot_reload
 +# Datatype: String
 +# For windows platform
 +# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute.
 +# Otherwise, it is relative.
 +# load_active_listening_fail_dir=ext\\load\\failed
 +# For Linux platform
 +# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
 +load_active_listening_fail_dir=ext/load/failed
 +
 +# The maximum number of threads that can be used to load tsfile actively.
 +# The default value, when this parameter is commented out or <= 0, use CPU core number.
 +# effectiveMode: restart
 +# Datatype: int
 +load_active_listening_max_thread_num=0
 +
 +# The interval specified in seconds for the active listening mode to check the directory specified in load_active_listening_dirs.
 +# The active listening mode will check the directory every load_active_listening_check_interval_seconds seconds.
 +# effectiveMode: restart
 +# Datatype: int
 +load_active_listening_check_interval_seconds=5
 +
 +# The operation performed to LastCache when a TsFile is successfully loaded.
 +# UPDATE: use the data in the TsFile to update LastCache;
 +# UPDATE_NO_BLOB: similar to UPDATE, but will invalidate LastCache for blob series;
 +# CLEAN_DEVICE: invalidate LastCache of devices contained in the TsFile;
 +# CLEAN_ALL: clean the whole LastCache.
 +# effectiveMode: restart
 +last_cache_operation_on_load=UPDATE_NO_BLOB
 +
 +# Whether to cache last values before loading a TsFile. Only effective when
 +# last_cache_operation_on_load=UPDATE_NO_BLOB or last_cache_operation_on_load=UPDATE.
 +# When set to true, blob series will be ignored even with last_cache_operation_on_load=UPDATE.
 +# Enabling this will increase the memory footprint during loading TsFiles.
 +# effectiveMode: restart
 +cache_last_values_for_load=true
 +
 +# When cache_last_values_for_load=true, the maximum memory that can be used to cache last values.
 +# If this value is exceeded, the cached values will be abandoned and last values will be read from
 +# the TsFile in a streaming manner.
 +# effectiveMode: restart
 +cache_last_values_memory_budget_in_byte=4194304
 +
 +####################
 +### Dispatch Retry Configuration
 +####################
 +
 +# The maximum retrying time for write request remotely dispatching, time unit is milliseconds.
 +# It only takes effect for write request remotely dispatching, not including locally dispatching and query
 +# Set to 0 or negative number to disable remote dispatching write request retrying
 +# We will sleep for some time between each retry, 100ms, 200ms, 400ms, 800ms and so on, util reaching 20,000ms, we won't increase the sleeping time any more
 +# effectiveMode: hot_reload
 +# Datatype: long
 +write_request_remote_dispatch_max_retry_duration_in_ms=60000
 +
 +# Whether retrying for unknown errors.
 +# Current unknown errors includes EXECUTE_STATEMENT_ERROR(301) and INTERNAL_SERVER_ERROR(305)
 +# effectiveMode: hot_reload
 +# Datatype: boolean
 +enable_retry_for_unknown_error=false
 +
 +# The switch to control if allow null value be included in the "quantity total" metric statistic.
 +# effectiveMode: hot_reload
 +# Datatype: Boolean
 +include_null_value_in_write_throughput_metric=false
diff --cc dn1/conf/jmx.access
index 00000000000,00000000000..d6b57bc3046
new file mode 100644
--- /dev/null
+++ b/dn1/conf/jmx.access
@@@ -1,0 -1,0 +1,22 @@@
++#
++# Licensed to the Apache Software Foundation (ASF) under one
++# or more contributor license agreements.  See the NOTICE file
++# distributed with this work for additional information
++# regarding copyright ownership.  The ASF licenses this file
++# to you under the Apache License, Version 2.0 (the
++# "License"); you may not use this file except in compliance
++# with the License.  You may obtain a copy of the License at
++#
++#     http://www.apache.org/licenses/LICENSE-2.0
++#
++# Unless required by applicable law or agreed to in writing,
++# software distributed under the License is distributed on an
++# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++# KIND, either express or implied.  See the License for the
++# specific language governing permissions and limitations
++# under the License.
++#
++
++# see https://docs.oracle.com/javase/8/docs/technotes/guides/management/agent.html#gdeup
++iotdb readonly
++root readwrite
diff --cc dn1/conf/jmx.password
index 00000000000,00000000000..9055f01997f
new file mode 100644
--- /dev/null
+++ b/dn1/conf/jmx.password
@@@ -1,0 -1,0 +1,22 @@@
++#
++# Licensed to the Apache Software Foundation (ASF) under one
++# or more contributor license agreements.  See the NOTICE file
++# distributed with this work for additional information
++# regarding copyright ownership.  The ASF licenses this file
++# to you under the Apache License, Version 2.0 (the
++# "License"); you may not use this file except in compliance
++# with the License.  You may obtain a copy of the License at
++#
++#     http://www.apache.org/licenses/LICENSE-2.0
++#
++# Unless required by applicable law or agreed to in writing,
++# software distributed under the License is distributed on an
++# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++# KIND, either express or implied.  See the License for the
++# specific language governing permissions and limitations
++# under the License.
++#
++
++# see https://docs.oracle.com/javase/8/docs/technotes/guides/management/agent.html#gdeup
++iotdb passw!d
++root  passw!d
diff --cc dn1/conf/logback-backup.xml
index 00000000000,00000000000..78fa22572f0
new file mode 100755
--- /dev/null
+++ b/dn1/conf/logback-backup.xml
@@@ -1,0 -1,0 +1,49 @@@
++<?xml version="1.0" encoding="UTF-8"?>
++<!--
++    Licensed to the Apache Software Foundation (ASF) under one
++    or more contributor license agreements.  See the NOTICE file
++    distributed with this work for additional information
++    regarding copyright ownership.  The ASF licenses this file
++    to you under the Apache License, Version 2.0 (the
++    "License"); you may not use this file except in compliance
++    with the License.  You may obtain a copy of the License at
++        http://www.apache.org/licenses/LICENSE-2.0
++    Unless required by applicable law or agreed to in writing,
++    software distributed under the License is distributed on an
++    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++    KIND, either express or implied.  See the License for the
++    specific language governing permissions and limitations
++    under the License.
++-->
++<configuration scan="true" scanPeriod="60 seconds">
++    <appender class="ch.qos.logback.core.ConsoleAppender" name="stdout">
++        <Target>System.out</Target>
++        <encoder>
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>ERROR</level>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="backup">
++        <Encoding>UTF-8</Encoding>
++        <file>${IOTDB_HOME}/logs/log_backup.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${IOTDB_HOME}/logs/log-backup-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>INFO</level>
++        </filter>
++    </appender>
++    <root level="all">
++        <appender-ref ref="stdout"/>
++        <appender-ref ref="backup"/>
++    </root>
++</configuration>
diff --cc dn1/conf/logback-confignode.xml
index 00000000000,00000000000..0322b49ebdd
new file mode 100644
--- /dev/null
+++ b/dn1/conf/logback-confignode.xml
@@@ -1,0 -1,0 +1,112 @@@
++<?xml version="1.0" encoding="UTF-8"?>
++<!--
++
++    Licensed to the Apache Software Foundation (ASF) under one
++    or more contributor license agreements.  See the NOTICE file
++    distributed with this work for additional information
++    regarding copyright ownership.  The ASF licenses this file
++    to you under the Apache License, Version 2.0 (the
++    "License"); you may not use this file except in compliance
++    with the License.  You may obtain a copy of the License at
++
++        http://www.apache.org/licenses/LICENSE-2.0
++
++    Unless required by applicable law or agreed to in writing,
++    software distributed under the License is distributed on an
++    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++    KIND, either express or implied.  See the License for the
++    specific language governing permissions and limitations
++    under the License.
++
++-->
++<configuration scan="true" scanPeriod="60 seconds">
++    <jmxConfigurator/>
++    <!-- prevent logback from outputting its own status at the start of every log -->
++    <statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEERROR">
++        <file>${CONFIGNODE_HOME}/logs/log_confignode_error.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${CONFIGNODE_HOME}/logs/log-confignode-error-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.LevelFilter">
++            <level>error</level>
++            <onMatch>ACCEPT</onMatch>
++            <onMismatch>DENY</onMismatch>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEWARN">
++        <file>${CONFIGNODE_HOME}/logs/log_confignode_warn.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${CONFIGNODE_HOME}/logs/log-confignode-warn-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.LevelFilter">
++            <level>WARN</level>
++            <onMatch>ACCEPT</onMatch>
++            <onMismatch>DENY</onMismatch>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEDEBUG">
++        <file>${CONFIGNODE_HOME}/logs/log_confignode_debug.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${CONFIGNODE_HOME}/logs/log-confignode-debug-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.LevelFilter">
++            <level>DEBUG</level>
++            <onMatch>ACCEPT</onMatch>
++            <onMismatch>DENY</onMismatch>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.ConsoleAppender" name="stdout">
++        <Target>System.out</Target>
++        <encoder>
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>${CONSOLE_LOG_LEVEL:-DEBUG}</level>
++        </filter>
++    </appender>
++    <!-- a log appender that collect all log records whose level is greater than debug-->
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEALL">
++        <file>${CONFIGNODE_HOME}/logs/log_confignode_all.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${CONFIGNODE_HOME}/logs/log-confignode-all-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>INFO</level>
++        </filter>
++    </appender>
++    <root level="info">
++        <appender-ref ref="FILEDEBUG"/>
++        <appender-ref ref="FILEWARN"/>
++        <appender-ref ref="FILEERROR"/>
++        <appender-ref ref="FILEALL"/>
++        <appender-ref ref="stdout"/>
++    </root>
++    <logger level="info" name="org.apache.iotdb.confignode"/>
++    <logger level="info" name="org.apache.ratis"/>
++</configuration>
diff --cc dn1/conf/logback-datanode.xml
index 00000000000,00000000000..a3a59d494ef
new file mode 100644
--- /dev/null
+++ b/dn1/conf/logback-datanode.xml
@@@ -1,0 -1,0 +1,270 @@@
++<?xml version="1.0" encoding="UTF-8"?>
++<!--
++
++    Licensed to the Apache Software Foundation (ASF) under one
++    or more contributor license agreements.  See the NOTICE file
++    distributed with this work for additional information
++    regarding copyright ownership.  The ASF licenses this file
++    to you under the Apache License, Version 2.0 (the
++    "License"); you may not use this file except in compliance
++    with the License.  You may obtain a copy of the License at
++
++        http://www.apache.org/licenses/LICENSE-2.0
++
++    Unless required by applicable law or agreed to in writing,
++    software distributed under the License is distributed on an
++    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++    KIND, either express or implied.  See the License for the
++    specific language governing permissions and limitations
++    under the License.
++
++-->
++<configuration scan="true" scanPeriod="60 seconds">
++    <jmxConfigurator/>
++    <!-- prevent logback from outputting its own status at the start of every log -->
++    <statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEERROR">
++        <file>${IOTDB_HOME}/logs/log_datanode_error.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${IOTDB_HOME}/logs/log-datanode-error-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.LevelFilter">
++            <level>error</level>
++            <onMatch>ACCEPT</onMatch>
++            <onMismatch>DENY</onMismatch>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEWARN">
++        <file>${IOTDB_HOME}/logs/log_datanode_warn.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${IOTDB_HOME}/logs/log-datanode-warn-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.LevelFilter">
++            <level>WARN</level>
++            <onMatch>ACCEPT</onMatch>
++            <onMismatch>DENY</onMismatch>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEDEBUG">
++        <file>${IOTDB_HOME}/logs/log_datanode_debug.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${IOTDB_HOME}/logs/log-datanode-debug-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.LevelFilter">
++            <level>DEBUG</level>
++            <onMatch>ACCEPT</onMatch>
++            <onMismatch>DENY</onMismatch>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILETRACE">
++        <file>${IOTDB_HOME}/logs/log_datanode_trace.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${IOTDB_HOME}/logs/log-datanode-trace-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.LevelFilter">
++            <level>TRACE</level>
++            <onMatch>ACCEPT</onMatch>
++            <onMismatch>DENY</onMismatch>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.ConsoleAppender" name="stdout">
++        <Target>System.out</Target>
++        <encoder>
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>${CONSOLE_LOG_LEVEL:-DEBUG}</level>
++        </filter>
++    </appender>
++    <!-- a log appender that collect all log records whose level is greater than debug-->
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEALL">
++        <file>${IOTDB_HOME}/logs/log_datanode_all.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${IOTDB_HOME}/logs/log-datanode-all-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>INFO</level>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILE_COST_MEASURE">
++        <file>${IOTDB_HOME}/logs/log_datanode_measure.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${IOTDB_HOME}/logs/log-datanode-measure-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>INFO</level>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="AUDIT">
++        <file>${IOTDB_HOME}/logs/log_datanode_audit.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${IOTDB_HOME}/logs/log-datanode-audit-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>INFO</level>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="QUERY_DEBUG">
++        <file>${IOTDB_HOME}/logs/log_datanode_query_debug.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${IOTDB_HOME}/logs/log-datanode-query-debug-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>INFO</level>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="SLOW_SQL">
++        <file>${IOTDB_HOME}/logs/log_datanode_slow_sql.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${IOTDB_HOME}/logs/log-datanode-slow-sql-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>INFO</level>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="SAMPLED_QUERIES">
++        <file>${IOTDB_HOME}/logs/log_datanode_sampled_queries.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${IOTDB_HOME}/logs/log-datanode-sampled-queries-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>INFO</level>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="COMPACTION">
++        <file>${IOTDB_HOME}/logs/log_datanode_compaction.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${IOTDB_HOME}/logs/log-datanode-compaction-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>INFO</level>
++        </filter>
++    </appender>
++    <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="EXPLAIN_ANALYZE">
++        <file>${IOTDB_HOME}/logs/log_explain_analyze.log</file>
++        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
++            <fileNamePattern>${IOTDB_HOME}/logs/log-datanode-explain-%d{yyyyMMdd}.log.gz</fileNamePattern>
++            <maxHistory>30</maxHistory>
++        </rollingPolicy>
++        <append>true</append>
++        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>INFO</level>
++        </filter>
++    </appender>
++    <root level="info">
++        <appender-ref ref="FILETRACE"/>
++        <appender-ref ref="FILEDEBUG"/>
++        <appender-ref ref="FILEWARN"/>
++        <appender-ref ref="FILEERROR"/>
++        <appender-ref ref="FILEALL"/>
++        <appender-ref ref="stdout"/>
++    </root>
++    <logger level="OFF" name="io.moquette.broker.metrics.MQTTMessageLogger"/>
++    <logger level="info" name="org.apache.iotdb.db.service"/>
++    <logger level="info" name="org.apache.iotdb.db.conf"/>
++    <logger level="info" name="org.apache.iotdb.db.cost.statistic">
++        <appender-ref ref="FILE_COST_MEASURE"/>
++    </logger>
++    <logger level="info" name="IoTDB_AUDIT_LOGGER">
++        <appender-ref ref="AUDIT"/>
++    </logger>
++    <logger level="info" name="QUERY_DEBUG">
++        <appender-ref ref="QUERY_DEBUG"/>
++    </logger>
++    <logger level="info" name="SLOW_SQL" additivity="false">
++        <appender-ref ref="SLOW_SQL"/>
++    </logger>
++    <logger level="info" name="SAMPLED_QUERIES" additivity="false">
++        <appender-ref ref="SAMPLED_QUERIES"/>
++    </logger>
++    <logger level="info" name="QUERY_FREQUENCY">
++        <appender-ref ref="QUERY_FREQUENCY"/>
++    </logger>
++    <logger level="info" name="DETAILED_FAILURE_QUERY_TRACE"/>
++    <logger level="info" name="COMPACTION">
++        <appender-ref ref="COMPACTION"/>
++    </logger>
++    <logger level="info" name="org.apache.iotdb.pipe.api">
++        <appender-ref ref="PIPE"/>
++    </logger>
++    <logger level="info" name="org.apache.iotdb.db.pipe">
++        <appender-ref ref="PIPE"/>
++    </logger>
++    <logger level="info" name="org.apache.iotdb.commons.pipe">
++        <appender-ref ref="PIPE"/>
++    </logger>
++    <logger level="info" name="EXPLAIN_ANALYZE" additivity="false">
++        <appender-ref ref="EXPLAIN_ANALYZE"/>
++    </logger>
++</configuration>
diff --cc dn1/conf/logback-tool.xml
index 90f9b2772b9,00000000000..7b0e9b8295e
mode 100644,000000..100644
--- a/dn1/conf/logback-tool.xml
+++ b/dn1/conf/logback-tool.xml
@@@ -1,37 -1,0 +1,36 @@@
 +<?xml version="1.0" encoding="UTF-8"?>
 +<!--
 +
 +    Licensed to the Apache Software Foundation (ASF) under one
 +    or more contributor license agreements.  See the NOTICE file
 +    distributed with this work for additional information
 +    regarding copyright ownership.  The ASF licenses this file
 +    to you under the Apache License, Version 2.0 (the
 +    "License"); you may not use this file except in compliance
 +    with the License.  You may obtain a copy of the License at
 +
 +        http://www.apache.org/licenses/LICENSE-2.0
 +
 +    Unless required by applicable law or agreed to in writing,
 +    software distributed under the License is distributed on an
 +    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 +    KIND, either express or implied.  See the License for the
 +    specific language governing permissions and limitations
 +    under the License.
 +
 +-->
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-     <modelVersion>4.0.0</modelVersion>
-     <parent>
-         <groupId>org.apache.iotdb</groupId>
-         <artifactId>iotdb-examples</artifactId>
-         <version>2.0.7-SNAPSHOT</version>
-     </parent>
-     <artifactId>mqtt-example</artifactId>
-     <name>IoTDB: Example: MQTT</name>
-     <dependencies>
-         <dependency>
-             <groupId>org.fusesource.mqtt-client</groupId>
-             <artifactId>mqtt-client</artifactId>
-         </dependency>
-     </dependencies>
- </project>
++<configuration scan="true" scanPeriod="60 seconds">
++    <appender class="ch.qos.logback.core.ConsoleAppender" name="stdout">
++        <Target>System.out</Target>
++        <encoder>
++            <pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
++            <charset>utf-8</charset>
++        </encoder>
++        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
++            <level>ERROR</level>
++        </filter>
++    </appender>
++    <root level="error">
++        <appender-ref ref="stdout"/>
++    </root>
++</configuration>
diff --cc dn1/conf/windows/confignode-env.bat
index 00000000000,00000000000..baeed004667
new file mode 100755
--- /dev/null
+++ b/dn1/conf/windows/confignode-env.bat
@@@ -1,0 -1,0 +1,165 @@@
++@REM
++@REM Licensed to the Apache Software Foundation (ASF) under one
++@REM or more contributor license agreements.  See the NOTICE file
++@REM distributed with this work for additional information
++@REM regarding copyright ownership.  The ASF licenses this file
++@REM to you under the Apache License, Version 2.0 (the
++@REM "License"); you may not use this file except in compliance
++@REM with the License.  You may obtain a copy of the License at
++@REM
++@REM     http://www.apache.org/licenses/LICENSE-2.0
++@REM
++@REM Unless required by applicable law or agreed to in writing,
++@REM software distributed under the License is distributed on an
++@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++@REM KIND, either express or implied.  See the License for the
++@REM specific language governing permissions and limitations
++@REM under the License.
++@REM
++
++@echo off
++
++@REM You can set datanode memory size, example '2G' or '2048M'
++set MEMORY_SIZE=
++
++@REM true or false
++@REM DO NOT FORGET TO MODIFY THE PASSWORD FOR SECURITY (%CONFIGNODE_CONF%\jmx.password and %{CONFIGNODE_CONF%\jmx.access)
++set JMX_LOCAL="true"
++set JMX_PORT="32000"
++@REM only take effect when the jmx_local=false
++@REM You need to change this IP as a public IP if you want to remotely connect IoTDB ConfigNode by JMX.
++@REM  0.0.0.0 is not allowed
++set JMX_IP="127.0.0.1"
++
++if %JMX_LOCAL% == "false" (
++  echo "setting remote JMX..."
++  @REM you may have no permission to run chmod. If so, contact your system administrator.
++  set CONFIGNODE_JMX_OPTS=-Dcom.sun.management.jmxremote^
++  -Dcom.sun.management.jmxremote.port=%JMX_PORT%^
++  -Dcom.sun.management.jmxremote.rmi.port=%JMX_PORT%^
++  -Djava.rmi.server.randomIDs=true^
++  -Dcom.sun.management.jmxremote.ssl=false^
++  -Dcom.sun.management.jmxremote.authenticate=false^
++  -Dcom.sun.management.jmxremote.password.file="%CONFIGNODE_CONF%\jmx.password"^
++  -Dcom.sun.management.jmxremote.access.file="%CONFIGNODE_CONF%\jmx.access"^
++  -Djava.rmi.server.hostname=%JMX_IP%
++) else (
++  echo "setting local JMX..."
++)
++
++set CONFIGNODE_JMX_OPTS=%CONFIGNODE_JMX_OPTS% -Diotdb.jmx.local=%JMX_LOCAL%
++
++REM Replace wmic with PowerShell for CPU core count
++for /f %%b in ('powershell -NoProfile -Command "$v=$host.Version.Major; if($v -lt 3) {(Get-WmiObject Win32_Processor).NumberOfCores} else {(Get-CimInstance -ClassName Win32_Processor).NumberOfCores}"') do (
++    set system_cpu_cores=%%b
++)
++
++if %system_cpu_cores% LSS 1 set system_cpu_cores=1
++
++REM Replace wmic with PowerShell for total physical memory
++for /f %%b in ('powershell -NoProfile -Command "$v=$host.Version.Major; $mem=if($v -lt 3){(Get-WmiObject Win32_ComputerSystem).TotalPhysicalMemory} else{(Get-CimInstance -ClassName Win32_ComputerSystem).TotalPhysicalMemory}; [math]::Round($mem/1048576)"') do (
++    set system_memory_in_mb=%%b
++)
++
++REM Remove VBScript usage for memory calculation
++set system_memory_in_mb=%system_memory_in_mb:,=%
++
++@REM suggest using memory, system memory 3 / 10
++set /a suggest_=%system_memory_in_mb%/10*3
++
++if "%MEMORY_SIZE%"=="" (
++  set /a memory_size_in_mb=%suggest_%
++) else (
++  if "%MEMORY_SIZE:~-1%"=="M" (
++    set /a memory_size_in_mb=%MEMORY_SIZE:~0,-1%
++  ) else if "%MEMORY_SIZE:~-1%"=="G" (
++    set /a memory_size_in_mb=%MEMORY_SIZE:~0,-1%*1024
++  ) else (
++    echo "Invalid format of MEMORY_SIZE, please use the format like 2048M or 2G."
++    exit /b 1
++  )
++)
++
++@REM set on heap memory size
++@REM when memory_size_in_mb is less than 4 * 1024, we will set on heap memory size to memory_size_in_mb / 4 * 3
++@REM when memory_size_in_mb is greater than 4 * 1024 and less than 16 * 1024, we will set on heap memory size to memory_size_in_mb / 5 * 4
++@REM when memory_size_in_mb is greater than 16 * 1024 and less than 128 * 1024, we will set on heap memory size to memory_size_in_mb / 8 * 7
++@REM when memory_size_in_mb is greater than 128 * 1024, we will set on heap memory size to memory_size_in_mb - 16 * 1024
++if %memory_size_in_mb% LSS 4096 (
++  set /a on_heap_memory_size_in_mb=%memory_size_in_mb%/4*3
++) else if %memory_size_in_mb% LSS 16384 (
++  set /a on_heap_memory_size_in_mb=%memory_size_in_mb%/5*4
++) else if %memory_size_in_mb% LSS 131072 (
++  set /a on_heap_memory_size_in_mb=%memory_size_in_mb%/8*7
++) else (
++  set /a on_heap_memory_size_in_mb=%memory_size_in_mb%-16384
++)
++set /a off_heap_memory_size_in_mb=%memory_size_in_mb%-%on_heap_memory_size_in_mb%
++
++set ON_HEAP_MEMORY=%on_heap_memory_size_in_mb%M
++set OFF_HEAP_MEMORY=%off_heap_memory_size_in_mb%M
++
++set IOTDB_ALLOW_HEAP_DUMP="true"
++
++@REM on heap memory size
++@REM set ON_HEAP_MEMORY=2G
++@REM off heap memory size
++@REM set OFF_HEAP_MEMORY=512M
++
++if "%OFF_HEAP_MEMORY:~-1%"=="M" (
++    set /a off_heap_memory_size_in_mb=%OFF_HEAP_MEMORY:~0,-1%
++  ) else if "%OFF_HEAP_MEMORY:~-1%"=="G" (
++    set /a off_heap_memory_size_in_mb=%OFF_HEAP_MEMORY:~0,-1%*1024
++  ) 
++
++@REM threads number of io
++set IO_THREADS_NUMBER=100
++@REM Max cached buffer size, Note: unit can only be B!
++@REM which equals OFF_HEAP_MEMORY / IO_THREADS_NUMBER
++set /a MAX_CACHED_BUFFER_SIZE=%off_heap_memory_size_in_mb%/%IO_THREADS_NUMBER%*1024*1024
++
++set CONFIGNODE_HEAP_OPTS=-Xmx%ON_HEAP_MEMORY% -Xms%ON_HEAP_MEMORY%
++set CONFIGNODE_HEAP_OPTS=%CONFIGNODE_HEAP_OPTS% -XX:MaxDirectMemorySize=%OFF_HEAP_MEMORY%
++set CONFIGNODE_HEAP_OPTS=%CONFIGNODE_HEAP_OPTS% -Djdk.nio.maxCachedBufferSize=%MAX_CACHED_BUFFER_SIZE%
++set CONFIGNODE_HEAP_OPTS=%CONFIGNODE_HEAP_OPTS% -XX:+CrashOnOutOfMemoryError
++
++@REM if you want to dump the heap memory while OOM happening, you can use the following command, remember to replace /tmp/heapdump.hprof with your own file path and the folder where this file is located needs to be created in advance
++@REM CONFIGNODE_HEAP_OPTS=%CONFIGNODE_HEAP_OPTS% -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=\tmp\confignode_heapdump.hprof
++
++@REM You can put your env variable here
++@REM set JAVA_HOME=%JAVA_HOME%
++
++@REM set gc log.
++IF "%1" equ "printgc" (
++	IF "%JAVA_VERSION%" == "8" (
++	    md "%CONFIGNODE_HOME%\logs"
++		set CONFIGNODE_HEAP_OPTS=%CONFIGNODE_HEAP_OPTS% -Xloggc:"%CONFIGNODE_HOME%\logs\gc.log" -XX:+PrintGCDateStamps -XX:+PrintGCDetails  -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M
++	) ELSE (
++		md "%CONFIGNODE_HOME%\logs"
++		set CONFIGNODE_HEAP_OPTS=%CONFIGNODE_HEAP_OPTS%  -Xlog:gc=info,heap*=trace,age*=debug,safepoint=info,promotion*=trace:file="%CONFIGNODE_HOME%\logs\gc.log":time,uptime,pid,tid,level:filecount=10,filesize=10485760
++	)
++)
++
++@REM Add args for Java 11 and above, due to [JEP 396: Strongly Encapsulate JDK Internals by Default] (https://openjdk.java.net/jeps/396)
++IF "%JAVA_VERSION%" == "8" (
++    set ILLEGAL_ACCESS_PARAMS=
++) ELSE (
++    set ILLEGAL_ACCESS_PARAMS=--add-opens=java.base/java.util.concurrent=ALL-UNNAMED^
++     --add-opens=java.base/java.lang=ALL-UNNAMED^
++     --add-opens=java.base/java.util=ALL-UNNAMED^
++     --add-opens=java.base/java.nio=ALL-UNNAMED^
++     --add-opens=java.base/java.io=ALL-UNNAMED^
++     --add-opens=java.base/java.net=ALL-UNNAMED
++)
++
++@REM Apply tsfile locale option populated by Maven at package time
++@REM (see conf\windows\iotdb-common.bat; empty in default build, -Dtsfile.locale=zh under with-zh-locale).
++IF EXIST "%CONFIGNODE_CONF%\windows\iotdb-common.bat" (
++    CALL "%CONFIGNODE_CONF%\windows\iotdb-common.bat"
++    IF NOT "%TSFILE_LOCALE_JVM_OPT%"=="" (
++        set CONFIGNODE_JMX_OPTS=%CONFIGNODE_JMX_OPTS% %TSFILE_LOCALE_JVM_OPT%
++    )
++)
++
++echo ConfigNode on heap memory size = %ON_HEAP_MEMORY%B, off heap memory size = %OFF_HEAP_MEMORY%B
++echo If you want to change this configuration, please check conf/windows/confignode-env.bat.
diff --cc dn1/conf/windows/datanode-env.bat
index 00000000000,00000000000..ccaabf24bec
new file mode 100755
--- /dev/null
+++ b/dn1/conf/windows/datanode-env.bat
@@@ -1,0 -1,0 +1,196 @@@
++@REM
++@REM Licensed to the Apache Software Foundation (ASF) under one
++@REM or more contributor license agreements.  See the NOTICE file
++@REM distributed with this work for additional information
++@REM regarding copyright ownership.  The ASF licenses this file
++@REM to you under the Apache License, Version 2.0 (the
++@REM "License"); you may not use this file except in compliance
++@REM with the License.  You may obtain a copy of the License at
++@REM
++@REM     http://www.apache.org/licenses/LICENSE-2.0
++@REM
++@REM Unless required by applicable law or agreed to in writing,
++@REM software distributed under the License is distributed on an
++@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++@REM KIND, either express or implied.  See the License for the
++@REM specific language governing permissions and limitations
++@REM under the License.
++@REM
++
++@echo off
++
++@REM You can set datanode memory size, example '2G' or '2048M'
++set MEMORY_SIZE=
++
++@REM true or false
++@REM DO NOT FORGET TO MODIFY THE PASSWORD FOR SECURITY (%IOTDB_CONF%\jmx.password and %{IOTDB_CONF%\jmx.access)
++set JMX_LOCAL="true"
++set JMX_PORT="31999"
++@REM only take effect when the jmx_local=false
++@REM You need to change this IP as a public IP if you want to remotely connect IoTDB by JMX.
++@REM  0.0.0.0 is not allowed
++set JMX_IP="127.0.0.1"
++
++if %JMX_LOCAL% == "false" (
++  echo "setting remote JMX..."
++  @REM you may have no permission to run chmod. If so, contact your system administrator.
++  set IOTDB_JMX_OPTS=-Dcom.sun.management.jmxremote^
++  -Dcom.sun.management.jmxremote.port=%JMX_PORT%^
++  -Dcom.sun.management.jmxremote.rmi.port=%JMX_PORT%^
++  -Djava.rmi.server.randomIDs=true^
++  -Dcom.sun.management.jmxremote.ssl=false^
++  -Dcom.sun.management.jmxremote.authenticate=false^
++  -Dcom.sun.management.jmxremote.password.file="%IOTDB_CONF%\jmx.password"^
++  -Dcom.sun.management.jmxremote.access.file="%IOTDB_CONF%\jmx.acces"s^
++  -Djava.rmi.server.hostname=%JMX_IP%
++) else (
++  echo "setting local JMX..."
++)
++
++set IOTDB_JMX_OPTS=%IOTDB_JMX_OPTS% -Diotdb.jmx.local=%JMX_LOCAL%
++
++REM Replace wmic with PowerShell for CPU core count
++for /f %%b in ('powershell -NoProfile -Command "$v=$host.Version.Major; if($v -lt 3) {(Get-WmiObject Win32_Processor).NumberOfCores} else {(Get-CimInstance -ClassName Win32_Processor).NumberOfCores}"') do (
++    set system_cpu_cores=%%b
++)
++
++if %system_cpu_cores% LSS 1 set system_cpu_cores=1
++
++REM Replace wmic with PowerShell for total physical memory
++for /f %%b in ('powershell -NoProfile -Command "$v=$host.Version.Major; $mem=if($v -lt 3){(Get-WmiObject Win32_ComputerSystem).TotalPhysicalMemory} else{(Get-CimInstance -ClassName Win32_ComputerSystem).TotalPhysicalMemory}; [math]::Round($mem/1048576)"') do (
++    set system_memory_in_mb=%%b
++)
++
++REM Remove VBScript usage for memory calculation
++set system_memory_in_mb=%system_memory_in_mb:,=%
++
++set /a suggest_=%system_memory_in_mb%/2
++
++if "%MEMORY_SIZE%"=="" (
++  set /a memory_size_in_mb=%suggest_%
++) else (
++  if "%MEMORY_SIZE:~-1%"=="M" (
++    set /a memory_size_in_mb=%MEMORY_SIZE:~0,-1%
++  ) else if "%MEMORY_SIZE:~-1%"=="G" (
++    set /a memory_size_in_mb=%MEMORY_SIZE:~0,-1%*1024
++  ) else (
++    echo "Invalid format of MEMORY_SIZE, please use the format like 2048M or 2G."
++    exit /b 1
++  )
++)
++
++@REM set on heap memory size
++@REM when memory_size_in_mb is less than 4 * 1024, we will set on heap memory size to memory_size_in_mb / 4 * 3
++@REM when memory_size_in_mb is greater than 4 * 1024 and less than 16 * 1024, we will set on heap memory size to memory_size_in_mb / 5 * 4
++@REM when memory_size_in_mb is greater than 16 * 1024 and less than 128 * 1024, we will set on heap memory size to memory_size_in_mb / 8 * 7
++@REM when memory_size_in_mb is greater than 128 * 1024, we will set on heap memory size to memory_size_in_mb - 16 * 1024
++if %memory_size_in_mb% LSS 4096 (
++  set /a on_heap_memory_size_in_mb=%memory_size_in_mb%/4*3
++) else if %memory_size_in_mb% LSS 16384 (
++  set /a on_heap_memory_size_in_mb=%memory_size_in_mb%/5*4
++) else if %memory_size_in_mb% LSS 131072 (
++  set /a on_heap_memory_size_in_mb=%memory_size_in_mb%/8*7
++) else (
++  set /a on_heap_memory_size_in_mb=%memory_size_in_mb%-16384
++)
++set /a off_heap_memory_size_in_mb=%memory_size_in_mb%-%on_heap_memory_size_in_mb%
++
++set ON_HEAP_MEMORY=%on_heap_memory_size_in_mb%M
++set OFF_HEAP_MEMORY=%off_heap_memory_size_in_mb%M
++
++set IOTDB_ALLOW_HEAP_DUMP="true"
++
++@REM on heap memory size
++@REM set ON_HEAP_MEMORY=2G
++@REM off heap memory size
++@REM set OFF_HEAP_MEMORY=512M
++
++if "%OFF_HEAP_MEMORY:~-1%"=="M" (
++    set /a off_heap_memory_size_in_mb=%OFF_HEAP_MEMORY:~0,-1%
++  ) else if "%OFF_HEAP_MEMORY:~-1%"=="G" (
++    set /a off_heap_memory_size_in_mb=%OFF_HEAP_MEMORY:~0,-1%*1024
++  ) 
++
++@REM threads number of io
++set IO_THREADS_NUMBER=1000
++@REM Max cached buffer size, Note: unit can only be B!
++@REM which equals OFF_HEAP_MEMORY / IO_THREADS_NUMBER
++set /a MAX_CACHED_BUFFER_SIZE=%off_heap_memory_size_in_mb%/%IO_THREADS_NUMBER%*1024*1024
++
++set IOTDB_HEAP_OPTS=-Xmx%ON_HEAP_MEMORY% -Xms%ON_HEAP_MEMORY%
++set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:MaxDirectMemorySize=%OFF_HEAP_MEMORY%
++set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -Djdk.nio.maxCachedBufferSize=%MAX_CACHED_BUFFER_SIZE%
++set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:+CrashOnOutOfMemoryError
++set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:+UseAdaptiveSizePolicy
++set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -Xss512k
++@REM options below try to optimize safepoint stw time.
++set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:+UnlockDiagnosticVMOptions
++set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:GuaranteedSafepointInterval=0
++@REM these two options print safepoints with pauses longer than 1000ms to the standard output. You can see these logs via redirection when starting in the background like "start-datanode.sh > log_datanode_safepoint.txt"
++set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:SafepointTimeoutDelay=1000
++set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:+SafepointTimeout
++
++@REM option below tries to optimize safepoint stw time for large counted loop.
++@REM NOTE: it may have an impact on JIT's black-box optimization.
++@REM set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:+UseCountedLoopSafepoints
++
++@REM When the GC time is too long, if there are remaining CPU resources, you can try to turn on and increase options below.
++@REM for /F "tokens=2 delims==" %%I in ('wmic cpu get NumberOfCores /value') do (
++@REM     set "CPU_PROCESSOR_NUM=%%I"
++@REM )
++@REM set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:ParallelGCThreads=%CPU_PROCESSOR_NUM%
++
++@REM if there are much of stw time of reference process in GC log, you can turn on option below.
++@REM NOTE: it may have an impact on application's throughput.
++@REM set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:+ParallelRefProcEnabled
++
++@REM this option can reduce the overhead caused by memory allocation, page fault interrupts, etc. during JVM operation.
++@REM NOTE: it may reduce memory utilization and trigger OOM killer when memory is tight.
++@REM set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:+AlwaysPreTouch
++
++@REM if you want to dump the heap memory while OOM happening, you can use the following command, remember to replace /tmp/heapdump.hprof with your own file path and the folder where this file is located needs to be created in advance
++@REM set IOTDB_JMX_OPTS=%IOTDB_HEAP_OPTS% -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=\tmp\datanode_heapdump.hprof
++
++@REM You can put your env variable here
++@REM set JAVA_HOME=%JAVA_HOME%
++
++@REM set gc log.
++IF "%1" equ "printgc" (
++	IF "%JAVA_VERSION%" == "8" (
++	    md "%IOTDB_HOME%\logs"
++		set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -Xloggc:"%IOTDB_HOME%\logs\gc.log" -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M
++		@REM For more detailed GC information, you can uncomment option below.
++        @REM NOTE: more detailed GC information may bring larger GC log files.
++        @REM set IOTDB_JMX_OPTS=%IOTDB_JMX_OPTS% -Xloggc:"%IOTDB_HOME%\logs\gc.log" -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+UseGCLogFileRotation -XX:+PrintTenuringDistribution -XX:+PrintHeapAtGC -XX:+PrintReferenceGC -XX:+PrintSafepointStatistics -XX:PrintSafepointStatisticsCount=1 -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M
++	) ELSE (
++		md "%IOTDB_HOME%\logs"
++		set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS%  -Xlog:gc=info,heap*=trace,age*=debug,safepoint=info,promotion*=trace:file="%IOTDB_HOME%\logs\gc.log":time,uptime,pid,tid,level:filecount=10,filesize=10485760
++		@REM For more detailed GC information, you can uncomment option below.
++        @REM NOTE: more detailed GC information may bring larger GC log files.
++        @REM set IOTDB_JMX_OPTS=%IOTDB_JMX_OPTS% -Xlog:gc*=debug,heap*=debug,age*=trace,metaspace*=info,safepoint*=debug,promotion*=info:file="%IOTDB_HOME%\logs\gc.log":time,uptime,pid,tid,level,tags:filecount=10,filesize=100M
++	)
++)
++
++@REM Add args for Java 11 and above, due to [JEP 396: Strongly Encapsulate JDK Internals by Default] (https://openjdk.java.net/jeps/396)
++IF "%JAVA_VERSION%" == "8" (
++    set ILLEGAL_ACCESS_PARAMS=
++) ELSE (
++    set ILLEGAL_ACCESS_PARAMS=--add-opens=java.base/java.util.concurrent=ALL-UNNAMED^
++     --add-opens=java.base/java.lang=ALL-UNNAMED^
++     --add-opens=java.base/java.util=ALL-UNNAMED^
++     --add-opens=java.base/java.nio=ALL-UNNAMED^
++     --add-opens=java.base/java.io=ALL-UNNAMED^
++     --add-opens=java.base/java.net=ALL-UNNAMED
++)
++
++@REM Apply tsfile locale option populated by Maven at package time
++@REM (see conf\windows\iotdb-common.bat; empty in default build, -Dtsfile.locale=zh under with-zh-locale).
++IF EXIST "%IOTDB_CONF%\windows\iotdb-common.bat" (
++    CALL "%IOTDB_CONF%\windows\iotdb-common.bat"
++    IF NOT "%TSFILE_LOCALE_JVM_OPT%"=="" (
++        set IOTDB_JMX_OPTS=%IOTDB_JMX_OPTS% %TSFILE_LOCALE_JVM_OPT%
++    )
++)
++
++echo DataNode on heap memory size = %ON_HEAP_MEMORY%B, off heap memory size = %OFF_HEAP_MEMORY%B
++echo If you want to change this configuration, please check conf/windows/datanode-env.bat.
diff --cc dn1/conf/windows/iotdb-common.bat
index 00000000000,00000000000..021676b4602
new file mode 100755
--- /dev/null
+++ b/dn1/conf/windows/iotdb-common.bat
@@@ -1,0 -1,0 +1,24 @@@
++@REM
++@REM Licensed to the Apache Software Foundation (ASF) under one
++@REM or more contributor license agreements.  See the NOTICE file
++@REM distributed with this work for additional information
++@REM regarding copyright ownership.  The ASF licenses this file
++@REM to you under the Apache License, Version 2.0 (the
++@REM "License"); you may not use this file except in compliance
++@REM with the License.  You may obtain a copy of the License at
++@REM
++@REM     http://www.apache.org/licenses/LICENSE-2.0
++@REM
++@REM Unless required by applicable law or agreed to in writing,
++@REM software distributed under the License is distributed on an
++@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++@REM KIND, either express or implied.  See the License for the
++@REM specific language governing permissions and limitations
++@REM under the License.
++@REM
++
++@REM JVM option for selecting tsfile's runtime locale (log/exception messages).
++@REM This file is filtered by Maven at package time:
++@REM   - Default build: TSFILE_LOCALE_JVM_OPT is empty (English).
++@REM   - `with-zh-locale` profile: TSFILE_LOCALE_JVM_OPT=-Dtsfile.locale=zh.
++set TSFILE_LOCALE_JVM_OPT=
diff --cc dn1/licenses/CDDL License 1.1
index 00000000000,00000000000..a92fd024ebd
new file mode 100644
--- /dev/null
+++ b/dn1/licenses/CDDL License 1.1
@@@ -1,0 -1,0 +1,90 @@@
++Common Development and Distribution License 1.1
++
++Short identifier
++CDDL-1.1
++
++Other web pages for this license
++http://glassfish.java.net/public/CDDL+GPL_1_1.html
++https://javaee.github.io/glassfish/LICENSE
++Notes
++Same as 1.0, but changes name from Sun to Oracle in section 4.1 and adds patent infringement termination clause (section 6.3)
++
++Text
++COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) 
++Version 1.1
++
++1. Definitions.
++1.1. "Contributor" means each individual or entity that creates or contributes to the creation of Modifications.
++1.2. "Contributor Version" means the combination of the Original Software, prior Modifications used by a Contributor (if any), and the Modifications made by that particular Contributor.
++1.3. "Covered Software" means (a) the Original Software, or (b) Modifications, or (c) the combination of files containing Original Software with files containing Modifications, in each case including portions thereof.
++1.4. "Executable" means the Covered Software in any form other than Source Code.
++1.5. "Initial Developer" means the individual or entity that first makes Original Software available under this License.
++1.6. "Larger Work" means a work which combines Covered Software or portions thereof with code not governed by the terms of this License.
++1.7. "License" means this document.
++1.8. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein.
++1.9. "Modifications" means the Source Code and Executable form of any of the following:
++A. Any file that results from an addition to, deletion from or modification of the contents of a file containing Original Software or previous Modifications;
++B. Any new file that contains any part of the Original Software or previous Modification; or
++C. Any new file that is contributed or otherwise made available under the terms of this License.
++1.10. "Original Software" means the Source Code and Executable form of computer software code that is originally released under this License.
++1.11. "Patent Claims" means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor.
++1.12. "Source Code" means (a) the common form of computer software code in which modifications are made and (b) associated documentation included in or with such code.
++1.13. "You" (or "Your") means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outst [...]
++2. License Grants.
++2.1. The Initial Developer Grant. 
++Conditioned upon Your compliance with Section 3.1 below and subject to third party intellectual property claims, the Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license:
++(a) under intellectual property rights (other than patent or trademark) Licensable by Initial Developer, to use, reproduce, modify, display, perform, sublicense and distribute the Original Software (or portions thereof), with or without Modifications, and/or as part of a Larger Work; and
++(b) under Patent Claims infringed by the making, using or selling of Original Software, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Software (or portions thereof).
++(c) The licenses granted in Sections 2.1(a) and (b) are effective on the date Initial Developer first distributes or otherwise makes the Original Software available to a third party under the terms of this License.
++(d) Notwithstanding Section 2.1(b) above, no patent license is granted: (1) for code that You delete from the Original Software, or (2) for infringements caused by: (i) the modification of the Original Software, or (ii) the combination of the Original Software with other software or devices.
++2.2. Contributor Grant. 
++Conditioned upon Your compliance with Section 3.1 below and subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license:
++(a) under intellectual property rights (other than patent or trademark) Licensable by Contributor to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof), either on an unmodified basis, with other Modifications, as Covered Software and/or as part of a Larger Work; and
++(b) under Patent Claims infringed by the making, using, or selling of Modifications made by that Contributor either alone and/or in combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: (1) Modifications made by that Contributor (or portions thereof); and (2) the combination of Modifications made by that Contributor with its Contributor Version (or portions of such combination).
++(c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first distributes or otherwise makes the Modifications available to a third party.
++(d) Notwithstanding Section 2.2(b) above, no patent license is granted: (1) for any code that Contributor has deleted from the Contributor Version; (2) for infringements caused by: (i) third party modifications of Contributor Version, or (ii) the combination of Modifications made by that Contributor with other software (except as part of the Contributor Version) or other devices; or (3) under Patent Claims infringed by Covered Software in the absence of Modifications made by that Contributor.
++3. Distribution Obligations.
++3.1. Availability of Source Code. 
++Any Covered Software that You distribute or otherwise make available in Executable form must also be made available in Source Code form and that Source Code form must be distributed only under the terms of this License. You must include a copy of this License with every copy of the Source Code form of the Covered Software You distribute or otherwise make available. You must inform recipients of any such Covered Software in Executable form as to how they can obtain such Covered Software  [...]
++3.2. Modifications. 
++The Modifications that You create or to which You contribute are governed by the terms of this License. You represent that You believe Your Modifications are Your original creation(s) and/or You have sufficient rights to grant the rights conveyed by this License.
++3.3. Required Notices. 
++You must include a notice in each of Your Modifications that identifies You as the Contributor of the Modification. You may not remove or alter any copyright, patent or trademark notices contained within the Covered Software, or any notices of licensing or any descriptive text giving attribution to any Contributor or the Initial Developer.
++3.4. Application of Additional Terms. 
++You may not offer or impose any terms on any Covered Software in Source Code form that alters or restricts the applicable version of this License or the recipients' rights hereunder. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, you may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear that any suc [...]
++3.5. Distribution of Executable Versions. 
++You may distribute the Executable form of the Covered Software under the terms of this License or under the terms of a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable form does not attempt to limit or alter the recipient's rights in the Source Code form from the rights set forth in this License. If You distribute the Covered Software in Executable form  [...]
++3.6. Larger Works. 
++You may create a Larger Work by combining Covered Software with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Software.
++4. Versions of the License.
++4.1. New Versions. 
++Oracle is the initial license steward and may publish revised and/or new versions of this License from time to time. Each version will be given a distinguishing version number. Except as provided in Section 4.3, no one other than the license steward has the right to modify this License.
++4.2. Effect of New Versions. 
++You may always continue to use, distribute or otherwise make the Covered Software available under the terms of the version of the License under which You originally received the Covered Software. If the Initial Developer includes a notice in the Original Software prohibiting it from being distributed or otherwise made available under any subsequent version of the License, You must distribute and make the Covered Software available under the terms of the version of the License under whic [...]
++4.3. Modified Versions. 
++When You are an Initial Developer and You want to create a new license for Your Original Software, You may create and use a modified version of this License if You: (a) rename the license and remove any references to the name of the license steward (except to note that the license differs from this License); and (b) otherwise make it clear that the license contains terms which differ from this License.
++5. DISCLAIMER OF WARRANTY.
++COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME TH [...]
++
++6. TERMINATION.
++6.1. This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive.
++6.2. If You assert a patent infringement claim (excluding declaratory judgment actions) against Initial Developer or a Contributor (the Initial Developer or Contributor against whom You assert such claim is referred to as "Participant") alleging that the Participant Software (meaning the Contributor Version where the Participant is a Contributor or the Original Software where the Participant is the Initial Developer) directly or indirectly infringes any patent, then any and all rights g [...]
++6.3. If You assert a patent infringement claim against Participant alleging that the Participant Software directly or indirectly infringes any patent where such claim is resolved (such as by license or settlement) prior to the initiation of patent infringement litigation, then the reasonable value of the licenses granted by such Participant under Sections 2.1 or 2.2 shall be taken into account in determining the amount or value of any payment or license.
++6.4. In the event of termination under Sections 6.1 or 6.2 above, all end user licenses that have been validly granted by You or any distributor hereunder prior to termination (excluding licenses granted to You by any distributor) shall survive termination.
++7. LIMITATION OF LIABILITY.
++UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCI [...]
++
++8. U.S. GOVERNMENT END USERS.
++The Covered Software is a "commercial item," as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer software" (as that term is defined at 48 C.F.R. § 252.227-7014(a)(1)) and "commercial computer software documentation" as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Software with only those rights set forth h [...]
++
++9. MISCELLANEOUS.
++This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by the law of the jurisdiction specified in a notice contained within the Original Software (except to the extent applicable law, if any, provides otherwise), excluding such jurisdiction's conflict-of-law provisions. Any litigation [...]
++
++10. RESPONSIBILITY FOR CLAIMS.
++As between Initial Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability.
++
++NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) 
++The code released under the CDDL shall be governed by the laws of the State of California (excluding conflict-of-law provisions). Any litigation relating to this License shall be subject to the jurisdiction of the Federal Courts of the Northern District of California and the state courts of the State of California, with venue lying in Santa Clara County, California.
++
++Standard License Header
++There is no standard license header for the license
diff --cc dn1/licenses/Eclipse Public License 1.0 (EPL-1.0)
index 00000000000,00000000000..6c41e9c0399
new file mode 100644
--- /dev/null
+++ b/dn1/licenses/Eclipse Public License 1.0 (EPL-1.0)
@@@ -1,0 -1,0 +1,83 @@@
++Eclipse Public License 1.0 (EPL-1.0) 
++
++Eclipse Public License, Version 1.0 (EPL-1.0)
++THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
++
++1. DEFINITIONS
++
++"Contribution" means:
++
++a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
++b) in the case of each subsequent Contributor:
++i) changes to the Program, and
++ii) additions to the Program;
++where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
++
++
++ 
++"Contributor" means any person or entity that distributes the Program.
++
++"Licensed Patents" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
++
++"Program" means the Contributions distributed in accordance with this Agreement.
++
++"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
++
++2. GRANT OF RIGHTS
++
++a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
++b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contributi [...]
++c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted her [...]
++d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
++
++
++ 
++3. REQUIREMENTS
++
++A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
++
++a) it complies with the terms and conditions of this Agreement; and
++b) its license agreement:
++i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
++ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
++iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
++iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
++
++
++ 
++When the Program is made available in source code form:
++
++a) it must be made available under this Agreement; and
++b) a copy of this Agreement must be included with each copy of the Program.
++
++
++ 
++Contributors may not remove or alter any copyright notices contained within the Program.
++
++Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
++
++4. COMMERCIAL DISTRIBUTION
++
++Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Co [...]
++
++For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims [...]
++
++5. NO WARRANTY
++
++EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this A [...]
++
++6. DISCLAIMER OF LIABILITY
++
++EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN I [...]
++
++7. GENERAL
++
++If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
++
++If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
++
++All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Rec [...]
++
++Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the respon [...]
++
++This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
diff --cc dn1/licenses/Eclipse Public License version 2.0 (EPL-2.0)
index 00000000000,00000000000..0f7594a080a
new file mode 100644
--- /dev/null
+++ b/dn1/licenses/Eclipse Public License version 2.0 (EPL-2.0)
@@@ -1,0 -1,0 +1,81 @@@
++Eclipse Public License version 2.0
++
++THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (“AGREEMENT”). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
++
++1. DEFINITIONS
++“Contribution” means:
++
++a) in the case of the initial Contributor, the initial content Distributed under this Agreement, and
++b) in the case of each subsequent Contributor:
++i) changes to the Program, and
++ii) additions to the Program;
++where such changes and/or additions to the Program originate from and are Distributed by that particular Contributor. A Contribution “originates” from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include changes or additions to the Program that are not Modified Works.
++“Contributor” means any person or entity that Distributes the Program.
++
++“Licensed Patents” mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
++
++“Program” means the Contributions Distributed in accordance with this Agreement.
++
++“Recipient” means anyone who receives the Program under this Agreement or any Secondary License (as applicable), including Contributors.
++
++“Derivative Works” shall mean any work, whether in Source Code or other form, that is based on (or derived from) the Program and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship.
++
++“Modified Works” shall mean any work in Source Code or other form that results from an addition to, deletion from, or modification of the contents of the Program, including, for purposes of clarity any new file in Source Code form that contains any contents of the Program. Modified Works shall not include works that contain only declarations, interfaces, types, classes, structures, or files of the Program solely in each case in order to link to, bind by name, or subclass the Program or  [...]
++
++“Distribute” means the acts of a) distributing or b) making available in any manner that enables the transfer of a copy.
++
++“Source Code” means the form of a Program preferred for making modifications, including but not limited to software source code, documentation source, and configuration files.
++
++“Secondary License” means either the GNU General Public License, Version 2.0, or any later versions of that license, including any exceptions or additional permissions as identified by the initial Contributor.
++
++2. GRANT OF RIGHTS
++a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, Distribute and sublicense the Contribution of such Contributor, if any, and such Derivative Works.
++b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in Source Code or other form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution caus [...]
++c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted her [...]
++d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
++e) Notwithstanding the terms of any Secondary License, no Contributor makes additional grants to any Recipient (other than those set forth in this Agreement) as a result of such Recipient's receipt of the Program under the terms of a Secondary License (if permitted under the terms of Section 3).
++3. REQUIREMENTS
++3.1 If a Contributor Distributes the Program in any form, then:
++
++a) the Program must also be made available as Source Code, in accordance with section 3.2, and the Contributor must accompany the Program with a statement that the Source Code for the Program is available under this Agreement, and informs Recipients how to obtain it in a reasonable manner on or through a medium customarily used for software exchange; and
++b) the Contributor may Distribute the Program under a license different than this Agreement, provided that such license:
++i) effectively disclaims on behalf of all other Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
++ii) effectively excludes on behalf of all other Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
++iii) does not attempt to limit or alter the recipients' rights in the Source Code under section 3.2; and
++iv) requires any subsequent distribution of the Program by any party to be under a license that satisfies the requirements of this section 3.
++3.2 When the Program is Distributed as Source Code:
++
++a) it must be made available under this Agreement, or if the Program (i) is combined with other material in a separate file or files made available under a Secondary License, and (ii) the initial Contributor attached to the Source Code the notice described in Exhibit A of this Agreement, then the Program may be made available under the terms of such Secondary Licenses, and
++b) a copy of this Agreement must be included with each copy of the Program.
++3.3 Contributors may not remove or alter any copyright, patent, trademark, attribution notices, disclaimers of warranty, or limitations of liability (‘notices’) contained within the Program from any copy of the Program which they Distribute, provided that Contributors may add their own appropriate notices.
++
++4. COMMERCIAL DISTRIBUTION
++Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor (“Commercial Co [...]
++
++For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims [...]
++
++5. NO WARRANTY
++EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks asso [...]
++
++6. DISCLAIMER OF LIABILITY
++EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE E [...]
++
++7. GENERAL
++If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
++
++If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
++
++All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Rec [...]
++
++Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the respon [...]
++
++Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. Nothing in this Agreement is intended to be enforceable by any entity that is not a Contributor or Recipient. No third-party beneficiary rights are created under this Agreement.
++
++Exhibit A – Form of Secondary Licenses Notice
++“This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: {name license(s), version(s), and exceptions or additional permissions here}.”
++
++Simply including a copy of this Agreement, including this Exhibit A is not sufficient to license the Source Code under Secondary Licenses.
++
++If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.
++
++You may add additional accurate notices of copyright ownership.
diff --cc dn1/licenses/The 2-Clause BSD License
index 00000000000,00000000000..2e418233b23
new file mode 100644
--- /dev/null
+++ b/dn1/licenses/The 2-Clause BSD License
@@@ -1,0 -1,0 +1,14 @@@
++The 2-Clause BSD License
++SPDX short identifier: BSD-2-Clause
++
++Note: This license has also been called the "Simplified BSD License" and the "FreeBSD License". See also the 3-clause BSD License.
++
++Copyright 1998 Regents of the University of California
++
++Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
++
++1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
++
++2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
++
++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PRO [...]
diff --cc dn1/licenses/The 3-Clause BSD License
index 00000000000,00000000000..e8b3214eb6b
new file mode 100644
--- /dev/null
+++ b/dn1/licenses/The 3-Clause BSD License
@@@ -1,0 -1,0 +1,16 @@@
++The 3-Clause BSD License
++SPDX short identifier: BSD-3-Clause
++
++Note: This license has also been called the "New BSD License" or "Modified BSD License". See also the 2-clause BSD License.
++
++Copyright (c) 2012 Terence Parr and Sam Harwell
++
++Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
++
++1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
++
++2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
++
++3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
++
++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PRO [...]
diff --cc dn1/licenses/The MIT License (QOS.ch)
index 00000000000,00000000000..ba8ac4d4393
new file mode 100644
--- /dev/null
+++ b/dn1/licenses/The MIT License (QOS.ch)
@@@ -1,0 -1,0 +1,21 @@@
++Copyright (c) 2004-2017 QOS.ch
++All rights reserved.
++
++Permission is hereby granted, free  of charge, to any person obtaining
++a  copy  of this  software  and  associated  documentation files  (the
++"Software"), to  deal in  the Software without  restriction, including
++without limitation  the rights to  use, copy, modify,  merge, publish,
++distribute,  sublicense, and/or sell  copies of  the Software,  and to
++permit persons to whom the Software  is furnished to do so, subject to
++the following conditions:
++
++The  above  copyright  notice  and  this permission  notice  shall  be
++included in all copies or substantial portions of the Software.
++
++THE  SOFTWARE IS  PROVIDED  "AS  IS", WITHOUT  WARRANTY  OF ANY  KIND,
++EXPRESS OR  IMPLIED, INCLUDING  BUT NOT LIMITED  TO THE  WARRANTIES OF
++MERCHANTABILITY,    FITNESS    FOR    A   PARTICULAR    PURPOSE    AND
++NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
++LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
++OF CONTRACT, TORT OR OTHERWISE,  ARISING FROM, OUT OF OR IN CONNECTION
++WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --cc dn1/licenses/The MIT License (progressbar)
index 00000000000,00000000000..3590cb59a22
new file mode 100644
--- /dev/null
+++ b/dn1/licenses/The MIT License (progressbar)
@@@ -1,0 -1,0 +1,21 @@@
++The MIT License (MIT)
++
++Copyright (c) 2015--2019 Tongfei Chen
++
++Permission is hereby granted, free of charge, to any person obtaining a copy
++of this software and associated documentation files (the "Software"), to deal
++in the Software without restriction, including without limitation the rights
++to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
++copies of the Software, and to permit persons to whom the Software is
++furnished to do so, subject to the following conditions:
++
++The above copyright notice and this permission notice shall be included in all
++copies or substantial portions of the Software.
++
++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
++OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
++SOFTWARE.
diff --cc dn1/sbin/cluster/start-all.sh
index 00000000000,00000000000..2571688e376
new file mode 100755
--- /dev/null
+++ b/dn1/sbin/cluster/start-all.sh
@@@ -1,0 -1,0 +1,82 @@@
++#!/bin/bash
++#
++# Licensed to the Apache Software Foundation (ASF) under one
++# or more contributor license agreements.  See the NOTICE file
++# distributed with this work for additional information
++# regarding copyright ownership.  The ASF licenses this file
++# to you under the Apache License, Version 2.0 (the
++# "License"); you may not use this file except in compliance
++# with the License.  You may obtain a copy of the License at
++#
++#     http://www.apache.org/licenses/LICENSE-2.0
++#
++# Unless required by applicable law or agreed to in writing,
++# software distributed under the License is distributed on an
++# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++# KIND, either express or implied.  See the License for the
++# specific language governing permissions and limitations
++# under the License.
++#
++
++if [ -z "${IOTDB_HOME}" ]; then
++    export IOTDB_HOME="`dirname "$0"`/../.."
++fi
++IOTDB_CLUSTER_PATH="${IOTDB_HOME}"/conf/iotdb-cluster.properties
++if [ ! -f ${IOTDB_CLUSTER_PATH} ]; then
++  exec ${IOTDB_HOME}/sbin/start-standalone.sh
++else
++  confignodeStr=$(sed '/^confignode_address_list=/!d;s/.*=//' "${IOTDB_CLUSTER_PATH}")
++  confignodeIps=(${confignodeStr//,/ })
++  datanodeStr=$(sed '/^datanode_address_list=/!d;s/.*=//' "${IOTDB_CLUSTER_PATH}")
++  datanodeIps=(${datanodeStr//,/ })
++  serverPort=$(sed '/^ssh_port=/!d;s/.*=//' "${IOTDB_CLUSTER_PATH}")
++  confignodePath=$(sed '/^confignode_deploy_path=/!d;s/.*=//' "${IOTDB_CLUSTER_PATH}")
++  datanodePath=$(sed '/^datanode_deploy_path=/!d;s/.*=//' "${IOTDB_CLUSTER_PATH}")
++  account=$(sed '/^ssh_account=/!d;s/.*=//' "${IOTDB_CLUSTER_PATH}")
++fi
++
++function validateParam() {
++  if [[ -z $1 || -z $2 ||  -z $3 ||  -z $4 ||  -z $5 ||  -z $6 ]]; then
++    echo "The iotdb-cluster.properties file only contains default settings. It will start 1C1D."
++    exec ${IOTDB_HOME}/sbin/start-standalone.sh
++    exit
++  fi
++}
++validateParam $confignodeIps $datanodeIps $confignodePath $datanodePath $account $serverPort
++
++if [ "$IOTDB_SSH_OPTS" = "" ]; then
++  IOTDB_SSH_OPTS="-o StrictHostKeyChecking=no"
++fi
++
++size=${#datanodeIps[@]}
++for confignodeIP in ${confignodeIps[@]};do
++  hasDataNode="false"
++  for ((i=0; i<$size; i++))
++  do
++      if [[ "${datanodeIps[$i]}" == "" ]]; then
++        continue
++      elif [[ "${datanodeIps[$i]}" == *"$confignodeIP"* ]]; then
++          hasDataNode="true"
++          unset 'datanodeIps[$i]'
++          break
++      fi
++  done
++  if [[ "$hasDataNode" == "true" ]]; then
++    echo "The system starts the ConfigNode And DataNode of $confignodeIP"
++    ssh $IOTDB_SSH_OPTS -p $serverPort ${account}@$confignodeIP "
++      nohup bash $confignodePath/sbin/start-confignode.sh >/dev/null 2>&1 &
++      sleep 3
++      nohup bash $datanodePath/sbin/start-datanode.sh >/dev/null 2>&1 &
++      "
++  else
++    echo "The system starts the ConfigNode of $confignodeIP"
++    ssh $IOTDB_SSH_OPTS -p $serverPort ${account}@$confignodeIP "nohup bash $confignodePath/sbin/start-confignode.sh >/dev/null 2>&1 &"
++  fi
++done
++
++for datanodeIP in ${datanodeIps[@]};do
++  echo "The system starts the DataNode of $datanodeIP"
++  ssh $IOTDB_SSH_OPTS -p $serverPort ${account}@$datanodeIP "nohup bash $datanodePath/sbin/start-datanode.sh >/dev/null 2>&1 &"
++done
++
++echo "Cluster startup complete ..."
diff --cc dn1/sbin/cluster/stop-all.sh
index 00000000000,00000000000..1adfe056c32
new file mode 100755
--- /dev/null
+++ b/dn1/sbin/cluster/stop-all.sh
@@@ -1,0 -1,0 +1,80 @@@
++#!/bin/bash
++#
++# Licensed to the Apache Software Foundation (ASF) under one
++# or more contributor license agreements.  See the NOTICE file
++# distributed with this work for additional information
++# regarding copyright ownership.  The ASF licenses this file
++# to you under the Apache License, Version 2.0 (the
++# "License"); you may not use this file except in compliance
++# with the License.  You may obtain a copy of the License at
++#
++#     http://www.apache.org/licenses/LICENSE-2.0
++#
++# Unless required by applicable law or agreed to in writing,
++# software distributed under the License is distributed on an
++# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
++# KIND, either express or implied.  See the License for the
++# specific language governing permissions and limitations
++# under the License.
++#
++
++if [ -z "${IOTDB_HOME}" ]; then
++    export IOTDB_HOME="`dirname "$0"`/../.."
++fi
++IOTDB_CLUSTER_PATH="${IOTDB_HOME}"/conf/iotdb-cluster.properties
++if [ ! -f ${IOTDB_CLUSTER_PATH} ]; then
++  exec ${IOTDB_HOME}/sbin/stop-standalone.sh
++else
++  confignodeStr=$(sed '/^confignode_address_list=/!d;s/.*=//' "${IOTDB_CLUSTER_PATH}")
++  confignodeIps=(${confignodeStr//,/ })
++  datanodeStr=$(sed '/^datanode_address_list=/!d;s/.*=//' "${IOTDB_CLUSTER_PATH}")
++  datanodeIps=(${datanodeStr//,/ })
++  serverPort=$(sed '/^ssh_port=/!d;s/.*=//' "${IOTDB_CLUSTER_PATH}")
++  confignodePath=$(sed '/^confignode_deploy_path=/!d;s/.*=//' "${IOTDB_CLUSTER_PATH}")
++  datanodePath=$(sed '/^datanode_deploy_path=/!d;s/.*=//' "${IOTDB_CLUSTER_PATH}")
++  account=$(sed '/^ssh_account=/!d;s/.*=//' "${IOTDB_CLUSTER_PATH}")
++fi
++
++function validateParam() {
++  if [[ -z $1 || -z $2 ||  -z $3 ||  -z $4 ||  -z $5 ||  -z $6 ]]; then
++    echo "The iotdb-cluster.properties file only contains default settings. It will stop 1C1D."
++    exec ${IOTDB_HOME}/sbin/stop-standalone.sh
++  fi
++}
++validateParam $confignodeIps $datanodeIps $confignodePath $datanodePath $account $serverPort
++
++if [ "$IOTDB_SSH_OPTS" = "" ]; then
++  IOTDB_SSH_OPTS="-o StrictHostKeyChecking=no"
++fi
++
++size=${#confignodeIps[@]}
++for datanodeIP in ${datanodeIps[@]};do
++  hasConfigNode="false"
++  for ((i=0; i<$size; i++))
++    do
++        if [[ "${confignodeIps[$i]}" == "" ]]; then
++          continue
++        elif [[ "${confignodeIps[$i]}" == *"$datanodeIP"* ]]; then
++          hasConfigNode="true"
++          unset 'confignodeIps[$i]'
++          break
++        fi
++    done
++    if [[ "$hasConfigNode" == "true" ]]; then
++      echo "The system stops the DataNode and ConfigNode of $datanodeIP"
++      ssh $IOTDB_SSH_OPTS -p $serverPort ${account}@$datanodeIP "
++        nohup bash $datanodePath/sbin/stop-datanode.sh
++        nohup bash $confignodePath/sbin/stop-confignode.sh
++        "
++    else
++      echo "The system stops the DataNode of $datanodeIP"
++      ssh $IOTDB_SSH_OPTS -p $serverPort ${account}@$datanodeIP "nohup bash $datanodePath/sbin/stop-datanode.sh"
++    fi
++done
++
++for confignodeIP in ${confignodeIps[@]};do
++  echo "The system stops the ConfigNode of $confignodeIP"
++  ssh $IOTDB_SSH_OPTS -p $serverPort ${account}@$confignodeIP "nohup bash $confignodePath/sbin/stop-confignode.sh"
++done
... 40493 lines suppressed ...