IoTDB Cluster Error
- 主要语言
- Java
- 星标
- 6.4k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 115
描述
Hello Team,
We are trying to run cluster using 2 servers say n1,n2(with 1C1D on each). With normal configuration the cluster is performing correctly.
Then to test data availability I stopped one of the datanode (say datanode of n2), after this when I ran some query to fetch the data,
it throws error like can't connect to datanode on n2. I tried to increase the replication factor as well, but when I changed the
replication factor to 2 then I am having this issue.
2022-08-04 02:43:40,679 [main] ERROR o.a.i.c.s.ConfigNodeCommandLine:71 - Meet error when doing start checking
org.apache.iotdb.commons.exception.ConfigurationException: Parameter data_replication_factor can not be 2, please set to: 1
at org.apache.iotdb.confignode.conf.ConfigNodeStartupCheck.checkGlobalConfig(ConfigNodeStartupCheck.java:103)
at org.apache.iotdb.confignode.conf.ConfigNodeStartupCheck.startUpCheck(ConfigNodeStartupCheck.java:65)
at org.apache.iotdb.confignode.service.ConfigNodeCommandLine.run(ConfigNodeCommandLine.java:69)
at org.apache.iotdb.commons.ServerCommandLine.doMain(ServerCommandLine.java:58)
at org.apache.iotdb.confignode.service.ConfigNode.main(ConfigNode.java:84)
贡献指南
调研方向
从 ConfigNodeStartupCheck.java 开始,该文件中报告的启动检查会拒绝 data_replication_factor=2,并检查 n1/n2 场景中涉及的集群配置。在停止 n2 的 datanode 后重新执行查询,并验证复制因子设置是否允许集群在没有该 datanode 的情况下保持可用。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- databases, distributed-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100