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

gbellato
01.40.2008 7e6c6657bced35f4a3aba723c2add20923450ad6
refs
author gbellato <gbellato@localhost>
Friday, February 1, 2008 10:40 +0100
committer gbellato <gbellato@localhost>
Friday, February 1, 2008 10:40 +0100
commit7e6c6657bced35f4a3aba723c2add20923450ad6
tree 6fb437b7245c94da40d07bee638a191cc124eb17 tree | zip | gz
parent 4874d5a1d0f4b4ecba761dd096885a99610e4781 view | diff
The Replication Server thread that is reading changes from the database
to propagate them to the Directory Servers was sometimes leaving some
Database cursors open.

This was leading to Deadlock Exceptions that was causing shutdown of
the Replication Server

When the 2 Replication Servers used in this test were dead the
Replication was dead.

These changes fix the code so that we always release the cursors
and catch the Deadlock Exception in case we would meet transient
Deadlock even though we believe it's not possible with the current
code.
5 files modified
279 ■■■■ changed files
opends/src/server/org/opends/server/replication/server/DbHandler.java 86 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationDB.java 158 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationIterator.java 11 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 3 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ServerHandler.java 21 ●●●●● diff | view | raw | blame | history