changxue created IOTDB-5059:
-------------------------------
Summary: [schema] create timeseries occasionally return 906: There
are no available SchemaRegionGroup RegionGroups currently
Key: IOTDB-5059
URL: https://issues.apache.org/jira/browse/IOTDB-5059
Project: Apache IoTDB
Issue Type: Bug
Components: Core/Schema Manager
Affects Versions: 0.14.0-SNAPSHOT
Reporter: changxue
Assignee: Jinrui Zhang
Attachments: allnodes-log.tar.gz
[schema] create timeseries occasionally return 906: There are no available
SchemaRegionGroup RegionGroups currently
3C3D cluster, Nov.27th source codes
The cluster just started up successfully and I'm sure all nodes are all right.
{code:sql}
IoTDB>create timeseries root.udf.exp1.s1 with datatype=int32
SQLSTATE : 906: There are no available SchemaRegionGroup RegionGroups
currently, please use "show cluster" or "show regions" to check the cluster
status
{code}
datanode log:
{code:java}
2022-11-27 09:54:31,464 [1@group-000200000000-StateMachineUpdater] INFO
o.a.i.d.m.s.SchemaRegionMemoryImpl:444 - Start create snapshot of schemaRegion
SchemaRegion[0]
2022-11-27 09:54:31,464 [pool-26-IoTDB-ClientRPC-Processor-3] ERROR
o.a.i.d.u.ErrorHandlingUtils:90 - Status code: 906, Query Statement: "create
timeseries root.udf.upload.d1.s1 with datatype=int32". executeStatement failed
java.lang.RuntimeException: org.apache.iotdb.commons.exception.IoTDBException:
There are no available SchemaRegionGroup RegionGroups currently, please use
"show cluster" or "show regions" to check the cluster status
at
org.apache.iotdb.db.mpp.plan.analyze.ClusterPartitionFetcher.getOrCreateSchemaPartition(ClusterPartitionFetcher.java:146)
at
org.apache.iotdb.db.mpp.plan.analyze.AnalyzeVisitor.visitCreateTimeseries(AnalyzeVisitor.java:1363)
at
org.apache.iotdb.db.mpp.plan.analyze.AnalyzeVisitor.visitCreateTimeseries(AnalyzeVisitor.java:160)
at
org.apache.iotdb.db.mpp.plan.statement.metadata.CreateTimeSeriesStatement.accept(CreateTimeSeriesStatement.java:130)
at
org.apache.iotdb.db.mpp.plan.statement.StatementVisitor.process(StatementVisitor.java:107)
at
org.apache.iotdb.db.mpp.plan.analyze.Analyzer.analyze(Analyzer.java:43)
at
org.apache.iotdb.db.mpp.plan.execution.QueryExecution.analyze(QueryExecution.java:258)
at
org.apache.iotdb.db.mpp.plan.execution.QueryExecution.<init>(QueryExecution.java:142)
at
org.apache.iotdb.db.mpp.plan.Coordinator.createQueryExecution(Coordinator.java:104)
at
org.apache.iotdb.db.mpp.plan.Coordinator.execute(Coordinator.java:137)
at
org.apache.iotdb.db.service.thrift.impl.ClientRPCServiceImpl.executeStatementInternal(ClientRPCServiceImpl.java:215)
at
org.apache.iotdb.db.service.thrift.impl.ClientRPCServiceImpl.executeStatementV2(ClientRPCServiceImpl.java:390)
at
org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$executeStatementV2.getResult(IClientRPCService.java:3453)
at
org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$executeStatementV2.getResult(IClientRPCService.java:3433)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38)
at
org.apache.iotdb.db.service.thrift.ProcessorWithMetrics.process(ProcessorWithMetrics.java:64)
at
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:248)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.iotdb.commons.exception.IoTDBException: There are no
available SchemaRegionGroup RegionGroups currently, please use "show cluster"
or "show regions" to check the cluster status
... 20 common frames omitted
2022-11-27 09:54:31,466 [1@group-000200000000-StateMachineUpdater] INFO
o.a.i.d.m.s.SchemaRegionMemoryImpl:450 - MTree snapshot creation of
schemaRegion SchemaRegion[0] costs 2ms.
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)