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

gbellato
13.26.2008 3367ea5fb4c2188c6cc438d6edff33c98e7531a3
refs
author gbellato <gbellato@localhost>
Thursday, March 13, 2008 15:26 +0100
committer gbellato <gbellato@localhost>
Thursday, March 13, 2008 15:26 +0100
commit3367ea5fb4c2188c6cc438d6edff33c98e7531a3
tree 150189346c150ad62c84c54e4ef412c9583350a0 tree | zip | gz
parent 5589e80c0344aafd9db1b24ef4a820486620322a view | diff
Fix for 3052 : IllegalMonitorStateException in replication HeartbeatThread

The replication HeartBeatThread uses non final Boolean for the synchronization
of the shutdown phase.

This can cause some rare IllegalMonitorStateException when trying to shutdown the HeartbeatThread because the Boolean can be modified by another thread.

The fix is to use a dedicated lock for this synchronization purpose.

This change also turn some replication objects that were used for sycnhronization
purpose into final objects so that the same bug cannot happen again.
4 files modified
26 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/protocol/HeartbeatThread.java 9 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/DbHandler.java 5 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 10 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ServerHandler.java 2 ●●● diff | view | raw | blame | history