You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "hhhxxjj (via GitHub)" <gi...@apache.org> on 2023/09/14 11:47:56 UTC
[GitHub] [iotdb] hhhxxjj opened a new issue, #11140: [Bug]
hhhxxjj opened a new issue, #11140:
URL: https://github.com/apache/iotdb/issues/11140
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.
### Version
OS: windows 11
IotDb : 1.2.0
### Describe the bug and provide the minimal reproduce step
打开iotDb,静置几个小时没有操作,执行: show template ,程序报错。
重新启动 IotDb,马上执行,问题可以解决。
### What did you expect to see?
show template 正常执行
### What did you see instead?
org.apache.iotdb.rpc.StatementExecutionException: 305: org.apache.iotdb.commons.exception.IoTDBException: get all template error.
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:744)
at org.apache.iotdb.session.Session.executeQueryStatement(Session.java:729)
at org.apache.iotdb.session.pool.SessionPool.executeQueryStatement(SessionPool.java:2870)
at cn.beepower.domain.iotDb.IotPool.query(IotPool.kt:87)
at cn.beepower.domain.iotDb.IotPool.query$default(IotPool.kt:85)
at cn.beepower.domain.iotDb.IotTemplate.showTemplates(IotTemplate.kt:146)
at cn.beepower.domain.iotDb.IotTemplate$templates$2.invoke(IotTemplate.kt:13)
at cn.beepower.domain.iotDb.IotTemplate$templates$2.invoke(IotTemplate.kt:12)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at cn.beepower.domain.iotDb.IotTemplate.getTemplates(IotTemplate.kt:12)
at cn.beepower.domain.iotDb.IotTemplate.createTemplateIfNeed(IotTemplate.kt:25)
at cn.beepower.domain.iotDb.IotTemplate.createTemplateIfNeed$default(IotTemplate.kt:24)
at cn.beepower.domain.iotDb.IotTemplateTest.templateInsertTest(IotTemplateTest.kt:101)
at cn.beepower.domain.iotDb.IotTemplateTest.insertAligned(IotTemplateTest.kt:79)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727)
at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:217)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:57)
at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:232)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:55)
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
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: reviews-unsubscribe@iotdb.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] hhhxxjj commented on issue #11140: [Bug] IoTDBException: get all template error.
Posted by "hhhxxjj (via GitHub)" <gi...@apache.org>.
hhhxxjj commented on issue #11140:
URL: https://github.com/apache/iotdb/issues/11140#issuecomment-1719375577
执行其他 sql 语句也有问题。
可能在于: 数据库静置太久了。
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] HTHou commented on issue #11140: [Bug] IoTDBException: get all template error.
Posted by "HTHou (via GitHub)" <gi...@apache.org>.
HTHou commented on issue #11140:
URL: https://github.com/apache/iotdb/issues/11140#issuecomment-1720411657
Windows 下如果电脑自动休眠了,config node的 raftserver 有可能会自动停止。我们之后会改进这里,目前建议把电脑的自动休眠时间改成无限大。
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] HTHou commented on issue #11140: [Bug] IoTDBException: get all template error.
Posted by "HTHou (via GitHub)" <gi...@apache.org>.
HTHou commented on issue #11140:
URL: https://github.com/apache/iotdb/issues/11140#issuecomment-1720375403
可以提供一下iotdb端的报错信息吗
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] hhhxxjj commented on issue #11140: [Bug] IoTDBException: get all template error.
Posted by "hhhxxjj (via GitHub)" <gi...@apache.org>.
hhhxxjj commented on issue #11140:
URL: https://github.com/apache/iotdb/issues/11140#issuecomment-1719376123
错误如下:
org.apache.iotdb.rpc.StatementExecutionException: 305: [INTERNAL_SERVER_ERROR(305)] Exception occurred: "TSRawDataQueryReq(sessionId:17, paths:[root.C9990002.meta.template], fetchSize:10000, startTime:0, endTime:1694695120727, statementId:17, enableRedirectQuery:false, timeout:5000)". executeRawDataQuery failed. Meet error when analyzing the query statement: An error occurred when executing getSchemaPartition():Error in calling method getSchemaPartitionTable, because: Fail to connect to any config node. Please check status of ConfigNodes
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.executeRawDataQuery(SessionConnection.java:424)
at org.apache.iotdb.session.Session.executeRawDataQuery(Session.java:788)
at org.apache.iotdb.session.pool.SessionPool.executeRawDataQuery(SessionPool.java:2928)
at cn.beepower.domain.iotDb.IotPool.raw(IotPool.kt:105)
at cn.beepower.domain.iotDb.IotPool.raw$default(IotPool.kt:101)
at cn.beepower.domain.iotDb.IotTemplate.showTemplates(IotTemplate.kt:148)
at cn.beepower.domain.iotDb.IotTemplate$templates$2.invoke(IotTemplate.kt:13)
at cn.beepower.domain.iotDb.IotTemplate$templates$2.invoke(IotTemplate.kt:12)
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org