You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I think there might be some bug on socket.py
Environment
thriftpy2 == 0.4.14
impyla == 0.16.3
hive server == 2.3.2
Problem
When i query large data on hive2 server with impyla library, query is going hang.
I got out from hang via ctrl + c and i see stack trace.
File ".../bug_env/lib/python3.6/site-packages/thrift_sasl/__init__.py", line 198, in _trans_read_all
return read_all(sz)
File ".../bug_env/lib/python3.6/site-packages/thriftpy2/transport/socket.py", line 110, in read
buff = self.sock.recv(sz)
In socket.py, it uses sock.recv with sz(data length to receive).
@Rosadosa
Yes, I think it's stacktrace looks similiar to #162 issue's last stacktrace.
Can you try change source code in your virtual environment like above and test your code?
When it works, i think this issue same with issue #162
Hello, I think there might be some bug on socket.py
Environment
Problem
When i query large data on hive2 server with impyla library, query is going hang.
I got out from hang via ctrl + c and i see stack trace.
In socket.py, it uses sock.recv with sz(data length to receive).
sock.recv
function does not always receive data at once(sz). It's parameter(sz) is just max size of buffer.(see https://manpages.debian.org/buster/manpages-dev/recv.2.en.html)So, I think read function have to change like this.
The text was updated successfully, but these errors were encountered: