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

east pushed a commit to branch cluster
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/cluster by this push:
     new 334282c  add config for raft election timeout
334282c is described below

commit 334282cb4c8caad7baf47b86e8c0f50cbbabebb2
Author: mdf369 <[email protected]>
AuthorDate: Tue Apr 9 10:20:26 2019 +0800

    add config for raft election timeout
---
 .../main/java/org/apache/iotdb/cluster/config/ClusterDescriptor.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/cluster/src/main/java/org/apache/iotdb/cluster/config/ClusterDescriptor.java 
b/cluster/src/main/java/org/apache/iotdb/cluster/config/ClusterDescriptor.java
index ba7d4a1..2eb4a6a 100644
--- 
a/cluster/src/main/java/org/apache/iotdb/cluster/config/ClusterDescriptor.java
+++ 
b/cluster/src/main/java/org/apache/iotdb/cluster/config/ClusterDescriptor.java
@@ -108,7 +108,7 @@ public class ClusterDescriptor {
 
       conf.setRaftMetadataPath(properties.getProperty("raft_metadata_path", 
conf.getRaftMetadataPath()));
 
-      conf.setMaxCatchUpLogNum(Integer
+      conf.setElectionTimeoutMs(Integer
           .parseInt(properties.getProperty("election_timeout_ms",
               Integer.toString(conf.getElectionTimeoutMs()))));
 

Reply via email to