You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ca...@apache.org on 2022/11/25 10:46:23 UTC
[iotdb] branch confignode_simple created (now 6948bbe3a4)
This is an automated email from the ASF dual-hosted git repository.
caogaofei pushed a change to branch confignode_simple
in repository https://gitbox.apache.org/repos/asf/iotdb.git
at 6948bbe3a4 make simple consensuse as default for confignode
This branch includes the following new commits:
new 6948bbe3a4 make simple consensuse as default for confignode
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[iotdb] 01/01: make simple consensuse as default for confignode
Posted by ca...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
caogaofei pushed a commit to branch confignode_simple
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 6948bbe3a4939c03958149c88a1266425b3ecd5b
Author: Beyyes <cg...@foxmail.com>
AuthorDate: Fri Nov 25 18:46:04 2022 +0800
make simple consensuse as default for confignode
---
.../consensus/statemachine/ConfigNodeRegionStateMachine.java | 2 +-
node-commons/src/assembly/resources/conf/iotdb-common.properties | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/confignode/src/main/java/org/apache/iotdb/confignode/consensus/statemachine/ConfigNodeRegionStateMachine.java b/confignode/src/main/java/org/apache/iotdb/confignode/consensus/statemachine/ConfigNodeRegionStateMachine.java
index 70e2fa1bd2..32373e1d89 100644
--- a/confignode/src/main/java/org/apache/iotdb/confignode/consensus/statemachine/ConfigNodeRegionStateMachine.java
+++ b/confignode/src/main/java/org/apache/iotdb/confignode/consensus/statemachine/ConfigNodeRegionStateMachine.java
@@ -69,7 +69,7 @@ public class ConfigNodeRegionStateMachine
private int endIndex;
private static final String currentFileDir =
- CONF.getConsensusDir() + File.separator + "standalone" + File.separator + "current";
+ CONF.getConsensusDir() + File.separator + "simple" + File.separator + "current";
private static final String progressFilePath =
currentFileDir + File.separator + "log_inprogress_";
private static final String filePath = currentFileDir + File.separator + "log_";
diff --git a/node-commons/src/assembly/resources/conf/iotdb-common.properties b/node-commons/src/assembly/resources/conf/iotdb-common.properties
index 21138fcbc2..76f9db8860 100644
--- a/node-commons/src/assembly/resources/conf/iotdb-common.properties
+++ b/node-commons/src/assembly/resources/conf/iotdb-common.properties
@@ -23,9 +23,10 @@
# ConfigNode consensus protocol type.
# This parameter is unmodifiable after ConfigNode starts for the first time.
# These consensus protocols are currently supported:
-# 1. org.apache.iotdb.consensus.ratis.RatisConsensus
+# 1. org.apache.iotdb.consensus.simple.SimpleConsensus
+# 2. org.apache.iotdb.consensus.ratis.RatisConsensus
# Datatype: string
-# config_node_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
+# config_node_consensus_protocol_class=org.apache.iotdb.consensus.simple.SimpleConsensus
# Default number of schema replicas
# Can not be changed after the first start