[ https://issues.apache.org/jira/browse/IOTDB-4600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Haonan Hou reassigned IOTDB-4600: --------------------------------- Assignee: (was: yanze chen) > Null pointer exception occurred when deleting data > -------------------------------------------------- > > Key: IOTDB-4600 > URL: https://issues.apache.org/jira/browse/IOTDB-4600 > Project: Apache IoTDB > Issue Type: Bug > Reporter: 任宇华 > Priority: Major > > 复现过程 sql: > > create timeseries root.ln.wf01.wt01.status with > datatype=BOOLEAN,encoding=PLAIN; > INSERT INTO root.ln.wf01.wt01(Time,status) VALUES (2022-10-11 > 10:20:50,true),(2022-10-11 10:20:51,true),(2022-10-11 10:20:51,true); > DELETE FROM root.ln.wf01.wt01.status WHERE time >2022-10-11 10:22:09; > > create timeseries root.sg.wf01.wt01.status with > datatype=BOOLEAN,encoding=PLAIN; > DELETE FROM root.ln.wf01.wt01.status,root.sg.wf01.wt01.status WHERE time > >2022-10-11 10:22:09; > > 报错: > 1646448 [pool-25-IoTDB-ClientRPC-Processor-9] ERROR > o.a.i.db.utils.ErrorHandlingUtils - Status code: INTERNAL_SERVER_ERROR(500), > operation: "DELETE FROM root.ln.wf01.wt01.status,root.sg.wf01.wt01.status > WHERE time >2022-10-11 10:22:09". executeStatement failed > java.lang.NullPointerException: null > at > org.apache.iotdb.db.mpp.plan.planner.plan.FragmentInstance.setDataRegionAndHost(FragmentInstance.java:108) > at > org.apache.iotdb.db.mpp.plan.planner.distribution.WriteFragmentParallelPlanner.parallelPlan(WriteFragmentParallelPlanner.java:66) > at > org.apache.iotdb.db.mpp.plan.planner.distribution.DistributionPlanner.planFragmentInstances(DistributionPlanner.java:94) > at > org.apache.iotdb.db.mpp.plan.planner.distribution.DistributionPlanner.planFragments(DistributionPlanner.java:78) > at > org.apache.iotdb.db.mpp.plan.execution.QueryExecution.doDistributedPlan(QueryExecution.java:282) > at > org.apache.iotdb.db.mpp.plan.execution.QueryExecution.start(QueryExecution.java:179) > at org.apache.iotdb.db.mpp.plan.Coordinator.execute(Coordinator.java:146) > at > org.apache.iotdb.db.service.thrift.impl.ClientRPCServiceImpl.executeStatement(ClientRPCServiceImpl.java:601) > at > org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$executeStatement.getResult(IClientRPCService.java:3037) > at > org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$executeStatement.getResult(IClientRPCService.java:3017) > 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:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) -- This message was sent by Atlassian Jira (v8.20.10#820010)