This is an automated email from the ASF dual-hosted git repository.
neuyilan pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/0.12 by this push:
new 222deb0 [To rel/0.12] make version change easy (#3052)
222deb0 is described below
commit 222deb08b6f6b4d1949b04101de226e38e91aa52
Author: chaow <[email protected]>
AuthorDate: Tue Apr 27 19:51:06 2021 +0800
[To rel/0.12] make version change easy (#3052)
---
cli/pom.xml | 2 +-
cluster/pom.xml | 12 ++++++------
.../java/org/apache/iotdb/cluster/config/ClusterConfig.java | 8 ++++----
compile-tools/pom.xml | 2 +-
example/hadoop/pom.xml | 3 +--
example/udf/pom.xml | 2 +-
hadoop/pom.xml | 2 +-
hive-connector/pom.xml | 5 ++---
server/src/assembly/resources/conf/iotdb-engine.properties | 4 ++--
.../src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java | 6 +++---
service-rpc/src/main/java/org/apache/iotdb/rpc/RpcUtils.java | 4 ++--
spark-tsfile/pom.xml | 2 +-
12 files changed, 25 insertions(+), 27 deletions(-)
diff --git a/cli/pom.xml b/cli/pom.xml
index 9842822..18413b9 100644
--- a/cli/pom.xml
+++ b/cli/pom.xml
@@ -72,7 +72,7 @@
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>iotdb-server</artifactId>
- <version>0.12.1-SNAPSHOT</version>
+ <version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
diff --git a/cluster/pom.xml b/cluster/pom.xml
index f074aa1..5a4c9bd 100644
--- a/cluster/pom.xml
+++ b/cluster/pom.xml
@@ -58,7 +58,7 @@
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>service-rpc</artifactId>
- <version>0.12.1-SNAPSHOT</version>
+ <version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.thrift</groupId>
@@ -69,7 +69,7 @@
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>iotdb-server</artifactId>
- <version>0.12.1-SNAPSHOT</version>
+ <version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.thrift</groupId>
@@ -84,7 +84,7 @@
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>iotdb-thrift-cluster</artifactId>
- <version>0.12.1-SNAPSHOT</version>
+ <version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.thrift</groupId>
@@ -96,20 +96,20 @@
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>iotdb-server</artifactId>
- <version>0.12.1-SNAPSHOT</version>
+ <version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>iotdb-session</artifactId>
- <version>0.12.1-SNAPSHOT</version>
+ <version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>iotdb-jdbc</artifactId>
- <version>0.12.1-SNAPSHOT</version>
+ <version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
diff --git
a/cluster/src/main/java/org/apache/iotdb/cluster/config/ClusterConfig.java
b/cluster/src/main/java/org/apache/iotdb/cluster/config/ClusterConfig.java
index 241dc82..64c330a 100644
--- a/cluster/src/main/java/org/apache/iotdb/cluster/config/ClusterConfig.java
+++ b/cluster/src/main/java/org/apache/iotdb/cluster/config/ClusterConfig.java
@@ -55,15 +55,15 @@ public class ClusterConfig {
private int writeOperationTimeoutMS = (int) TimeUnit.SECONDS.toMillis(30);
- private int catchUpTimeoutMS = (int) TimeUnit.SECONDS.toMillis(60);
+ private int catchUpTimeoutMS = (int) TimeUnit.SECONDS.toMillis(300);
private boolean useBatchInLogCatchUp = true;
/** max number of committed logs to be saved */
- private int minNumOfLogsInMem = 100;
+ private int minNumOfLogsInMem = 1000;
/** max number of committed logs in memory */
- private int maxNumOfLogsInMem = 1000;
+ private int maxNumOfLogsInMem = 2000;
/** max memory size of committed logs in memory, default 512M */
private long maxMemorySizeForRaftLog = 536870912;
@@ -142,7 +142,7 @@ public class ClusterConfig {
/** The maximum number of logs saved on the disk */
private int maxPersistRaftLogNumberOnDisk = 1_000_000;
- private boolean enableUsePersistLogOnDiskToCatchUp = false;
+ private boolean enableUsePersistLogOnDiskToCatchUp = true;
/**
* The number of logs read on the disk at one time, which is mainly used to
control the memory
diff --git a/compile-tools/pom.xml b/compile-tools/pom.xml
index a4c0447..45ade73 100644
--- a/compile-tools/pom.xml
+++ b/compile-tools/pom.xml
@@ -20,8 +20,8 @@
<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>
- <artifactId>iotdb-parent</artifactId>
<groupId>org.apache.iotdb</groupId>
+ <artifactId>iotdb-parent</artifactId>
<version>0.12.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
diff --git a/example/hadoop/pom.xml b/example/hadoop/pom.xml
index cdfbd15..b1cbf25 100644
--- a/example/hadoop/pom.xml
+++ b/example/hadoop/pom.xml
@@ -28,13 +28,12 @@
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hadoop-example</artifactId>
- <version>0.12.1-SNAPSHOT</version>
<name>hadoop-example</name>
<dependencies>
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>hadoop-tsfile</artifactId>
- <version>0.12.1-SNAPSHOT</version>
+ <version>${project.version}</version>
</dependency>
</dependencies>
</project>
diff --git a/example/udf/pom.xml b/example/udf/pom.xml
index 8410382..e576930 100644
--- a/example/udf/pom.xml
+++ b/example/udf/pom.xml
@@ -32,7 +32,7 @@
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>iotdb-server</artifactId>
- <version>0.12.1-SNAPSHOT</version>
+ <version>${project.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
diff --git a/hadoop/pom.xml b/hadoop/pom.xml
index d7bff58..c65712e 100644
--- a/hadoop/pom.xml
+++ b/hadoop/pom.xml
@@ -40,7 +40,7 @@
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>tsfile</artifactId>
- <version>0.12.1-SNAPSHOT</version>
+ <version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
diff --git a/hive-connector/pom.xml b/hive-connector/pom.xml
index 227b485..a3d9ba9 100644
--- a/hive-connector/pom.xml
+++ b/hive-connector/pom.xml
@@ -22,13 +22,12 @@
<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>
- <artifactId>iotdb-parent</artifactId>
<groupId>org.apache.iotdb</groupId>
+ <artifactId>iotdb-parent</artifactId>
<version>0.12.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hive-connector</artifactId>
- <version>0.12.1-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -38,7 +37,7 @@
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>hadoop-tsfile</artifactId>
- <version>0.12.1-SNAPSHOT</version>
+ <version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
diff --git a/server/src/assembly/resources/conf/iotdb-engine.properties
b/server/src/assembly/resources/conf/iotdb-engine.properties
index 521c0b9..9d6c3c7 100644
--- a/server/src/assembly/resources/conf/iotdb-engine.properties
+++ b/server/src/assembly/resources/conf/iotdb-engine.properties
@@ -42,8 +42,8 @@ rpc_port=6667
# rpc_max_concurrent_client_num=65535
-# thrift max frame size, 64MB by default
-# thrift_max_frame_size=67108864
+# thrift max frame size, 512MB by default
+# thrift_max_frame_size=536870912
# thrift init buffer size
# thrift_init_buffer_size=1024
diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
index 10c9d87..a15ccfc 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
@@ -118,7 +118,7 @@ public class IoTDBConfig {
private long allocateMemoryForSchema = Runtime.getRuntime().maxMemory() * 1
/ 10;
/** Memory allocated for the read process besides cache */
- private long allocateMemoryForReadWithoutCache =
Runtime.getRuntime().maxMemory() * 9 / 100;
+ private long allocateMemoryForReadWithoutCache = allocateMemoryForRead * 3 /
10;
private volatile int maxQueryDeduplicatedPathNum = 1000;
@@ -272,7 +272,7 @@ public class IoTDBConfig {
private long memtableSizeThreshold = 1024 * 1024 * 1024L;
/** When average series point number reaches this, flush the memtable to
disk */
- private int avgSeriesPointNumberThreshold = 100000;
+ private int avgSeriesPointNumberThreshold = 10000;
/**
* Work when tsfile_manage_strategy is level_strategy. When merge point
number reaches this, merge
@@ -530,7 +530,7 @@ public class IoTDBConfig {
private String kerberosKeytabFilePath = "/path";
/** kerberos principal */
- private String kerberosPrincipal = "principal";
+ private String kerberosPrincipal = "your principal";
/** the num of memtable in each storage group */
private int concurrentWritingTimePartition = 1;
diff --git a/service-rpc/src/main/java/org/apache/iotdb/rpc/RpcUtils.java
b/service-rpc/src/main/java/org/apache/iotdb/rpc/RpcUtils.java
index df5ef19..5835c5e 100644
--- a/service-rpc/src/main/java/org/apache/iotdb/rpc/RpcUtils.java
+++ b/service-rpc/src/main/java/org/apache/iotdb/rpc/RpcUtils.java
@@ -37,8 +37,8 @@ import java.util.Map;
public class RpcUtils {
- /** How big should the default read and write buffers be? Defaults to 64KB */
- public static final int THRIFT_DEFAULT_BUF_CAPACITY = 64 * 1024;
+ /** How big should the default read and write buffers be? Defaults to 1KB */
+ public static final int THRIFT_DEFAULT_BUF_CAPACITY = 1024;
/**
* It is used to prevent the size of the parsing package from being too
large and allocating the
* buffer will cause oom. Therefore, the maximum length of the requested
memory is limited when
diff --git a/spark-tsfile/pom.xml b/spark-tsfile/pom.xml
index f317f4a..1f30339 100644
--- a/spark-tsfile/pom.xml
+++ b/spark-tsfile/pom.xml
@@ -39,7 +39,7 @@
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>hadoop-tsfile</artifactId>
- <version>0.12.1-SNAPSHOT</version>
+ <version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>