[ https://issues.apache.org/jira/browse/IOTDB-4936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17644780#comment-17644780 ]
Yongzao Dan commented on IOTDB-4936: ------------------------------------ This bug is because the creation process of RegionGroup only consider the Running/Unknown DataNodes as available for placing new Region. And a RegionGroup can be created successfully only if the sum of Running and Unknwon DataNodes is not less than the replication factor currently. > 1 datanode READONLY, create schema:“ConfigNode failed to extend Region > because there are not enough DataNodes” > --------------------------------------------------------------------------------------------------------------- > > Key: IOTDB-4936 > URL: https://issues.apache.org/jira/browse/IOTDB-4936 > Project: Apache IoTDB > Issue Type: Bug > Components: mpp-cluster > Affects Versions: 0.14.0-SNAPSHOT, 1.0.0 > Reporter: 刘珍 > Assignee: Yongzao Dan > Priority: Major > Fix For: 0.14.0-SNAPSHOT > > Attachments: config-leader_logs.tar.gz, iotdb_4936.conf > > > rel/1.0 2022-12-07_67bbd2e > 3副本3C3D ,其中1个datanode 设置为READONLY后,创建元数据,confignode报错,创建元数据失败。 > 1. 启动3副本3C3D 集群 > 2. benchmark 创建元数据配置见附件 > bm运行起来后,立即执行./sbin/start-cli.sh -h 172.16.2.6 -e "SET SYSTEM TO READONLY ON > LOCAL" > 3.confignode 报错 > 2022-12-08 11:41:48,223 [pool-12-IoTDB-ConfigNodeRPC-Processor-11] ERROR > o.a.i.c.m.p.PartitionManager:365 - ConfigNode failed to extend Region because > there are not enough DataNodes > 2022-12-08 11:41:48,224 [pool-12-IoTDB-ConfigNodeRPC-Processor-12] ERROR > o.a.i.c.m.p.PartitionManager:365 - ConfigNode failed to extend Region because > there are not enough DataNodes > 测试环境 > 1. 启动3副本3C3D 集群 > config,schema ,data 分别是ratis,ratis ,IoT协议。 > 2. ConfigNode leader 的日志见附件 -- This message was sent by Atlassian Jira (v8.20.10#820010)