apache / iotdb

Apache IoTDB
https://iotdb.apache.org/
Apache License 2.0
5.63k stars 1.03k forks source link

[Bug] Msg: 305 executeStatement failed. Fetch Schema failed. #8762

Open automatous opened 1 year ago

automatous commented 1 year ago

Search before asking

Version

version: 1.0.0

IoTDB> show cluster details; +------+----------+-------+---------------+------------+-------------------+-------------+-------+-----------------+-------------------+-------+ |NodeID| NodeType| Status|InternalAddress|InternalPort|ConfigConsensusPort| RpcAddress|RpcPort|DataConsensusPort|SchemaConsensusPort|MppPort| +------+----------+-------+---------------+------------+-------------------+-------------+-------+-----------------+-------------------+-------+ | 0|ConfigNode|Running| 127.0.0.1| 22277| 22278| | | | | | | 1|ConfigNode|Running| 127.0.0.1| 32277| 32278| | | | | | | 2|ConfigNode|Running| 127.0.0.1| 42277| 42278| | | | | | | 3| DataNode|Running| 127.0.0.1| 9003| |192.168.4.165| 6667| 40010| 50010| 8777| | 4| DataNode|Running| 127.0.0.1| 9004| |192.168.4.165| 6668| 40011| 50011| 8778| | 5| DataNode|Running| 127.0.0.1| 9005| |192.168.4.165| 6669| 40012| 50012| 8779| +------+----------+-------+---------------+------------+-------------------+-------------+-------+-----------------+-------------------+-------+ Total line number = 6 It costs 0.021s

Describe the bug and provide the minimal reproduce step

  1. 连续写入大量数据
  2. 写完后立即断电(模拟前段时间,某云服务器厂商大面积故障,导致我司业务瘫痪)
  3. 重启后发现:数据量大的数据库,无法CRUD;数据量小的数据库正常
  4. 原本以为大数据量需要时间恢复,等待24h后,问题依旧存在

