You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Xiangdong Huang (Jira)" <ji...@apache.org> on 2022/12/14 14:38:00 UTC
[jira] [Created] (IOTDB-5218) DataNode should marked started successfully until the region is assigned
Xiangdong Huang created IOTDB-5218:
--------------------------------------
Summary: DataNode should marked started successfully until the region is assigned
Key: IOTDB-5218
URL: https://issues.apache.org/jira/browse/IOTDB-5218
Project: Apache IoTDB
Issue Type: Bug
Affects Versions: 1.0.0
Reporter: Xiangdong Huang
A scenario:
* start a configNode
* start a datanode immediatelly
* write data immediatelly
Then there will be error:
org.apache.iotdb.commons.exception.IoTDBException: ConfigNode failed to extend Region because there are not enough DataNodes
Can use the following codes to reproduct:
{code:java}
IoTDBService service = IoTDBService.getInstance();
service.startConfigNodeService();
IoTDBService.getInstance().startDataNodeService();
long time = System.currentTimeMillis();
IoTDBService.getInstance().insertRecord("root.test.d1", time,
Collections.singletonList("s1"), Collections.singletonList("1.0")); {code}
IoTDBService is a wrapper to wrap CongfigNode's main() and DataNode's main().
IMO, the datanode server is really ready only when there is a region for it.
Besides, if the process is time consuming, we can add a status check method to check whether datanode is ready.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)