[ 
https://issues.apache.org/jira/browse/IOTDB-370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jialin Qiao closed IOTDB-370.
-----------------------------
    Resolution: Fixed

> v0.10.0 JDBC Concurrent Error
> -----------------------------
>
>                 Key: IOTDB-370
>                 URL: https://issues.apache.org/jira/browse/IOTDB-370
>             Project: Apache IoTDB
>          Issue Type: Bug
>    Affects Versions: 0.10.0-SNAPSHOT
>            Reporter: Rui Liu
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When using iotdb-benchmark dev branch to test IoTDB v0.10.0-SNAPSHOT, using 
> the JDBC API including executeBatch() and execute() to do data ingestion. The 
> following error will occur:
> In the benchmark log:
> ```
> 2019-12-16 11:03:36,825 ERROR 
> cn.edu.tsinghua.iotdb.benchmark.tsdb.DBWrapper:73 - Insert batch failed 
> because 
> java.sql.SQLException: Fail to execute batch sqls after reconnecting. please 
> check server status
>  at org.apache.iotdb.jdbc.IoTDBStatement.executeBatch(IoTDBStatement.java:349)
>  at 
> cn.edu.tsinghua.iotdb.benchmark.tsdb.iotdb.IoTDB.insertOneBatch(IoTDB.java:141)
>  at 
> cn.edu.tsinghua.iotdb.benchmark.tsdb.DBWrapper.insertOneBatch(DBWrapper.java:54)
>  at 
> cn.edu.tsinghua.iotdb.benchmark.client.BaseClient.doTest(BaseClient.java:65)
>  at cn.edu.tsinghua.iotdb.benchmark.client.Client.run(Client.java:44)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.thrift.TApplicationException: Internal error processing 
> executeBatchStatement
>  at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79)
>  at 
> org.apache.iotdb.service.rpc.thrift.TSIService$Client.recv_executeBatchStatement(TSIService.java:230)
>  at 
> org.apache.iotdb.service.rpc.thrift.TSIService$Client.executeBatchStatement(TSIService.java:217)
>  at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at 
> org.apache.iotdb.rpc.SynchronizedHandler.invoke(SynchronizedHandler.java:39)
>  at com.sun.proxy.$Proxy5.executeBatchStatement(Unknown Source)
>  at 
> org.apache.iotdb.jdbc.IoTDBStatement.executeBatchSQL(IoTDBStatement.java:363)
>  at org.apache.iotdb.jdbc.IoTDBStatement.executeBatch(IoTDBStatement.java:347)
>  ... 9 common frames omitted
> ```
>  
> In the IoTDB log:
> ```
> 2019-12-16 11:12:04,154 [pool-2-IoTDB-JDBC-Client-thread-22] ERROR 
> org.apache.thrift.ProcessFunction:47 - Internal error processing 
> executeBatchStatement 
> java.lang.NullPointerException: null
> at 
> org.apache.iotdb.db.qp.physical.crud.InsertPlan.getPaths(InsertPlan.java:98)
> at 
> org.apache.iotdb.db.service.TSServiceImpl.checkAuthority(TSServiceImpl.java:1347)
> at 
> org.apache.iotdb.db.service.TSServiceImpl.executeUpdateStatement(TSServiceImpl.java:960)
> at 
> org.apache.iotdb.db.service.TSServiceImpl.executeStatementInBatch(TSServiceImpl.java:506)
> at 
> org.apache.iotdb.db.service.TSServiceImpl.executeBatchStatement(TSServiceImpl.java:482)
> at 
> org.apache.iotdb.service.rpc.thrift.TSIService$Processor$executeBatchStatement.getResult(TSIService.java:1718)
> at 
> org.apache.iotdb.service.rpc.thrift.TSIService$Processor$executeBatchStatement.getResult(TSIService.java:1698)
> at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38)
> at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:38)
> at 
> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:313)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> ```
>  
>  



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

Reply via email to