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

gbellato
01.40.2008 335a984ae6f4afac3d3d44195af75fe8d64ef760
refs
author gbellato <gbellato@localhost>
Friday, February 1, 2008 10:40 +0100
committer gbellato <gbellato@localhost>
Friday, February 1, 2008 10:40 +0100
commit335a984ae6f4afac3d3d44195af75fe8d64ef760
tree 02a63f67483647880d5eed2b946d01ab022eb769 tree | zip | gz
parent 3149a9c85b331206b54b8b1a32bdd6511910c724 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
opendj-sdk/opends/src/server/org/opends/server/replication/server/DbHandler.java 86 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationDB.java 158 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationIterator.java 11 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 3 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ServerHandler.java 21 ●●●●● diff | view | raw | blame | history