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

Matthew Swift
20.19.2012 e131e3cef7357a2f5acdc3d86979b8c5486ca71b
refs
author Matthew Swift <matthew.swift@forgerock.com>
Tuesday, March 20, 2012 12:19 +0100
committer Matthew Swift <matthew.swift@forgerock.com>
Tuesday, March 20, 2012 12:19 +0100
commite131e3cef7357a2f5acdc3d86979b8c5486ca71b
tree e422f69bd28df222b41c5f69717016cad8028374 tree | zip | gz
parent 5646aa4bc17327cc799f2857c6f226ee72c83e16 view | diff
Fix OPENDJ-457: Sleeping replication threads prevent server from shutting down

Improved responsiveness of several threads:

* remove sleep based looped and replaced with wait/notify loops
* ensured that shutdown signal variables are volatile
* ensured that InterruptedExceptions are treated as shutdown since these are sent by shutdown monitor.
7 files modified
198 ■■■■■ changed files
opends/src/server/org/opends/server/core/IdleTimeLimitThread.java 35 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/core/ServerShutdownMonitor.java 3 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java 4 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/HeartbeatThread.java 42 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/StatusAnalyzer.java 25 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/service/CTHeartbeatPublisherThread.java 34 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/service/HeartbeatMonitor.java 55 ●●●●● diff | view | raw | blame | history