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

neil_a_wilson
02.09.2007 4003b1b0f2118484d6903c16033366e52e3d5a86
refs
author neil_a_wilson <neil_a_wilson@localhost>
Sunday, September 2, 2007 22:09 +0200
committer neil_a_wilson <neil_a_wilson@localhost>
Sunday, September 2, 2007 22:09 +0200
commit4003b1b0f2118484d6903c16033366e52e3d5a86
tree 28695778c861239f26e2b7670cd51c45adad8409 tree | zip | gz
parent 13ac0c8454cbbdfa9643f88a1a10c1a03b1313d2 view | diff
Fix a problem in the DbHandler.run() method that appears to make it possible to
create a tight infinite loop if the method is still running after the database
has been closed, repeatedly catching and logging exceptions. This change adds
a break statement after logging the message so that it will exit from the loop.

The exception being caught was:

com.sleepycat.je.DatabaseException: (JE 3.2.29) Attempt to use non-open Environment object().
at com.sleepycat.je.Environment.checkHandleIsValid(Environment.java:1147)
at com.sleepycat.je.Environment.beginTransactionInternal(Environment.java:731)
at com.sleepycat.je.Environment.beginTransaction(Environment.java:720)
at org.opends.server.replication.server.ReplicationDbEnv.beginTransaction(ReplicationDbEnv.java:381)
at org.opends.server.replication.server.ReplicationDB$ReplServerDBCursor.<init>(ReplicationDB.java:363)
at org.opends.server.replication.server.ReplicationDB$ReplServerDBCursor.<init>(ReplicationDB.java:314)
at org.opends.server.replication.server.ReplicationDB.openDeleteCursor(ReplicationDB.java:205)
at org.opends.server.replication.server.DbHandler.trim(DbHandler.java:384)
at org.opends.server.replication.server.DbHandler.run(DbHandler.java:335)
at java.lang.Thread.run(Thread.java:619)
1 files modified
1 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/server/DbHandler.java 1 ●●●● diff | view | raw | blame | history