You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by GitBox <gi...@apache.org> on 2021/12/19 14:31:37 UTC
[GitHub] [phoenix-queryserver] rbeauchemin opened a new pull request #81: Remove phoenixdb error messages on exit
rbeauchemin opened a new pull request #81:
URL: https://github.com/apache/phoenix-queryserver/pull/81
## Background
If you open a connection and then `sys.exit()` or ctrl+D, you will always get this message from connections not being able to be closed from the `__del__` method in `connection.py`.
```
Exception ignored in: <function Connection.__del__ at 0x102eeb280>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/phoenixdb/connection.py", line 60, in __del__
File "/usr/local/lib/python3.9/site-packages/phoenixdb/connection.py", line 114, in close
File "/usr/local/lib/python3.9/site-packages/phoenixdb/avatica/client.py", line 397, in close_connection
File "/usr/local/lib/python3.9/site-packages/phoenixdb/avatica/client.py", line 218, in _apply
File "/usr/local/lib/python3.9/site-packages/phoenixdb/avatica/client.py", line 188, in _post_request
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 590, in post
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 532, in request
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 711, in merge_environment_settings
File "/usr/local/lib/python3.9/site-packages/requests/utils.py", line 797, in get_environ_proxies
File "/usr/local/lib/python3.9/site-packages/requests/utils.py", line 781, in should_bypass_proxies
File "/usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 2647, in proxy_bypass
File "/usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 2624, in proxy_bypass_macosx_sysconf
File "/usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 2566, in _proxy_bypass_macosx_sysconf
ImportError: sys.meta_path is None, Python is likely shutting down
```
## To Test
Testing was completed by running two steps:
1. Running `del` on an open connection successfully closes conns.
2. Exiting Python does not print a long error message to stdout.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@phoenix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [phoenix-queryserver] stoty commented on pull request #81: Remove phoenixdb error messages on exit
Posted by GitBox <gi...@apache.org>.
stoty commented on pull request #81:
URL: https://github.com/apache/phoenix-queryserver/pull/81#issuecomment-1070358561
Could you open a JIRA for this, rename this PR, and link it to that JIRA ?
--
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.
To unsubscribe, e-mail: issues-unsubscribe@phoenix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org