mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
24.02.2014 b33a21892a2d6c90394b9d1e9d537dc82c679b60
refs
author Matthew Swift <matthew.swift@forgerock.com>
Monday, February 24, 2014 15:02 +0100
committer Matthew Swift <matthew.swift@forgerock.com>
Monday, February 24, 2014 15:02 +0100
commitb33a21892a2d6c90394b9d1e9d537dc82c679b60
tree 8291c25be170a2a3b7c0cc4e1c548aae18b4690e tree | zip | gz
parent 1de2f316717a026fdfffe7e23ac9a5572226b7d5 view | diff
Fix OPENDJ-1348: Various connection pool implementations do not recover if the target server is powered off and restarted

* HeartBeatConnectionFactory: check for heartbeat timeouts when there is a bind/startTLS in progress. Use the pending bind/startTLS as a proxy for the heartbeat request
* CachedConnectionPool: flush all pending connection futures if an attempt to establish a new pooled connection fails. Improve statistics in toString() representation to make problems easier to diagnose during debugging
* AbstractLoadBalancingAlgorithm: minor change - notify event listeners after closing the monitoring connection so that statistics are more accurate.

Reviewed by Jean-Noel.
5 files modified
255 ■■■■ changed files
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/AbstractLoadBalancingAlgorithm.java 3 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/CachedConnectionPool.java 106 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java 26 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/test/java/org/forgerock/opendj/ldap/ConnectionPoolTestCase.java 50 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/test/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactoryTestCase.java 70 ●●●●● diff | view | raw | blame | history