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

jackietien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new b20f49525e [IOTDB-4689] Use seperate channel for heartbeat / 
appendEntries
b20f49525e is described below

commit b20f49525e9827c037ba431d7f7feffb242ae3b4
Author: William Song <[email protected]>
AuthorDate: Wed Oct 19 20:14:30 2022 +0800

    [IOTDB-4689] Use seperate channel for heartbeat / appendEntries
---
 consensus/src/main/java/org/apache/iotdb/consensus/ratis/Utils.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/consensus/src/main/java/org/apache/iotdb/consensus/ratis/Utils.java 
b/consensus/src/main/java/org/apache/iotdb/consensus/ratis/Utils.java
index 3754031fa0..f7d1cbb66a 100644
--- a/consensus/src/main/java/org/apache/iotdb/consensus/ratis/Utils.java
+++ b/consensus/src/main/java/org/apache/iotdb/consensus/ratis/Utils.java
@@ -239,5 +239,7 @@ public class Utils {
         properties, config.getLeaderLogAppender().getSnapshotChunkSizeMax());
     RaftServerConfigKeys.Log.Appender.setInstallSnapshotEnabled(
         properties, config.getLeaderLogAppender().isInstallSnapshotEnabled());
+
+    GrpcConfigKeys.Server.setHeartbeatChannel(properties, true);
   }
 }

Reply via email to