zerolbsony opened a new pull request, #15618:
URL: https://github.com/apache/iotdb/pull/15618

   Avoid the NPE problem occur that tsTable is null, and ensure if table is not 
exist and catch this exception to tell leader datanode for retry or do nothing.
   
   `2025-05-26` 18:27:24,037 [pool-24-IoTDB-IoTConsensusRPC-Processor-15] INFO  
o.a.i.d.p.r.m.PipeMemoryManager:412 - tryAllocate: allocated memory, total 
memory size 687194767 bytes, used memory size 687194696 bytes, original 
requested memory size 314572800 bytes, actual requested memory size 32 bytes 
   2025-05-26 18:27:24,037 [pool-24-IoTDB-IoTConsensusRPC-Processor-15] ERROR 
o.a.t.ProcessFunction:47 - Internal error processing syncLogEntries 
   java.lang.NullPointerException: Cannot invoke 
"org.apache.iotdb.commons.schema.table.TsTable.getTableName()" because 
"tsTable" is null
        at 
org.apache.iotdb.db.queryengine.plan.relational.metadata.TableSchema.of(TableSchema.java:84)
        at 
org.apache.iotdb.db.storageengine.dataregion.DataRegion.lambda$registerToTsFile$5(DataRegion.java:1471)
        at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
        at 
org.apache.iotdb.db.storageengine.dataregion.memtable.TsFileProcessor.registerToTsFile(TsFileProcessor.java:2301)
        at 
org.apache.iotdb.db.storageengine.dataregion.DataRegion.registerToTsFile(DataRegion.java:1468)
        at 
org.apache.iotdb.db.storageengine.dataregion.DataRegion.insertToTsFileProcessors(DataRegion.java:1559)
        at 
org.apache.iotdb.db.storageengine.dataregion.DataRegion.insert(DataRegion.java:3677)
        at 
org.apache.iotdb.db.consensus.statemachine.dataregion.DataExecutionVisitor.visitInsertRows(DataExecutionVisitor.java:135)
        at 
org.apache.iotdb.db.consensus.statemachine.dataregion.DataExecutionVisitor.visitRelationalInsertRows(DataExecutionVisitor.java:68)
        at 
org.apache.iotdb.db.consensus.statemachine.dataregion.DataExecutionVisitor.visitRelationalInsertRows(DataExecutionVisitor.java:54)
        at 
org.apache.iotdb.db.queryengine.plan.planner.plan.node.write.RelationalInsertRowsNode.accept(RelationalInsertRowsNode.java:77)
        at 
org.apache.iotdb.db.consensus.statemachine.dataregion.DataRegionStateMachine.write(DataRegionStateMachine.java:216)
        at 
org.apache.iotdb.db.consensus.statemachine.dataregion.IoTConsensusDataRegionStateMachine.write(IoTConsensusDataRegionStateMachine.java:64)
        at 
org.apache.iotdb.consensus.iot.IoTConsensusServerImpl$SyncLogCacheQueue.cacheAndInsertLatestNode(IoTConsensusServerImpl.java:1001)
        at 
org.apache.iotdb.consensus.iot.IoTConsensusServerImpl$SyncLogCacheQueue.access$000(IoTConsensusServerImpl.java:909)
                at 
org.apache.iotdb.consensus.iot.IoTConsensusServerImpl.syncLog(IoTConsensusServerImpl.java:892)
        at 
org.apache.iotdb.consensus.iot.service.IoTConsensusRPCServiceProcessor.syncLogEntries(IoTConsensusRPCServiceProcessor.java:127)
        at 
org.apache.iotdb.consensus.iot.thrift.IoTConsensusIService$Processor$syncLogEntries.getResult(IoTConsensusIService.java:695)
        at 
org.apache.iotdb.consensus.iot.thrift.IoTConsensusIService$Processor$syncLogEntries.getResult(IoTConsensusIService.java:675)
        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.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:840)
   2025-05-26 18:27:24,083 
[pool-33-IoTDB-ClientRPC-Processor-3$20250526_102724_15693_1] INFO  
o.a.i.d.q.p.e.c.e.ClusterConfigTaskExecutor:3597 - Failed to DROP DATABASE 
test_db, because it doesn't exist 
   2025-05-26 18:27:24,084 [pool-25-IoTDB-MPP-Coordinator-Executor-8] INFO  
o.a.i.d.q.p.e.c.ConfigExecution:169 - Failures happened during running 
ConfigExecution when executing DropDBTask, message: Database test_db doesn't 
exist, status: 500 
   2025-05-26 18:27:24,226 [pool-24-IoTDB-IoTConsensusRPC-Processor-13] INFO  
o.a.i.c.i.IoTConsensusServerImpl$SyncLogCacheQueue:979 - waiting target request 
timeout. current index: 2, target index: 2 
   2025-05-26 18:27:24,226 [pool-24-IoTDB-IoTConsensusRPC-Processor-13] ERROR 
o.a.t.ProcessFunction:47 - Internal error processing syncLogEntries `
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to