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

gbellato
04.11.2007 706325ea4acd547110ab8e23ad9e5de7041b2ce7
refs
author gbellato <gbellato@localhost>
Tuesday, December 4, 2007 12:11 +0100
committer gbellato <gbellato@localhost>
Tuesday, December 4, 2007 12:11 +0100
commit706325ea4acd547110ab8e23ad9e5de7041b2ce7
tree f4c3af3e07f31c98e851439c48cd80a9f7a7104e tree | zip | gz
parent cf4040e3a0de9850a0bd3131f0d3d36b626700e3 view | diff
Fix for 2615  : deadlock in changelog trimming

When the changelog trimming meet a database Exception, it tries to close the DB
on which the problem happens.
Unfortunately the close waits for the trim thread to complete before returning.
We therefore end in a situation where trim thread deadlock itself.
Since it is also holding other locks at this point it causes a dealock of the whole
Replication Server.

The solution is simply to break the loop.

After this fix we still have to find the reason for the DB Exception.
1 files modified
12 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/server/DbHandler.java 12 ●●●● diff | view | raw | blame | history