-
Notifications
You must be signed in to change notification settings - Fork 46
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
JtdsStatement finalizer waits for query to finish #21
Comments
Upon further inspection, I think it's neither a deadlock nor waiting for another query. The finalizer of
Long story short, closing a Maybe this is the least bad thing jTDS can do, or maybe the behavior could be improved, I'm not sure. I guess the finalizer shouldn't have to call However, either way there's the question of how to actually abort a query. I've tried calling So yeah, how do I actually abort a query with jTDS? (I'll change the title of this issue to reflect this related question.) |
Here's another update. Sorry about the mess. Comes out that This means the only real issue is that the finalizer of I'm leaving this issue open for now, but if there's truly nothing smarter that jTDS can do in that finalizer, feel free to close this. I think that a call to |
I'm using jTDS in an Android application and if I interrupt a background thread running a query, it crashes my app with the following trace:
The
releaseTds
method issynchronized
which makes me think this might be related to a deadlock. Or it might be waiting for some other long-running query to end.The text was updated successfully, but these errors were encountered: