You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/03/29 01:56:42 UTC
[GitHub] [iotdb] longlispace opened a new issue #2934: golang client using insertRecord function return status code exception
longlispace opened a new issue #2934:
URL: https://github.com/apache/iotdb/issues/2934
**Describe the bug**
golang client code path: https://github.com/apache/iotdb-client-go/blob/main/example/session_example.go
An exception occurs when the code runs to the insertRecord function(Line 76)
**To Reproduce**
Steps to reproduce the behavior:
1. setup enviroments
export GO111MODULE=on
export GOPROXY=https://goproxy.io
mkdir session_example && cd session_example
2. download code
curl -o session_example.go -L https://github.com/apache/iotdb-client-go/raw/main/example/session_example.go
Comment out lines 77 through 110(Retaining 76 row insertRecord functions)
3. build and run
go mod init session_example
go mod tidy
go run session_example.go
4. See error
golang client log:
2021/03/26 16:45:03 Error Code: 400
iotdb all log:
2021-03-26 17:08:47,603 [pool-7-IoTDB-RPC-Client-thread-8] ERROR org.apache.iotdb.db.service.TSServiceImpl:1417 - meet error when insert
java.lang.ArrayIndexOutOfBoundsException: 1280
at org.apache.iotdb.db.qp.physical.crud.InsertRowPlan.fillValues(InsertRowPlan.java:385)
at org.apache.iotdb.db.qp.physical.crud.InsertRowPlan.<init>(InsertRowPlan.java:102)
at org.apache.iotdb.db.service.TSServiceImpl.insertRecord(TSServiceImpl.java:1408)
at org.apache.iotdb.service.rpc.thrift.TSIService$Processor$insertRecord.getResult(TSIService.java:2653)
at org.apache.iotdb.service.rpc.thrift.TSIService$Processor$insertRecord.getResult(TSIService.java:2633)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2021-03-26 17:08:47,605 [pool-7-IoTDB-RPC-Client-thread-8] INFO org.apache.iotdb.db.service.TSServiceImpl:277 - Session-38 is closing
2021-03-26 17:09:33,327 [timedQuerySqlCountThread] INFO org.apache.iotdb.db.service.TSServiceImpl:207 - Query count in current 1 minute: 1
**Expected behavior**
Can use the insertrecord function to insert data
**Desktop (please complete the following information):**
- OS: windows
- Browser [e.g. chrome, safari]
- Version: 0.11.2
[
[log_all.log](https://github.com/apache/iotdb/files/6218737/log_all.log)
](url)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] qiaojialin closed issue #2934: golang client using insertRecord function return status code exception
Posted by GitBox <gi...@apache.org>.
qiaojialin closed issue #2934:
URL: https://github.com/apache/iotdb/issues/2934
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] manlge commented on issue #2934: golang client using insertRecord function return status code exception
Posted by GitBox <gi...@apache.org>.
manlge commented on issue #2934:
URL: https://github.com/apache/iotdb/issues/2934#issuecomment-816555816
Which version of iotdb server?
I test with https://repository.apache.org/content/repositories/snapshots/org/apache/iotdb/iotdb-distribution/0.12.0-SNAPSHOT/iotdb-distribution-0.12.0-20210408.004948-1-server-bin.zip
no problems was found.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] xiddjp commented on issue #2934: golang client using insertRecord function return status code exception
Posted by GitBox <gi...@apache.org>.
xiddjp commented on issue #2934:
URL: https://github.com/apache/iotdb/issues/2934#issuecomment-811845048
I meet the same issue. Does anyone have a solution?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] qiaojialin commented on issue #2934: golang client using insertRecord function return status code exception
Posted by GitBox <gi...@apache.org>.
qiaojialin commented on issue #2934:
URL: https://github.com/apache/iotdb/issues/2934#issuecomment-817622378
So the go client is for 0.12.0 :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] xiddjp commented on issue #2934: golang client using insertRecord function return status code exception
Posted by GitBox <gi...@apache.org>.
xiddjp commented on issue #2934:
URL: https://github.com/apache/iotdb/issues/2934#issuecomment-817437981
After I updated to v0.12.0, the problem did not recur. It seems to be OK. @manlge
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] github-actions[bot] commented on issue #2934: golang client using insertRecord function return status code exception
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #2934:
URL: https://github.com/apache/iotdb/issues/2934#issuecomment-809013728
Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] xiddjp commented on issue #2934: golang client using insertRecord function return status code exception
Posted by GitBox <gi...@apache.org>.
xiddjp commented on issue #2934:
URL: https://github.com/apache/iotdb/issues/2934#issuecomment-817431441
0.11.2 @manlge
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] xiddjp commented on issue #2934: golang client using insertRecord function return status code exception
Posted by GitBox <gi...@apache.org>.
xiddjp commented on issue #2934:
URL: https://github.com/apache/iotdb/issues/2934#issuecomment-817438552
After I updated to v0.12.0, the problem did not recur. It seems to be OK. @manlge
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] jixuan1989 commented on issue #2934: golang client using insertRecord function return status code exception
Posted by GitBox <gi...@apache.org>.
jixuan1989 commented on issue #2934:
URL: https://github.com/apache/iotdb/issues/2934#issuecomment-812274741
we have noticed this and @manlge may fix it.
We also welcome more users joining us and provide your patch to fix it :D
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] xiddjp commented on issue #2934: golang client using insertRecord function return status code exception
Posted by GitBox <gi...@apache.org>.
xiddjp commented on issue #2934:
URL: https://github.com/apache/iotdb/issues/2934#issuecomment-817438725
After I updated to v0.12.0, the problem did not recur. It seems to be OK. @manlge
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] xiddjp removed a comment on issue #2934: golang client using insertRecord function return status code exception
Posted by GitBox <gi...@apache.org>.
xiddjp removed a comment on issue #2934:
URL: https://github.com/apache/iotdb/issues/2934#issuecomment-817438552
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org