You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "idosilverwater-vast (via GitHub)" <gi...@apache.org> on 2025/08/20 14:12:57 UTC
[I] AdbcDriverManager GIL disabling [arrow-adbc]
idosilverwater-vast opened a new issue, #3318:
URL: https://github.com/apache/arrow-adbc/issues/3318
### What would you like help with?
Hello,
Regarding the python adbc-driver-manager
We noticed that in the connection class in -lib.pyx, some methods use the nogil context and some don't.
set_autocommit() and close() do use it to disable the GIL and rollback does not.
In a testing scenario where the server and the adbc driver run in the same GIL context a deadlock is reached.
Is there a specific reason why the gil is not disabled in the rollback method?
Thank you,
Ido
--
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@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] python adbc-driver-manager GIL disabling [arrow-adbc]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm closed issue #3318: python adbc-driver-manager GIL disabling
URL: https://github.com/apache/arrow-adbc/issues/3318
--
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@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] python adbc-driver-manager GIL disabling [arrow-adbc]
Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #3318:
URL: https://github.com/apache/arrow-adbc/issues/3318#issuecomment-3208517029
Hi @idosilverwater-vast, thanks for the report. Adding nogil for rollback is probably fine and better, I'm not why it was skipped.
Are you able to share an all-threads backtrace and your adbc_driver_manager package version?
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] python adbc-driver-manager GIL disabling [arrow-adbc]
Posted by "idosilverwater-vast (via GitHub)" <gi...@apache.org>.
idosilverwater-vast commented on issue #3318:
URL: https://github.com/apache/arrow-adbc/issues/3318#issuecomment-3217949449
thank you very much :)
regarding version of `adbc_driver_manager` - replicated in 1.5.0 - 1.7.0
```
Thread 0x00007fbb703ff6c0 (most recent call first):
File "/nix/store/ii0svv5raqqbwmdhkarca2d28p07n067-python3-3.11.11/lib/python3.11/socketserver.py", line 512 in shutdown_request
File "/nix/store/ii0svv5raqqbwmdhkarca2d28p07n067-python3-3.11.11/lib/python3.11/socketserver.py", line 349 in process_request
File "/nix/store/ii0svv5raqqbwmdhkarca2d28p07n067-python3-3.11.11/lib/python3.11/socketserver.py", line 317 in _handle_request_noblock
File "/nix/store/ii0svv5raqqbwmdhkarca2d28p07n067-python3-3.11.11/lib/python3.11/socketserver.py", line 238 in serve_forever
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/werkzeug/serving.py", line 819 in serve_forever
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pytest_httpserver/httpserver.py", line 735 in thread_target
File "/nix/store/ii0svv5raqqbwmdhkarca2d28p07n067-python3-3.11.11/lib/python3.11/threading.py", line 982 in run
File "/nix/store/ii0svv5raqqbwmdhkarca2d28p07n067-python3-3.11.11/lib/python3.11/threading.py", line 1045 in _bootstrap_inner
File "/nix/store/ii0svv5raqqbwmdhkarca2d28p07n067-python3-3.11.11/lib/python3.11/threading.py", line 1002 in _bootstrap
Current thread 0x00007fbc05e81740 (most recent call first):
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/adbc_driver_manager/dbapi.py", line 348 in rollback
File "/home/john/git/adbc-driver/tests/test_auto_commit.py", line 183 in test_rollback__explicit_commit
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/python.py", line 157 in pytest_pyfunc_call
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_callers.py", line 121 in _multicall
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_hooks.py", line 512 in __call__
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/python.py", line 1671 in runtest
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/runner.py", line 178 in pytest_runtest_call
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_callers.py", line 121 in _multicall
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_hooks.py", line 512 in __call__
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/runner.py", line 246 in <lambda>
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/runner.py", line 344 in from_call
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/runner.py", line 245 in call_and_report
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/runner.py", line 136 in runtestprotocol
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/runner.py", line 117 in pytest_runtest_protocol
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_callers.py", line 121 in _multicall
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_hooks.py", line 512 in __call__
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/main.py", line 367 in pytest_runtestloop
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_callers.py", line 121 in _multicall
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_hooks.py", line 512 in __call__
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/main.py", line 343 in _main
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/main.py", line 289 in wrap_session
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/main.py", line 336 in pytest_cmdline_main
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_callers.py", line 121 in _multicall
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/pluggy/_hooks.py", line 512 in __call__
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/config/__init__.py", line 175 in main
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/lib/python3.11/site-packages/_pytest/config/__init__.py", line 201 in console_main
File "/home/john/git/adbc-driver/.direnv/python-3.11.11/bin/pytest", line 8 in <module>
```
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org