[
https://issues.apache.org/jira/browse/IOTDB-3492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17554089#comment-17554089
]
Jialin Qiao commented on IOTDB-3492:
------------------------------------
This may due to the nested storage group is not allowed.
> NullPointerException when auto create sg by create timeseries
> -------------------------------------------------------------
>
> Key: IOTDB-3492
> URL: https://issues.apache.org/jira/browse/IOTDB-3492
> Project: Apache IoTDB
> Issue Type: Bug
> Reporter: Jialin Qiao
> Assignee: Yukun Zhou
> Priority: Major
> Attachments: image-2022-06-14-20-50-54-455.png
>
>
> When I execute "create timeseries" or "create aliged timeseries" without
> creating a storage group, I meet a NullPointerException.
> !image-2022-06-14-20-50-54-455.png|width=683,height=275!
>
> The following step is needed:
>
> set storage group to root.schema.sg1;
> create aligned timeseries root.schema.sg2.d2(s1 int32, s2 int32);
> create timeseries root.schema.sg3.d1.s1 int32;
>
> {code:java}
> 2022-06-14 20:43:36,008 [pool-24-IoTDB-RPC-Client-1] ERROR
> o.a.i.d.u.ErrorHandlingUtils:60 - Status code: INTERNAL_SERVER_ERROR(500),
> operation: "create aligned timeseries root.schema.sg2.d2(s1 int32, s2
> int32)". executeStatement failed
> java.lang.NullPointerException: null
> at
> org.apache.iotdb.commons.partition.SchemaPartition.getSchemaRegionReplicaSet(SchemaPartition.java:68)
> at
> org.apache.iotdb.db.mpp.plan.planner.plan.node.metedata.write.CreateAlignedTimeSeriesNode.splitByPartition(CreateAlignedTimeSeriesNode.java:431)
> at
> org.apache.iotdb.db.mpp.plan.planner.distribution.WriteFragmentParallelPlanner.parallelPlan(WriteFragmentParallelPlanner.java:56)
> at
> org.apache.iotdb.db.mpp.plan.planner.distribution.DistributionPlanner.planFragmentInstances(DistributionPlanner.java:95)
> at
> org.apache.iotdb.db.mpp.plan.planner.distribution.DistributionPlanner.planFragments(DistributionPlanner.java:79)
> at
> org.apache.iotdb.db.mpp.plan.execution.QueryExecution.doDistributedPlan(QueryExecution.java:232)
> at
> org.apache.iotdb.db.mpp.plan.execution.QueryExecution.start(QueryExecution.java:164)
> at
> org.apache.iotdb.db.mpp.plan.Coordinator.execute(Coordinator.java:130)
> at
> org.apache.iotdb.db.service.thrift.impl.DataNodeTSIServiceImpl.executeStatement(DataNodeTSIServiceImpl.java:551)
> at
> org.apache.iotdb.service.rpc.thrift.TSIService$Processor$executeStatement.getResult(TSIService.java:2853)
> at
> org.apache.iotdb.service.rpc.thrift.TSIService$Processor$executeStatement.getResult(TSIService.java:2833)
> at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38)
> at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:38)
> 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:750) {code}
> {code:java}
> 2022-06-14 20:44:34,963 [pool-24-IoTDB-RPC-Client-1] ERROR
> o.a.i.d.u.ErrorHandlingUtils:60 - Status code: INTERNAL_SERVER_ERROR(500),
> operation: "create timeseries root.schema.sg3.d1.s1 int32". executeStatement
> failed
> java.lang.NullPointerException: null
> at
> org.apache.iotdb.commons.partition.SchemaPartition.getSchemaRegionReplicaSet(SchemaPartition.java:68)
> at
> org.apache.iotdb.db.mpp.plan.planner.plan.node.metedata.write.CreateTimeSeriesNode.splitByPartition(CreateTimeSeriesNode.java:363)
> at
> org.apache.iotdb.db.mpp.plan.planner.distribution.WriteFragmentParallelPlanner.parallelPlan(WriteFragmentParallelPlanner.java:56)
> at
> org.apache.iotdb.db.mpp.plan.planner.distribution.DistributionPlanner.planFragmentInstances(DistributionPlanner.java:95)
> at
> org.apache.iotdb.db.mpp.plan.planner.distribution.DistributionPlanner.planFragments(DistributionPlanner.java:79)
> at
> org.apache.iotdb.db.mpp.plan.execution.QueryExecution.doDistributedPlan(QueryExecution.java:232)
> at
> org.apache.iotdb.db.mpp.plan.execution.QueryExecution.start(QueryExecution.java:164)
> at
> org.apache.iotdb.db.mpp.plan.Coordinator.execute(Coordinator.java:130)
> at
> org.apache.iotdb.db.service.thrift.impl.DataNodeTSIServiceImpl.executeStatement(DataNodeTSIServiceImpl.java:551)
> at
> org.apache.iotdb.service.rpc.thrift.TSIService$Processor$executeStatement.getResult(TSIService.java:2853)
> at
> org.apache.iotdb.service.rpc.thrift.TSIService$Processor$executeStatement.getResult(TSIService.java:2833)
> at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38)
> at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:38)
> 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:750) {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)