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
It is observed that in some cases, nzpy hangs if backend sends notice just after handshake completion. For e.g: due to some issue in system, a notice is sent everytime nzsql is fired.
[nz@ipshost-0 nzbatchbnr_test]$ nzsql -l
NOTICE: SET PATH: unable to locate the schema / database 'SQLEXT'
List of databases
DATABASE | OWNER
--------------+-------
SYSTEM | ADMIN
TPCDS100_BNR | ADMIN
(2 rows)
stacktrace of nzpy:
File "/nz/export/nzscratch_dir/nzbatchbnr_test/nzbatchbnrUtil.py", line 18, in getConn
return nzpy.connect(user="admin",password="password",host="localhost",port=5480, database=f"{dbname}")
File "/usr/local/lib/python3.6/site-packages/nzpy/__init__.py", line 50, in connect
application_name, max_prepared_statements, datestyle, logLevel, tcp_keepalive,char_varchar_encoding, logOptions)
File "/usr/local/lib/python3.6/site-packages/nzpy/core.py", line 1515, in __init__
response = hs.startup(database, securityLevel, user, password)
File "/usr/local/lib/python3.6/site-packages/nzpy/handshake.py", line 96, in startup
if not self.conn_connection_complete(self._sock.read):
File "/usr/local/lib/python3.6/site-packages/nzpy/handshake.py", line 527, in conn_connection_complete
_read(8) # do not use just ignore
File "/usr/lib64/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "/usr/lib64/python3.6/ssl.py", line 971, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib64/python3.6/ssl.py", line 833, in read
return self._sslobj.read(len, buffer)
File "/usr/lib64/python3.6/ssl.py", line 590, in read
v = self._sslobj.read(len, buffer)
The text was updated successfully, but these errors were encountered:
It is observed that in some cases, nzpy hangs if backend sends notice just after handshake completion. For e.g: due to some issue in system, a notice is sent everytime nzsql is fired.
stacktrace of nzpy:
The text was updated successfully, but these errors were encountered: