Skip to content
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

PDB does not log exception thrown by connection.close() #28

Open
rfer opened this issue Feb 22, 2016 · 0 comments
Open

PDB does not log exception thrown by connection.close() #28

rfer opened this issue Feb 22, 2016 · 0 comments

Comments

@rfer
Copy link
Contributor

rfer commented Feb 22, 2016

Transcript from the original issue reported in the internal issue tracker.

PDB does not log exception thrown by connection.close(), merely reporting that an error has occurred.
JDBC API states the following on close()
It is strongly recommended that an application explicitly commits or rolls back an active transaction prior to calling the close method. If the close method is called and there is an active transaction, the results are implementation-defined.

The DB2 JDBC implementation throws an exception if a transaction is still active on close(). It does not close the transaction, so if the transaction is still active and holding on to locks, they will be "alive" for a long time (whatever the timeout is) causing deadlocks. While not closing the transaction is a a project issue (which we fixed), not reporting the exception makes troubleshooting much harder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant