提交 7c867432 编写于 作者: T Tian Jiang

fix configuration

上级 1dcf0b07
......@@ -74,6 +74,7 @@ public class RegionRouteCache {
switch (consensusProtocolClass) {
case ConsensusFactory.SIMPLE_CONSENSUS:
case ConsensusFactory.RATIS_CONSENSUS:
case ConsensusFactory.RAFT_CONSENSUS:
// The leader of simple and ratis consensus is self-elected
if (leaderSample.getLeft() > this.leaderSample.get().getLeft()) {
this.leaderSample.set(leaderSample);
......@@ -95,6 +96,7 @@ public class RegionRouteCache {
switch (consensusProtocolClass) {
case ConsensusFactory.SIMPLE_CONSENSUS:
case ConsensusFactory.RATIS_CONSENSUS:
case ConsensusFactory.RAFT_CONSENSUS:
// The leader of simple and ratis consensus is self-elected
if (leaderSample.get().getRight() != leaderId.get()) {
leaderId.set(leaderSample.get().getRight());
......
......@@ -1061,6 +1061,7 @@ public class IoTDBDescriptor {
"datanode_schema_cache_eviction_policy", conf.getDataNodeSchemaCacheEvictionPolicy()));
loadIoTConsensusProps(properties);
conf.setCustomizedProperties(properties);
}
private void loadIoTConsensusProps(Properties properties) {
......
......@@ -183,6 +183,7 @@ public class DataRegionConsensusImpl {
CONF.getConnectionTimeoutInMS(), TimeUnit.MILLISECONDS))
.build())
.build())
.setProperties(CONF.getCustomizedProperties())
.build(),
DataRegionConsensusImplHolder::createDataRegionStateMachine)
.orElseThrow(
......
......@@ -141,6 +141,7 @@ public class SchemaRegionConsensusImpl {
.build())
.build())
.setStorageDir(CONF.getSchemaRegionConsensusDir())
.setProperties(CONF.getCustomizedProperties())
.build(),
gid ->
new SchemaRegionStateMachine(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册