以下是报错的详细日志:2023-01-05 18:14:05,983 [pool-314-IoTDB-ClientRPC-Processor-3] WARN o.a.i.d.u.ErrorHandlingUtils:62 - Status code: INTERNAL_SERVER_ERROR(305), operation: "select * from root.1.hardwareMonitor.0ed1ca81537c4ed88e64b15a13bae3e7". executeStatement failed java.lang.RuntimeException: Fetch Schema failed. at org.apache.iotdb.db.mpp.plan.analyze.ClusterSchemaFetcher.executeSchemaFetchQuery(ClusterSchemaFetcher.java:202) at org.apache.iotdb.db.mpp.plan.analyze.ClusterSchemaFetcher.fetchSchema(ClusterSchemaFetcher.java:126) at org.apache.iotdb.db.mpp.plan.analyze.ClusterSchemaFetcher.fetchSchema(ClusterSchemaFetcher.java:98) at org.apache.iotdb.db.mpp.plan.analyze.ClusterSchemaFetcher.fetchSchema(ClusterSchemaFetcher.java:76) at org.apache.iotdb.db.mpp.plan.analyze.AnalyzeVisitor.visitQuery(AnalyzeVisitor.java:208) at org.apache.iotdb.db.mpp.plan.analyze.AnalyzeVisitor.visitQuery(AnalyzeVisitor.java:161) at org.apache.iotdb.db.mpp.plan.statement.crud.QueryStatement.accept(QueryStatement.java:507) 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.(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:823) Caused by: org.apache.iotdb.commons.exception.IoTDBException: org.apache.iotdb.db.mpp.execution.fragment.FragmentInstanceFailureInfo$FailureException: There should not be no template mounted on any ancestor of a node usingTemplate. at org.apache.iotdb.db.mpp.plan.execution.QueryExecution.dealWithException(QueryExecution.java:430) at org.apache.iotdb.db.mpp.plan.execution.QueryExecution.getResult(QueryExecution.java:413) at org.apache.iotdb.db.mpp.plan.execution.QueryExecution.getBatchResult(QueryExecution.java:439) at org.apache.iotdb.db.mpp.plan.analyze.ClusterSchemaFetcher.executeSchemaFetchQuery(ClusterSchemaFetcher.java:200) ... 22 common frames omitted Caused by: org.apache.iotdb.db.mpp.execution.fragment.FragmentInstanceFailureInfo$FailureException: There should not be no template mounted on any ancestor of a node usingTemplate. at org.apache.iotdb.db.metadata.mtree.traverser.Traverser.getActivatedSchemaTemplate(Traverser.java:471) at org.apache.iotdb.db.metadata.mtree.traverser.Traverser.processOneLevelWildcard(Traverser.java:349) at org.apache.iotdb.db.metadata.mtree.traverser.Traverser.traverse(Traverser.java:180) at org.apache.iotdb.db.metadata.mtree.traverser.collector.CollectorTraverser.traverse(CollectorTraverser.java:63) at org.apache.iotdb.db.metadata.mtree.traverser.Traverser.processNameMatch(Traverser.java:402) at org.apache.iotdb.db.metadata.mtree.traverser.Traverser.traverse(Traverser.java:182) at org.apache.iotdb.db.metadata.mtree.traverser.collector.CollectorTraverser.traverse(CollectorTraverser.java:63) at org.apache.iotdb.db.metadata.mtree.traverser.Traverser.processNameMatch(Traverser.java:402) at org.apache.iotdb.db.metadata.mtree.traverser.Traverser.traverse(Traverser.java:182) at org.apache.iotdb.db.metadata.mtree.traverser.collector.CollectorTraverser.traverse(CollectorTraverser.java:63) at org.apache.iotdb.db.metadata.mtree.traverser.Traverser.traverse(Traverser.java:147) at org.apache.iotdb.db.metadata.mtree.MTreeBelowSGMemoryImpl.fetchSchema(MTreeBelowSGMemoryImpl.java:768) at org.apache.iotdb.db.metadata.schemaregion.SchemaRegionMemoryImpl.fetchSchema(SchemaRegionMemoryImpl.java:1148) at org.apache.iotdb.db.mpp.execution.operator.schema.SchemaFetchScanOperator.fetchSchema(SchemaFetchScanOperator.java:116) at org.apache.iotdb.db.mpp.execution.operator.schema.SchemaFetchScanOperator.next(SchemaFetchScanOperator.java:90) at org.apache.iotdb.db.mpp.execution.operator.schema.SchemaFetchMergeOperator.next(SchemaFetchMergeOperator.java:76) at org.apache.iotdb.db.mpp.execution.driver.Driver.processInternal(Driver.java:186) at org.apache.iotdb.db.mpp.execution.driver.Driver.lambda$processFor$1(Driver.java:125) at org.apache.iotdb.db.mpp.execution.driver.Driver$$Lambda$784/0x0000000000000000.get(Unknown Source) at org.apache.iotdb.db.mpp.execution.driver.Driver.tryWithLock(Driver.java:270) at org.apache.iotdb.db.mpp.execution.driver.Driver.processFor(Driver.java:118) at org.apache.iotdb.db.mpp.execution.schedule.DriverTaskThread.execute(DriverTaskThread.java:64) at org.apache.iotdb.db.mpp.execution.schedule.AbstractDriverThread.run(AbstractDriverThread.java:74) 2023-01-05 18:14:05,984 [pool-25-IoTDB-mpp-data-exchange-task-executors-6$20230105_101405_00068_3.0.0.0] WARN o.a.i.d.m.e.e.SourceHandle$GetDataBlocksTask:424 - failed to get data block [0, 1), attempt times: 1 org.apache.thrift.TException: Error in calling method getDataBlock, because: Error in calling method recv_getDataBlock, because: Error in calling method receiveBase, because: Internal error processing getDataBlock at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:95) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.getDataBlock() at org.apache.iotdb.db.mpp.execution.exchange.SourceHandle$GetDataBlocksTask.run(SourceHandle.java:402) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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:823) Caused by: org.apache.thrift.TException: Error in calling method recv_getDataBlock, because: Error in calling method receiveBase, because: Internal error processing getDataBlock at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:95) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.recv_getDataBlock() at org.apache.iotdb.mpp.rpc.thrift.MPPDataExchangeService$Client.getDataBlock(MPPDataExchangeService.java:60) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.CGLIB$getDataBlock$6() at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a$$FastClassByCGLIB$$59c62a1.invoke() at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:55) ... 7 common frames omitted Caused by: org.apache.thrift.TException: Error in calling method receiveBase, because: Internal error processing getDataBlock at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:95) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.receiveBase() at org.apache.iotdb.mpp.rpc.thrift.MPPDataExchangeService$Client.recv_getDataBlock(MPPDataExchangeService.java:73) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.CGLIB$recv_getDataBlock$8() at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a$$FastClassByCGLIB$$59c62a1.invoke() at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:55) ... 13 common frames omitted Caused by: org.apache.thrift.TApplicationException: Internal error processing getDataBlock at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.CGLIB$receiveBase$22() at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a$$FastClassByCGLIB$$59c62a1.invoke() at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:55) ... 19 common frames omitted 2023-01-05 18:14:06,987 [pool-25-IoTDB-mpp-data-exchange-task-executors-6$20230105_101405_00068_3.0.0.0] WARN o.a.i.d.m.e.e.SourceHandle$GetDataBlocksTask:424 - failed to get data block [0, 1), attempt times: 2 org.apache.thrift.TException: Error in calling method getDataBlock, because: Error in calling method recv_getDataBlock, because: Error in calling method receiveBase, because: Internal error processing getDataBlock at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:95) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.getDataBlock() at org.apache.iotdb.db.mpp.execution.exchange.SourceHandle$GetDataBlocksTask.run(SourceHandle.java:402) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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:823) Caused by: org.apache.thrift.TException: Error in calling method recv_getDataBlock, because: Error in calling method receiveBase, because: Internal error processing getDataBlock at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:95) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.recv_getDataBlock() at org.apache.iotdb.mpp.rpc.thrift.MPPDataExchangeService$Client.getDataBlock(MPPDataExchangeService.java:60) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.CGLIB$getDataBlock$6() at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a$$FastClassByCGLIB$$59c62a1.invoke() at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:55) ... 7 common frames omitted Caused by: org.apache.thrift.TException: Error in calling method receiveBase, because: Internal error processing getDataBlock at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:95) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.receiveBase() at org.apache.iotdb.mpp.rpc.thrift.MPPDataExchangeService$Client.recv_getDataBlock(MPPDataExchangeService.java:73) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.CGLIB$recv_getDataBlock$8() at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a$$FastClassByCGLIB$$59c62a1.invoke() at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:55) ... 13 common frames omitted Caused by: org.apache.thrift.TApplicationException: Internal error processing getDataBlock at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.CGLIB$receiveBase$22() at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a$$FastClassByCGLIB$$59c62a1.invoke() at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:55) ... 19 common frames omitted 2023-01-05 18:14:07,991 [pool-25-IoTDB-mpp-data-exchange-task-executors-6$20230105_101405_00068_3.0.0.0] WARN o.a.i.d.m.e.e.SourceHandle$GetDataBlocksTask:424 - failed to get data block [0, 1), attempt times: 3 org.apache.thrift.TException: Error in calling method getDataBlock, because: Error in calling method recv_getDataBlock, because: Error in calling method receiveBase, because: Internal error processing getDataBlock at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:95) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.getDataBlock() at org.apache.iotdb.db.mpp.execution.exchange.SourceHandle$GetDataBlocksTask.run(SourceHandle.java:402) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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:823) Caused by: org.apache.thrift.TException: Error in calling method recv_getDataBlock, because: Error in calling method receiveBase, because: Internal error processing getDataBlock at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:95) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.recv_getDataBlock() at org.apache.iotdb.mpp.rpc.thrift.MPPDataExchangeService$Client.getDataBlock(MPPDataExchangeService.java:60) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.CGLIB$getDataBlock$6() at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a$$FastClassByCGLIB$$59c62a1.invoke() at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:55) ... 7 common frames omitted Caused by: org.apache.thrift.TException: Error in calling method receiveBase, because: Internal error processing getDataBlock at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:95) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.receiveBase() at org.apache.iotdb.mpp.rpc.thrift.MPPDataExchangeService$Client.recv_getDataBlock(MPPDataExchangeService.java:73) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.CGLIB$recv_getDataBlock$8() at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a$$FastClassByCGLIB$$59c62a1.invoke() at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:55) ... 13 common frames omitted Caused by: org.apache.thrift.TApplicationException: Internal error processing getDataBlock at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79) at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a.CGLIB$receiveBase$22() at org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient$$EnhancerByCGLIB$$d254228a$$FastClassByCGLIB$$59c62a1.invoke() at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.apache.iotdb.commons.client.sync.SyncThriftClientWithErrorHandler.intercept(SyncThriftClientWithErrorHandler.java:55) ... 19 common frames omitted

What did you expect to see?

  1. 对于有问题的数据库,能恢复CRUD功能

What did you see instead?

  1. 允许损失数据,但CRUD功能正常

Anything else?

定位问题期间,发现几个官网命令报错: IoTDB> create snapshot for schema; Msg: 700: Error occurred while parsing SQL to physical plan: line 1:7 no viable alternative at input 'create snapshot' IoTDB> show variables; Msg: 700: Error occurred while parsing SQL to physical plan: line 1:5 no viable alternative at input 'show variables'

Are you willing to submit a PR?

MarcosZyk commented 1 year ago

This bug has been fixed branch rel/1.0 and will be released in v1.0.1. If you still want use v1.0.0, you can close the snapshot mechanism of ScemaRegion to avoid this bug.


这个 bug 是由于 1.0.0 版本的 SchemaRegion 在打 snapshot 时对模板的信息处理有bug,已经在 rel/1.0 版本分支修复了,将在 1.0.1 版本发布。 你可以使用 rel/1.0 分支的最新代码打包使用;或者在使用 1.0 版本时关闭 SchemaRegion 的 snapshot 功能。

ld000 commented 1 year ago

1.0.1 依旧有这个问题。长时间不操作,再执行select会报错

Msg: 305: [INTERNAL_SERVER_ERROR(305)] Exception occurred: "select .....". executeStatement failed. cannot fetch schema, status is: 301, msg is: Execute FragmentInstance failed: The consensus group SchemaRegion[1] doesn't exist

IceMimosa commented 1 year ago

类似的问题:


2023-10-10 17:15:42,451 [pool-245-IoTDB-ClientRPC-Processor-8533] WARN  o.a.i.d.u.ErrorHandlingUtils:63 - Status code: INTERNAL_SERVER_ERROR(305). executeStatement failed
java.lang.RuntimeException: cannot fetch schema, status is: 301, msg is: Execute FragmentInstance failed: Ratis request failed 6@group-0002000003A5 is not in [RUNNING]: current state is CLOSED
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetchExecutor.executeSchemaFetchQuery(ClusterSchemaFetchExecutor.java:205)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetchExecutor.fetchSchemaOfPreciseMatchOrPreciseDeviceUsingTemplate(ClusterSchemaFetchExecutor.java:116)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetcher.fetchSchema(ClusterSchemaFetcher.java:139)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetcher.fetchSchema(ClusterSchemaFetcher.java:50)
        at org.apache.iotdb.db.queryengine.plan.analyze.AnalyzeVisitor.analyzeSchema(AnalyzeVisitor.java:337)
        at org.apache.iotdb.db.queryengine.plan.analyze.AnalyzeVisitor.visitQuery(AnalyzeVisitor.java:233)
        at org.apache.iotdb.db.queryengine.plan.analyze.AnalyzeVisitor.visitQuery(AnalyzeVisitor.java:186)
        at org.apache.iotdb.db.queryengine.plan.statement.crud.QueryStatement.accept(QueryStatement.java:696)
        at org.apache.iotdb.db.queryengine.plan.statement.StatementVisitor.process(StatementVisitor.java:128)
        at org.apache.iotdb.db.queryengine.plan.analyze.Analyzer.analyze(Analyzer.java:48)
        at org.apache.iotdb.db.queryengine.plan.execution.QueryExecution.analyze(QueryExecution.java:309)
        at org.apache.iotdb.db.queryengine.plan.execution.QueryExecution.<init>(QueryExecution.java:169)
        at org.apache.iotdb.db.queryengine.plan.Coordinator.createQueryExecution(Coordinator.java:113)
        at org.apache.iotdb.db.queryengine.plan.Coordinator.execute(Coordinator.java:147)
        at org.apache.iotdb.db.protocol.thrift.impl.ClientRPCServiceImpl.executeStatementInternal(ClientRPCServiceImpl.java:298)
        at org.apache.iotdb.db.protocol.thrift.impl.ClientRPCServiceImpl.executeStatementV2(ClientRPCServiceImpl.java:739)
        at org.apache.iotdb.db.protocol.thrift.impl.ClientRPCServiceImpl.executeQueryStatementV2(ClientRPCServiceImpl.java:729)
        at org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$executeQueryStatementV2.getResult(IClientRPCService.java:3819)
        at org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$executeQueryStatementV2.getResult(IClientRPCService.java:3799)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38)
        at org.apache.iotdb.db.protocol.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:750)

2023-10-10 16:40:09,628 [pool-245-IoTDB-ClientRPC-Processor-8553$20231010_084009_82955_6.1.0] ERROR o.a.i.d.q.e.e.RegionReadExecutor:85 - Execute FragmentInstance in ConsensusGroup SchemaRegion[933] failed.
org.apache.iotdb.consensus.exception.RatisRequestFailedException: Ratis request failed 6@group-0002000003A5 is not in [RUNNING]: current state is CLOSED
        at org.apache.iotdb.consensus.ratis.RatisConsensus.read(RatisConsensus.java:351)
        at org.apache.iotdb.db.queryengine.execution.executor.RegionReadExecutor.execute(RegionReadExecutor.java:77)
        at org.apache.iotdb.db.queryengine.plan.scheduler.FragmentInstanceDispatcherImpl.dispatchLocally(FragmentInstanceDispatcherImpl.java:350)
        at org.apache.iotdb.db.queryengine.plan.scheduler.FragmentInstanceDispatcherImpl.dispatchOneInstance(FragmentInstanceDispatcherImpl.java:246)
        at org.apache.iotdb.db.queryengine.plan.scheduler.FragmentInstanceDispatcherImpl.dispatchRead(FragmentInstanceDispatcherImpl.java:122)
        at org.apache.iotdb.db.queryengine.plan.scheduler.FragmentInstanceDispatcherImpl.dispatch(FragmentInstanceDispatcherImpl.java:109)
        at org.apache.iotdb.db.queryengine.plan.scheduler.ClusterScheduler.start(ClusterScheduler.java:115)
        at org.apache.iotdb.db.queryengine.plan.execution.QueryExecution.schedule(QueryExecution.java:342)
        at org.apache.iotdb.db.queryengine.plan.execution.QueryExecution.start(QueryExecution.java:231)
        at org.apache.iotdb.db.queryengine.plan.Coordinator.execute(Coordinator.java:160)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetchExecutor.executionStatement(ClusterSchemaFetchExecutor.java:78)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetchExecutor.executeSchemaFetchQuery(ClusterSchemaFetchExecutor.java:202)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetchExecutor.fetchSchemaAndCacheResult(ClusterSchemaFetchExecutor.java:179)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetchExecutor.fetchSchemaOfMultiDevices(ClusterSchemaFetchExecutor.java:154)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.TemplateSchemaFetcher.processTemplateTimeSeries(TemplateSchemaFetcher.java:175)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetcher.fetchAndComputeSchemaWithAutoCreate(ClusterSchemaFetcher.java:219)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.SchemaValidator.validate(SchemaValidator.java:45)
        at org.apache.iotdb.db.queryengine.plan.analyze.AnalyzeVisitor.validateSchema(AnalyzeVisitor.java:2431)
        at org.apache.iotdb.db.queryengine.plan.analyze.AnalyzeVisitor.visitInsertRows(AnalyzeVisitor.java:2352)
        at org.apache.iotdb.db.queryengine.plan.analyze.AnalyzeVisitor.visitInsertRows(AnalyzeVisitor.java:186)
        at org.apache.iotdb.db.queryengine.plan.statement.crud.InsertRowsStatement.accept(InsertRowsStatement.java:91)
        at org.apache.iotdb.db.queryengine.plan.statement.StatementVisitor.process(StatementVisitor.java:128)
        at org.apache.iotdb.db.queryengine.plan.analyze.Analyzer.analyze(Analyzer.java:48)
        at org.apache.iotdb.db.queryengine.plan.execution.QueryExecution.analyze(QueryExecution.java:309)
        at org.apache.iotdb.db.queryengine.plan.execution.QueryExecution.<init>(QueryExecution.java:169)
        at org.apache.iotdb.db.queryengine.plan.Coordinator.createQueryExecution(Coordinator.java:113)
        at org.apache.iotdb.db.queryengine.plan.Coordinator.execute(Coordinator.java:147)
        at org.apache.iotdb.db.queryengine.plan.Coordinator.execute(Coordinator.java:174)
        at org.apache.iotdb.db.protocol.thrift.impl.ClientRPCServiceImpl.insertRecords(ClientRPCServiceImpl.java:1660)
        at org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$insertRecords.getResult(IClientRPCService.java:4619)
        at org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$insertRecords.getResult(IClientRPCService.java:4599)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38)
        at org.apache.iotdb.db.protocol.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:750)
