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

Infinite wait closing connection when postgres server has been terminated #45

Closed
brettwooldridge opened this issue Dec 2, 2013 · 1 comment
Assignees

Comments

@brettwooldridge
Copy link
Contributor

When I shutdown my postgres server, and then try to close my application, the driver hangs trying to close connections.

Thread Thread-2
owns: ProtocolImpl (id=122)
owns: Object (id=123)
owns: ResourceLoader (id=124)
owns: BitronixTransactionManager (id=125)
waiting for: CloseCommandImpl$1 (id=126)
Object.wait(long) line: not available [native method]
CloseCommandImpl(CommandImpl).waitFor(ProtocolListener) line: 120
CloseCommandImpl.execute(ProtocolImpl) line: 104
ProtocolImpl.execute(Command) line: 365
PGConnectionImpl.execute(Command, boolean) line: 364
PGStatement.dispose(PGConnectionImpl, ServerObjectType, String) line: 184
PGPreparedStatement(PGStatement).internalClose() line: 286
PGPreparedStatement.internalClose() line: 148
PGConnectionImpl.closeStatements(List<WeakReference>) line: 312
PGConnectionImpl.closeStatements() line: 329
PGConnectionImpl.internalClose() line: 554
PGConnectionImpl.close() line: 1107
PGXAConnection(PGPooledConnection).close() line: 127
JdbcPooledConnection.close() line: 157
XAPool.close() line: 121
PoolingDataSource.close() line: 349
ResourceLoader.shutdown() line: 93
BitronixTransactionManager.shutdown() line: 358
Activator.stop(BundleContext) line: 124
BundleContextImpl$2.run() line: 771
AccessController.doPrivileged(PrivilegedExceptionAction) line: not available [native method]
BundleContextImpl.stop() line: 764
BundleHost.stopWorker(int) line: 510
BundleHost(AbstractBundle).stop(int) line: 465
BundleHost(AbstractBundle).stop() line: 457
CrateStarterElf.stopBundles(BundleContext, Crate...) line: 368
ZApplication.stop() line: 237
ZApplication$2.run() line: 330

@kdubb kdubb mentioned this issue Dec 2, 2013
@ghost ghost assigned kdubb Dec 2, 2013
@kdubb
Copy link
Member

kdubb commented Dec 3, 2013

After 65f2922 this should report an SQLException

@kdubb kdubb closed this as completed Dec 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants