You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/09/08 10:17:13 UTC

[iotdb] branch rel/1.2 updated: [To rel/1.2][IOTDB-6144] Adjust the default thrift timeout parameter to 60s (#11092)

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

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


The following commit(s) were added to refs/heads/rel/1.2 by this push:
     new 7c60a4df082 [To rel/1.2][IOTDB-6144] Adjust the default thrift timeout parameter to 60s (#11092)
7c60a4df082 is described below

commit 7c60a4df0829577066927c530711cc29fe6c5889
Author: Potato <ta...@apache.org>
AuthorDate: Fri Sep 8 18:17:07 2023 +0800

    [To rel/1.2][IOTDB-6144] Adjust the default thrift timeout parameter to 60s (#11092)
    
    Signed-off-by: OneSizeFitQuorum <ta...@apache.org>
---
 .../confignode/src/assembly/resources/conf/iotdb-confignode.properties  | 2 +-
 .../datanode/src/assembly/resources/conf/iotdb-datanode.properties      | 2 +-
 .../datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java    | 2 +-
 .../src/main/java/org/apache/iotdb/commons/conf/CommonConfig.java       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/iotdb-core/confignode/src/assembly/resources/conf/iotdb-confignode.properties b/iotdb-core/confignode/src/assembly/resources/conf/iotdb-confignode.properties
index 81185973bfa..bbe831b7238 100644
--- a/iotdb-core/confignode/src/assembly/resources/conf/iotdb-confignode.properties
+++ b/iotdb-core/confignode/src/assembly/resources/conf/iotdb-confignode.properties
@@ -98,7 +98,7 @@ cn_target_config_node_list=127.0.0.1:10710
 
 # Thrift socket and connection timeout between raft nodes, in milliseconds.
 # Datatype: int
-# cn_connection_timeout_ms=20000
+# cn_connection_timeout_ms=60000
 
 # selector thread (TAsyncClientManager) nums for async thread in a clientManager
 # Datatype: int
diff --git a/iotdb-core/datanode/src/assembly/resources/conf/iotdb-datanode.properties b/iotdb-core/datanode/src/assembly/resources/conf/iotdb-datanode.properties
index fb3f2ef06f9..2170c6ec004 100644
--- a/iotdb-core/datanode/src/assembly/resources/conf/iotdb-datanode.properties
+++ b/iotdb-core/datanode/src/assembly/resources/conf/iotdb-datanode.properties
@@ -107,7 +107,7 @@ dn_target_config_node_list=127.0.0.1:10710
 
 # Thrift socket and connection timeout between raft nodes, in milliseconds.
 # Datatype: int
-# dn_connection_timeout_ms=20000
+# dn_connection_timeout_ms=60000
 
 # selector thread (TAsyncClientManager) nums for async thread in a clientManager
 # Datatype: int
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
index d3c75d306f5..77367f4ded4 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
@@ -909,7 +909,7 @@ public class IoTDBConfig {
   private int mppDataExchangeKeepAliveTimeInMs = 1000;
 
   /** Thrift socket and connection timeout between data node and config node. */
-  private int connectionTimeoutInMS = (int) TimeUnit.SECONDS.toMillis(20);
+  private int connectionTimeoutInMS = (int) TimeUnit.SECONDS.toMillis(60);
 
   /**
    * ClientManager will have so many selector threads (TAsyncClientManager) to distribute to its
diff --git a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/conf/CommonConfig.java b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/conf/CommonConfig.java
index 4226adb5b67..00d2e86d421 100644
--- a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/conf/CommonConfig.java
+++ b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/conf/CommonConfig.java
@@ -98,7 +98,7 @@ public class CommonConfig {
   private long[] tierTTLInMs = {Long.MAX_VALUE};
 
   /** Thrift socket and connection timeout between data node and config node. */
-  private int connectionTimeoutInMS = (int) TimeUnit.SECONDS.toMillis(20);
+  private int connectionTimeoutInMS = (int) TimeUnit.SECONDS.toMillis(60);
 
   /**
    * ClientManager will have so many selector threads (TAsyncClientManager) to distribute to its