Caused by: org.apache.ratis.protocol.exceptions.ServerNotReadyException: 6@group-0002000003A5 is not in [RUNNING]: current state is CLOSED
        at org.apache.ratis.server.impl.RaftServerImpl.lambda$assertLifeCycleState$9(RaftServerImpl.java:749)
        at org.apache.ratis.util.LifeCycle.assertCurrentState(LifeCycle.java:253)
        at org.apache.ratis.server.impl.RaftServerImpl.assertLifeCycleState(RaftServerImpl.java:748)
        at org.apache.ratis.server.impl.RaftServerImpl.submitClientRequestAsync(RaftServerImpl.java:838)
        at org.apache.ratis.server.impl.RaftServerImpl.submitClientRequest(RaftServerImpl.java:1031)
        at org.apache.ratis.server.impl.RaftServerProxy.submitClientRequest(RaftServerProxy.java:449)
        at org.apache.iotdb.consensus.ratis.RatisConsensus.doRead(RatisConsensus.java:374)
        at org.apache.iotdb.consensus.ratis.RatisConsensus.read(RatisConsensus.java:340)
        ... 36 common frames omitted
2023-10-10 16:40:09,909 [pool-244-IoTDB-DataNodeInternalRPC-Processor-17392$20231010_084009_52303_5.1.0] ERROR o.a.i.d.q.e.e.RegionReadExecutor:85 - Execute FragmentInstance in ConsensusGroup SchemaRegion[933] failed.
org.apache.iotdb.consensus.exception.RatisRequestFailedException: Ratis request failed 6@group-0002000003A5 is not in [RUNNING]: current state is CLOSED
        at org.apache.iotdb.consensus.ratis.RatisConsensus.read(RatisConsensus.java:351)
        at org.apache.iotdb.db.queryengine.execution.executor.RegionReadExecutor.execute(RegionReadExecutor.java:77)
        at org.apache.iotdb.db.protocol.thrift.impl.DataNodeInternalRPCServiceImpl.sendFragmentInstance(DataNodeInternalRPCServiceImpl.java:301)
        at org.apache.iotdb.mpp.rpc.thrift.IDataNodeRPCService$Processor$sendFragmentInstance.getResult(IDataNodeRPCService.java:4271)
        at org.apache.iotdb.mpp.rpc.thrift.IDataNodeRPCService$Processor$sendFragmentInstance.getResult(IDataNodeRPCService.java:4251)
        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)
Caused by: org.apache.ratis.protocol.exceptions.ServerNotReadyException: 6@group-0002000003A5 is not in [RUNNING]: current state is CLOSED
        at org.apache.ratis.server.impl.RaftServerImpl.lambda$assertLifeCycleState$9(RaftServerImpl.java:749)
        at org.apache.ratis.util.LifeCycle.assertCurrentState(LifeCycle.java:253)
        at org.apache.ratis.server.impl.RaftServerImpl.assertLifeCycleState(RaftServerImpl.java:748)
        at org.apache.ratis.server.impl.RaftServerImpl.submitClientRequestAsync(RaftServerImpl.java:838)
        at org.apache.ratis.server.impl.RaftServerImpl.submitClientRequest(RaftServerImpl.java:1031)
        at org.apache.ratis.server.impl.RaftServerProxy.submitClientRequest(RaftServerProxy.java:449)
        at org.apache.iotdb.consensus.ratis.RatisConsensus.doRead(RatisConsensus.java:374)
        at org.apache.iotdb.consensus.ratis.RatisConsensus.read(RatisConsensus.java:340)
        ... 10 common frames omitted
alextinng commented 9 months ago

类似的问题:

2023-10-10 17:15:42,451 [pool-245-IoTDB-ClientRPC-Processor-8533] WARN  o.a.i.d.u.ErrorHandlingUtils:63 - Status code: INTERNAL_SERVER_ERROR(305). executeStatement failed
java.lang.RuntimeException: cannot fetch schema, status is: 301, msg is: Execute FragmentInstance failed: Ratis request failed 6@group-0002000003A5 is not in [RUNNING]: current state is CLOSED
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetchExecutor.executeSchemaFetchQuery(ClusterSchemaFetchExecutor.java:205)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetchExecutor.fetchSchemaOfPreciseMatchOrPreciseDeviceUsingTemplate(ClusterSchemaFetchExecutor.java:116)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetcher.fetchSchema(ClusterSchemaFetcher.java:139)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetcher.fetchSchema(ClusterSchemaFetcher.java:50)
        at org.apache.iotdb.db.queryengine.plan.analyze.AnalyzeVisitor.analyzeSchema(AnalyzeVisitor.java:337)
        at org.apache.iotdb.db.queryengine.plan.analyze.AnalyzeVisitor.visitQuery(AnalyzeVisitor.java:233)
        at org.apache.iotdb.db.queryengine.plan.analyze.AnalyzeVisitor.visitQuery(AnalyzeVisitor.java:186)
        at org.apache.iotdb.db.queryengine.plan.statement.crud.QueryStatement.accept(QueryStatement.java:696)
        at org.apache.iotdb.db.queryengine.plan.statement.StatementVisitor.process(StatementVisitor.java:128)
        at org.apache.iotdb.db.queryengine.plan.analyze.Analyzer.analyze(Analyzer.java:48)
        at org.apache.iotdb.db.queryengine.plan.execution.QueryExecution.analyze(QueryExecution.java:309)
        at org.apache.iotdb.db.queryengine.plan.execution.QueryExecution.<init>(QueryExecution.java:169)
        at org.apache.iotdb.db.queryengine.plan.Coordinator.createQueryExecution(Coordinator.java:113)
        at org.apache.iotdb.db.queryengine.plan.Coordinator.execute(Coordinator.java:147)
        at org.apache.iotdb.db.protocol.thrift.impl.ClientRPCServiceImpl.executeStatementInternal(ClientRPCServiceImpl.java:298)
        at org.apache.iotdb.db.protocol.thrift.impl.ClientRPCServiceImpl.executeStatementV2(ClientRPCServiceImpl.java:739)
        at org.apache.iotdb.db.protocol.thrift.impl.ClientRPCServiceImpl.executeQueryStatementV2(ClientRPCServiceImpl.java:729)
        at org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$executeQueryStatementV2.getResult(IClientRPCService.java:3819)
        at org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$executeQueryStatementV2.getResult(IClientRPCService.java:3799)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38)
        at org.apache.iotdb.db.protocol.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:750)

2023-10-10 16:40:09,628 [pool-245-IoTDB-ClientRPC-Processor-8553$20231010_084009_82955_6.1.0] ERROR o.a.i.d.q.e.e.RegionReadExecutor:85 - Execute FragmentInstance in ConsensusGroup SchemaRegion[933] failed.
org.apache.iotdb.consensus.exception.RatisRequestFailedException: Ratis request failed 6@group-0002000003A5 is not in [RUNNING]: current state is CLOSED
        at org.apache.iotdb.consensus.ratis.RatisConsensus.read(RatisConsensus.java:351)
        at org.apache.iotdb.db.queryengine.execution.executor.RegionReadExecutor.execute(RegionReadExecutor.java:77)
        at org.apache.iotdb.db.queryengine.plan.scheduler.FragmentInstanceDispatcherImpl.dispatchLocally(FragmentInstanceDispatcherImpl.java:350)
        at org.apache.iotdb.db.queryengine.plan.scheduler.FragmentInstanceDispatcherImpl.dispatchOneInstance(FragmentInstanceDispatcherImpl.java:246)
        at org.apache.iotdb.db.queryengine.plan.scheduler.FragmentInstanceDispatcherImpl.dispatchRead(FragmentInstanceDispatcherImpl.java:122)
        at org.apache.iotdb.db.queryengine.plan.scheduler.FragmentInstanceDispatcherImpl.dispatch(FragmentInstanceDispatcherImpl.java:109)
        at org.apache.iotdb.db.queryengine.plan.scheduler.ClusterScheduler.start(ClusterScheduler.java:115)
        at org.apache.iotdb.db.queryengine.plan.execution.QueryExecution.schedule(QueryExecution.java:342)
        at org.apache.iotdb.db.queryengine.plan.execution.QueryExecution.start(QueryExecution.java:231)
        at org.apache.iotdb.db.queryengine.plan.Coordinator.execute(Coordinator.java:160)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetchExecutor.executionStatement(ClusterSchemaFetchExecutor.java:78)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetchExecutor.executeSchemaFetchQuery(ClusterSchemaFetchExecutor.java:202)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetchExecutor.fetchSchemaAndCacheResult(ClusterSchemaFetchExecutor.java:179)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetchExecutor.fetchSchemaOfMultiDevices(ClusterSchemaFetchExecutor.java:154)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.TemplateSchemaFetcher.processTemplateTimeSeries(TemplateSchemaFetcher.java:175)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.ClusterSchemaFetcher.fetchAndComputeSchemaWithAutoCreate(ClusterSchemaFetcher.java:219)
        at org.apache.iotdb.db.queryengine.plan.analyze.schema.SchemaValidator.validate(SchemaValidator.java:45)
        at org.apache.iotdb.db.queryengine.plan.analyze.AnalyzeVisitor.validateSchema(AnalyzeVisitor.java:2431)
        at org.apache.iotdb.db.queryengine.plan.analyze.AnalyzeVisitor.visitInsertRows(AnalyzeVisitor.java:2352)
        at org.apache.iotdb.db.queryengine.plan.analyze.AnalyzeVisitor.visitInsertRows(AnalyzeVisitor.java:186)
        at org.apache.iotdb.db.queryengine.plan.statement.crud.InsertRowsStatement.accept(InsertRowsStatement.java:91)
        at org.apache.iotdb.db.queryengine.plan.statement.StatementVisitor.process(StatementVisitor.java:128)
        at org.apache.iotdb.db.queryengine.plan.analyze.Analyzer.analyze(Analyzer.java:48)
        at org.apache.iotdb.db.queryengine.plan.execution.QueryExecution.analyze(QueryExecution.java:309)
        at org.apache.iotdb.db.queryengine.plan.execution.QueryExecution.<init>(QueryExecution.java:169)
        at org.apache.iotdb.db.queryengine.plan.Coordinator.createQueryExecution(Coordinator.java:113)
        at org.apache.iotdb.db.queryengine.plan.Coordinator.execute(Coordinator.java:147)
        at org.apache.iotdb.db.queryengine.plan.Coordinator.execute(Coordinator.java:174)
        at org.apache.iotdb.db.protocol.thrift.impl.ClientRPCServiceImpl.insertRecords(ClientRPCServiceImpl.java:1660)
        at org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$insertRecords.getResult(IClientRPCService.java:4619)
        at org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$insertRecords.getResult(IClientRPCService.java:4599)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38)
        at org.apache.iotdb.db.protocol.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:750)
Caused by: org.apache.ratis.protocol.exceptions.ServerNotReadyException: 6@group-0002000003A5 is not in [RUNNING]: current state is CLOSED
        at org.apache.ratis.server.impl.RaftServerImpl.lambda$assertLifeCycleState$9(RaftServerImpl.java:749)
        at org.apache.ratis.util.LifeCycle.assertCurrentState(LifeCycle.java:253)
        at org.apache.ratis.server.impl.RaftServerImpl.assertLifeCycleState(RaftServerImpl.java:748)
        at org.apache.ratis.server.impl.RaftServerImpl.submitClientRequestAsync(RaftServerImpl.java:838)
        at org.apache.ratis.server.impl.RaftServerImpl.submitClientRequest(RaftServerImpl.java:1031)
        at org.apache.ratis.server.impl.RaftServerProxy.submitClientRequest(RaftServerProxy.java:449)
        at org.apache.iotdb.consensus.ratis.RatisConsensus.doRead(RatisConsensus.java:374)
        at org.apache.iotdb.consensus.ratis.RatisConsensus.read(RatisConsensus.java:340)
        ... 36 common frames omitted
2023-10-10 16:40:09,909 [pool-244-IoTDB-DataNodeInternalRPC-Processor-17392$20231010_084009_52303_5.1.0] ERROR o.a.i.d.q.e.e.RegionReadExecutor:85 - Execute FragmentInstance in ConsensusGroup SchemaRegion[933] failed.
org.apache.iotdb.consensus.exception.RatisRequestFailedException: Ratis request failed 6@group-0002000003A5 is not in [RUNNING]: current state is CLOSED
        at org.apache.iotdb.consensus.ratis.RatisConsensus.read(RatisConsensus.java:351)
        at org.apache.iotdb.db.queryengine.execution.executor.RegionReadExecutor.execute(RegionReadExecutor.java:77)
        at org.apache.iotdb.db.protocol.thrift.impl.DataNodeInternalRPCServiceImpl.sendFragmentInstance(DataNodeInternalRPCServiceImpl.java:301)
        at org.apache.iotdb.mpp.rpc.thrift.IDataNodeRPCService$Processor$sendFragmentInstance.getResult(IDataNodeRPCService.java:4271)
        at org.apache.iotdb.mpp.rpc.thrift.IDataNodeRPCService$Processor$sendFragmentInstance.getResult(IDataNodeRPCService.java:4251)
        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)
Caused by: org.apache.ratis.protocol.exceptions.ServerNotReadyException: 6@group-0002000003A5 is not in [RUNNING]: current state is CLOSED
        at org.apache.ratis.server.impl.RaftServerImpl.lambda$assertLifeCycleState$9(RaftServerImpl.java:749)
        at org.apache.ratis.util.LifeCycle.assertCurrentState(LifeCycle.java:253)
        at org.apache.ratis.server.impl.RaftServerImpl.assertLifeCycleState(RaftServerImpl.java:748)
        at org.apache.ratis.server.impl.RaftServerImpl.submitClientRequestAsync(RaftServerImpl.java:838)
        at org.apache.ratis.server.impl.RaftServerImpl.submitClientRequest(RaftServerImpl.java:1031)
        at org.apache.ratis.server.impl.RaftServerProxy.submitClientRequest(RaftServerProxy.java:449)
        at org.apache.iotdb.consensus.ratis.RatisConsensus.doRead(RatisConsensus.java:374)
        at org.apache.iotdb.consensus.ratis.RatisConsensus.read(RatisConsensus.java:340)
        ... 10 common frames omitted

+1

myysophia commented 8 months ago

1.2.2 依然有这个报错

2024-02-28 09:24:20 [http-nio-80-exec-13] ERROR t.n.v.e.i.RestExceptionHandler$Companion [LoggerImpl.kt : 95] - handle-exception - 305: [INTERNAL_SERVER_ERROR(305)] Exception occurred: "SELECT LAST_VALUE(ep1), LAST_VALUE(ep2) from root.emsplus.snAA0001.AMC,root.emsplus.snAA0002.AMC where time < 2024-02-28T00:00:00.000 ". executeStatement failed. Fetch Schema failed. - 81a603be-6b73-4d27-9d58-e5256e470753 org.apache.iotdb.rpc.StatementExecutionException: 305: [INTERNAL_SERVER_ERROR(305)] Exception occurred: "SELECT LAST_VALUE(ep1), LAST_VALUE(ep2) from root.emsplus.snAA0001.AMC,root.emsplus.snAA0002.AMC where time < 2024-02-28T00:00:00.000 ". executeStatement failed. Fetch Schema failed. at org.apache.iotdb.rpc.RpcUtils.verifySuccess(RpcUtils.java:96) at org.apache.iotdb.rpc.RpcUtils.verifySuccessWithRedirection(RpcUtils.java:116) at org.apache.iotdb.session.SessionConnection.executeQueryStatement(SessionConnection.java:359) at org.apache.iotdb.session.Session.executeStatementMayRedirect(Session.java:745) at org.apache.iotdb.session.Session.executeQueryStatement(Session.java:716) at org.apache.iotdb.session.pool.SessionPool.executeQueryStatement(SessionPool.java:2707) at tech.novastar.energy.repository.iotdb.IotTemplateImpl.executeQueryStatement(IotTemplateImpl.kt:149) at tech.novastar.energy.application.cloud.impl.adapter.IotDBServiceAdapterImpl.findValue(IotDBServiceAdapterImpl.kt:50) at tech.novastar.energy.application.cloud.impl.adapter.StationServiceAdapterImpl.calculateStationCharged(StationServiceAdapterImpl.kt:131) at tech.novastar.energy.application.cloud.impl.adapter.StationServiceAdapterImpl.calculateTotalStationCharged(StationServiceAdapterImpl.kt:227) at tech.novastar.energy.application.cloud.impl.index.IndexRestfulServiceImpl.systemInfo(IndexRestfulServiceImpl.kt:190) at jdk.internal.reflect.GeneratedMethodAccessor1679.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:879) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at tech.novastar.vnnox.communication.impl.restful.HttpRequestFilter.doFilter(HttpRequestFilter.kt:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:109) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:747) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Thread.java:829) 2024-02-28 09:24:20 [http-nio-80-exec-13] INFO t.n.v.i.i.InternationalizationDataProviderImpl$Companion [LoggerImpl.kt : 235] - internationalization-data-missed - message zh-cn of lang EX-TL-10002 was missed - 81a603be-6b73-4d27-9d58-e5256e470753 2024-02-28 09:24:20 [http-nio-80-exec-13] ERROR t.n.v.e.i.RestExceptionHandler$Companion [LoggerImpl.kt : 88] - handle-exception-error-result - {"error":{"code":500,"details":{"INTERNAL_SERVER_ERROR":{"args":[],"code":"INTERNAL_SERVER_ERROR","message":"305: [INTERNAL_SERVER_ERROR(305)] Exception occurred: \"SELECT LAST_VALUE(ep1), LAST_VALUE(ep2) from root.emsplus.snAA0001.AMC,root.emsplus.snAA0002.AMC where time < 2024-02-28T00:00:00.000 \". executeStatement failed. Fetch Schema failed. ","target":"INTERNAL_SERVER_ERROR"}},"message":"内部错误"}} -