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

gbellato
13.26.2008 9f0dae3d08ca0cf7c131af2f1fc09670ace301fa
refs
author gbellato <gbellato@localhost>
Thursday, March 13, 2008 15:26 +0100
committer gbellato <gbellato@localhost>
Thursday, March 13, 2008 15:26 +0100
commit9f0dae3d08ca0cf7c131af2f1fc09670ace301fa
tree a629b971e93d7ffe74aa052372c24662bea1cd0e tree | zip | gz
parent 1b8ce118499248cac94195f9702fe255298cb1d1 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
opends/src/server/org/opends/server/replication/protocol/HeartbeatThread.java 9 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/DbHandler.java 5 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 10 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ServerHandler.java 2 ●●● diff | view | raw | blame | history