Skip to content

Commit

Permalink
[ISSUE #7791] Polish the code for jraft controller
Browse files Browse the repository at this point in the history
  • Loading branch information
RongtongJin authored Feb 2, 2024
1 parent af1936d commit 6616600
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ maven_install(
"com.adobe.testing:s3mock-junit4:2.11.0",
"io.github.aliyunmq:rocketmq-grpc-netty-codec-haproxy:1.0.0",
"org.apache.rocketmq:rocketmq-rocksdb:1.0.2",
"com.alipay.sofa:jraft-core:1.3.11",
"com.alipay.sofa:jraft-core:1.3.14",
"com.alipay.sofa:hessian:3.3.6",
"io.netty:netty-tcnative-boringssl-static:2.0.48.Final",
],
Expand Down
16 changes: 8 additions & 8 deletions common/src/main/java/org/apache/rocketmq/common/JraftConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
package org.apache.rocketmq.common;

public class JraftConfig {
int jRaftElectionTimeoutMs = 1000;

int jRaftScanWaitTimeoutMs = 1000;
int jRaftSnapshotIntervalSecs = 3600;
String jRaftGroupId = "jRaft-Controller";
String jRaftServerId = "localhost:9880";
String jRaftInitConf = "localhost:9880,localhost:9881,localhost:9882";
String jRaftControllerRPCAddr = "localhost:9770,localhost:9771,localhost:9772";
private int jRaftElectionTimeoutMs = 1000;

private int jRaftScanWaitTimeoutMs = 1000;
private int jRaftSnapshotIntervalSecs = 3600;
private String jRaftGroupId = "jRaft-Controller";
private String jRaftServerId = "localhost:9880";
private String jRaftInitConf = "localhost:9880,localhost:9881,localhost:9882";
private String jRaftControllerRPCAddr = "localhost:9770,localhost:9771,localhost:9772";

public int getjRaftElectionTimeoutMs() {
return jRaftElectionTimeoutMs;
Expand Down

0 comments on commit 6616600

Please sign in to comment.