apache / apache/iotdb

0.12.0版本last 读不存在的测点报权限异常导致没法执行closeResultSet(wrapper)

Open
#3,192 0 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

1.首先用户是在root.sg1存储组有读写权限的
2.如果root.sg1.d1.s1 存在,则select last sg1.d1.s1 from root是正常执行的
3.如果root.sg1.d1.s2 不存在,select last sg1.d1.s1 ,sg1.d1.s2 from root也是正常执行的
4.如果root.sg1.d1.s1,root.sg1.d1.s2 全都不存在,select last sg1.d1.s1 ,sg1.d1.s2 from root会报602,没权限执行last,这个时候
finally块执行closeResultSet(wrapper),报wrapper空指针,也不知道此种情况下是否会释放资源

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported 0.12.0 behavior with the three SQL cases against root.sg1, including the case where all referenced measurements are absent. Trace the handling of LAST and the finally block calling closeResultSet(wrapper); done means the absent-measurement query does not report an incorrect permission error or trigger a null-pointer failure, and resource cleanup is verified.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.