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

Matthew Swift
22.07.2014 a2df03777d64a1cc2face1011a70effb0b98f133
refs
author Matthew Swift <matthew.swift@forgerock.com>
Saturday, February 22, 2014 23:07 +0100
committer Matthew Swift <matthew.swift@forgerock.com>
Saturday, February 22, 2014 23:07 +0100
commita2df03777d64a1cc2face1011a70effb0b98f133
tree dab4833bd81997d38c2c91f888540fcc8401f493 tree | zip | gz
parent 0ec7223d9c57fb65ff8d990afb5b823609acb7f4 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.
3 files modified
142 ■■■■■ changed files
opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractLoadBalancingAlgorithm.java 5 ●●●●● diff | view | raw | blame | history
opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/CachedConnectionPool.java 109 ●●●●● diff | view | raw | blame | history
opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java 28 ●●●●● diff | view | raw | blame | history