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

Matthew Swift
24.02.2014 c60627d3626afbba7388460c218de4df401904f5
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
commitc60627d3626afbba7388460c218de4df401904f5
tree 286ac08d05192cfafca174b18b439eff5a80b5f1 tree | zip | gz
parent 087cf569ae8c80453d6f0926bda8c0aad8a93598 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-core/src/main/java/org/forgerock/opendj/ldap/AbstractLoadBalancingAlgorithm.java 3 ●●●● diff | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/CachedConnectionPool.java 106 ●●●●● diff | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java 26 ●●●●● diff | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/ConnectionPoolTestCase.java 50 ●●●● diff | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactoryTestCase.java 70 ●●●●● diff | view | raw | blame | history