Yuan Tian created IOTDB-290:
-------------------------------
Summary: Bug about threadlocal field in TSServiceImpl.java
Key: IOTDB-290
URL: https://issues.apache.org/jira/browse/IOTDB-290
Project: Apache IoTDB
Issue Type: Bug
Reporter: Yuan Tian
There are two fields named queryStatus and queryRet:
{code:java}
private ThreadLocal<HashMap<String, PhysicalPlan>> queryStatus = new
ThreadLocal<>();
private ThreadLocal<HashMap<String, QueryDataSet>> queryRet = new
ThreadLocal<>();
{code}
They are used to save the PhysicalPlan and QueryDataSet of one query. However,
the keys of both are sql string to be executed, so if the client execute the
same sql in one connection, no matter whether the first execution has finished,
the second sql execution will clear the first one's QueryDataSet.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)