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

gbellato
04.11.2007 62e49b07a6198f230f931016de063a21cbca6e88
refs
author gbellato <gbellato@localhost>
Tuesday, December 4, 2007 12:11 +0100
committer gbellato <gbellato@localhost>
Tuesday, December 4, 2007 12:11 +0100
commit62e49b07a6198f230f931016de063a21cbca6e88
tree 28aa45bc0643734e6574ad5d2f7d10caab66f5f6 tree | zip | gz
parent a659c05b345a2c83ddb87db2c8a2d7af2669b544 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
opends/src/server/org/opends/server/replication/server/DbHandler.java 12 ●●●● diff | view | raw | blame | history