You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by "Xiangdong Huang (Jira)" <ji...@apache.org> on 2019/12/14 06:37:00 UTC

[jira] [Created] (IOTDB-366) Concurrent Error when multiple JDBC client send queries

Xiangdong Huang created IOTDB-366:
-------------------------------------

             Summary: Concurrent Error when multiple JDBC client send queries
                 Key: IOTDB-366
                 URL: https://issues.apache.org/jira/browse/IOTDB-366
             Project: Apache IoTDB
          Issue Type: Bug
    Affects Versions: 0.10.0-SNAPSHOT
            Reporter: Xiangdong Huang


HI,

After  the SQL parser is upgraded to Antlr4, seems a concurrent error is introduce.

The error can be reproduced by:

In org.apache.iotdb.db.integration.IoTDBQueryDemoIT class, add a new test function:
{code:java}
// code placeholder
@Test
public void testConcurrent() {
  new Thread(new Runnable() {
    @Override
    public void run() {
      try {
        selectTest();
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
  }).start();
  new Thread(new Runnable() {
    @Override
    public void run() {
      try {
        selectTest();
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
  }).start();
}


{code}
 

Notice, because it is a concurrent error, the issue is not reproduced every time.

And, the exceptions in the above  test function can not be caught by Junit, so it is not a formal UT code. 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)