Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame size (1195725856) larger than max length (67108864) in query #2664

Closed
qiaojialin opened this issue Feb 9, 2021 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@qiaojialin
Copy link
Member

qiaojialin commented Feb 9, 2021

v0.11.2

This is caused by a group by time query or a raw data query that contains one time series:

2021-02-04 09:23:23,330 [pool-7-IoTDB-RPC-Client-thread-499] ERROR org.apache.thrift.server.TThreadPoolServer$WorkerProcess:321 - Thrift Error occurred during processing of message.
org.apache.thrift.transport.TTransportException: Frame size (1195725856) larger than max length (67108864)!
        at org.apache.thrift.transport.TFastFramedTransport.readFrame(TFastFramedTransport.java:152)
        at org.apache.thrift.transport.TFastFramedTransport.read(TFastFramedTransport.java:136)
        at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
        at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:455)
        at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:354)
        at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:243)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:27)
        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)
2021-02-04 10:12:30,788 [pool-7-IoTDB-RPC-Client-thread-497] ERROR org.apache.thrift.server.TThreadPoolServer$WorkerProcess:321 - Thrift Error occurred during processing of message.
org.apache.thrift.transport.TTransportException: java.net.SocketException: Connection reset
        at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
        at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
        at org.apache.thrift.transport.AutoExpandingBufferReadTransport.fill(AutoExpandingBufferReadTransport.java:37)
        at org.apache.thrift.transport.TFastFramedTransport.readFrame(TFastFramedTransport.java:156)
        at org.apache.thrift.transport.TFastFramedTransport.read(TFastFramedTransport.java:136)
        at org.apache.thrift.transport.TTra
@qiaojialin qiaojialin added bug Something isn't working 0.11.2 labels Feb 9, 2021
@qiaojialin qiaojialin removed the 0.11.5 label Jun 18, 2022
@antzhb
Copy link

antzhb commented Feb 27, 2024

i have the same problem with v1.3

@myysophia
Copy link

I have the same problem with v1.2.2. The error is very frequent, but does not affect reading and writing

image

@endcy
Copy link

endcy commented Apr 2, 2024

Same issue was discovered in v1.1.0, I don't know if this default configuration "cn thrift max frame size=536870912" has any impact and how to config.

@qiaojialin
Copy link
Member Author

This is fixed in 1.3.1: https://iotdb.apache.org/Download/

@JackieTien97
Copy link
Contributor

Ite seems that it's caused by the huge query result whose single frame size is larger than the default client max frame size(default is 64MB).
You can change that field Session.thriftMaxFrameSize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants