-
Notifications
You must be signed in to change notification settings - Fork 73
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
New two phase transaction in thin mode has different default timeout than thick mode #376
Comments
Ok, I looked into this and technically this isn't a bug. The problem is that if you call |
Thanks for checking. So a timeout was invited! I failed to notice that timeout parameter in tpc_begin, but the behaviour seems consistent with it. I'll retry the example with a timeout set, and see if it's settable using the sqlalchemy api |
it does indeed seem the timeout fault. I think it would make sense from an usage point of view to have the same timeout as the thick mode, or at least document the difference.
seems not. Will coordinate with mike about accepting kw-args there |
I agree and intend to make them the same once I find out what thick mode does. Stay tuned! |
Hi,
With the 2.3 release I've added support for oracledb two phase commit in sqlalchemy. sqlalchemy/sqlalchemy@a9c0487
In the ci we noticed that a test was unreliable and decided to skip it in the ci. The test is this one https://github.com/sqlalchemy/sqlalchemy/blob/6cf5e2a188fc5e337d22a098a5fe9a9fe10cc7e7/test/engine/test_transaction.py#L476-L527 when
commit=True
. The same code using only oracledb is reported below.Initially the idea was to ask guidance since it seemed there was some kind of timeout, but trying the standalone example with different timeout and with and without the oracle client, seem to have surfaced a bug in the thin mode implementation.
2.3.0
error
no, calling it fixes it
The above script errors usually after 10 to 30 runs:
uncommenting the timeout makes the fail even quicker:
With or without timeout using the oracle client results in no error (run about 100 try without timeout and 60 with). I've tried only on windows, but @zzzeek can reproduce locally on linux (fedora I think) using a different oracle version and config
The text was updated successfully, but these errors were encountered: