apache / apache/iotdb

执行查询报错

Open
#6,363 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

多线程进行查询,其中会出现错误,如下所示
`org.apache.iotdb.rpc.StatementExecutionException: 500: [INTERNAL_SERVER_ERROR(500)] Exception occurred: "select * from root.js.3205.320583.SNS00003489 where time >= 1650758400000 and time< 1650760200000". executeQueryStatement failed. java.lang.NullPointerException
at org.apache.iotdb.rpc.RpcUtils.verifySuccess(RpcUtils.java:94)
at org.apache.iotdb.rpc.RpcUtils.verifySuccessWithRedirection(RpcUtils.java:115)
at org.apache.iotdb.session.SessionConnection.executeQueryStatement(SessionConnection.java:341)
at org.apache.iotdb.session.Session.executeStatementMayRedirect(Session.java:646)
at org.apache.iotdb.session.Session.executeQueryStatement(Session.java:618)`
但是我单独将这条语句拿出来进行单元测试时未报错

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with the reported multi-threaded query, then trace the stack through org.apache.iotdb.rpc.RpcUtils.java, SessionConnection.java, and Session.java at the reported methods. Compare the concurrent run with the standalone unit test; done means the concurrent failure is explained and covered by a regression test or the issue is narrowed to a reproducible cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.